Registers callback for the specified callback type.
void i2c_master_register_callback( struct i2c_master_module *const module, i2c_master_callback_t callback, enum i2c_master_callback callback_type)
Associates the given callback function with the specified callback type.
To enable the callback, the i2c_master_enable_callback function must be used.
| Data direction | Parameter name | Description |
|---|---|---|
[in, out] |
module |
Pointer to the software module struct |
[in] |
callback |
Pointer to the function desired for the specified callback |
[in] |
callback_type |
Callback type to register |