Logo
UNICENS V2.1.0-3491
User Manual and API Reference
Ucs_I2c_InitData_t Struct Reference

The initialization structure of the I2C Module. More...

Data Fields

Ucs_I2c_IntEventReportCb_t interrupt_status_fptr
 Callback function that reports the I2C interrupt.
 

Detailed Description

The initialization structure of the I2C Module.


Example

Ucs_InitData_t ucs_init_data;
(void)Ucs_SetDefaultConfig(&ucs_init_data)
// Resources Management init section.
ucs_init_data.i2c.interrupt_status_fptr = &App_I2cIntStatusCb;
// Handle the I2C interrupt event here
void App_I2cIntStatusCb (uint16_t node_address, void * user_ptr)
{
// Do what needs to be..
}