I2C API I2C Set Slave Address

Table 1. I2C API I2C Set Slave Address
Routine I2C Set Slave Address
Prototype ErrorCode_t i2c_set_slave_addr(I2C_HANDLE_T*, slave_addr_0_3, slave_mask_0_3)
Input parameter I2C_HANDLE_T - Handle to the allocated SRAM area. Slave_addr_0_3 - unint32 variable. 7-bit slave address . Slave_mask_0_3 - unint32 variable. Slave address mask.
Return ErrorCode.
Description Sets the slave address and associated mask. The set_slave_addr() function supports four 7-bit slave addresses and masks.