17.6.3.5.1 Function i2c_master_register_callback()

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.

Table 17-31. 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