Implementing callback functions for all gpio registers