18.6.3.7.1 Function i2c_slave_register_callback()

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.

Table 18-29. Parameters
Data directionParameter nameDescription

[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