26.5.2.3 i2c_s_sync_set_addr
Set the device address.
int32_t i2c_s_sync_set_addr(
struct i2c_s_sync_descriptor *const descr,
const uint16_t address
)
This function sets the I2C slave device address.
Parameters
- descr
-
Type: struct i2c_s_sync_descriptor Struct *const
An I2C slave descriptor which is used to communicate through I2C
- address
-
Type: const uint16_t
An address
Returns
Type: int32_t
Status of the address setting.