Registers callback for the specified callback type.
void i2c_slave_register_callback( struct i2c_slave_module *const module, i2c_slave_callback_t callback, enum i2c_slave_callback callback_type)
Associates the given callback function with the specified callback type. To enable the callback, the i2c_slave_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 |