Set the slave device address.
int32_t i2c_m_sync_set_slaveaddr( struct i2c_m_sync_desc * i2c, int16_t addr, int32_t addr_len )
This function sets the next transfer target slave I2C device address. It takes no effect to any already started access.
Type: struct i2c_m_sync_desc Struct *
An I2C descriptor, which is used to communicate through I2C
Type: int16_t
The slave address to access
Type: int32_t
The slave address length, can be I2C_M_TEN or I2C_M_SEVEN
Type: int32_t
Masked slave address. The mask is a maximum 10-bit address, and 10th bit is set if a 10-bit address is used