29#define i2cMAX_MSG_LENGTH 32
31#define xI2CMasterWrite(id, addr, tx_buff, tx_len) Chip_I2C_MasterSend(id, addr, tx_buff, tx_len)
32#define xI2CMasterRead(id, addr, rx_buff, rx_len) Chip_I2C_MasterRead(id, addr, rx_buff, rx_len)
34uint8_t
xI2CSlaveReceive( I2C_ID_T
id, uint8_t * rx_buff, uint8_t buff_len, uint32_t timeout );
37int xI2CMasterWriteRead(I2C_ID_T
id, uint8_t addr,
const uint8_t *tx_buff,
int tx_len, uint8_t *rx_buff,
int rx_len);
int xI2CMasterWriteRead(I2C_ID_T id, uint8_t addr, const uint8_t *tx_buff, int tx_len, uint8_t *rx_buff, int rx_len)
Definition lpc17_i2c.c:170
uint8_t xI2CSlaveReceive(I2C_ID_T id, uint8_t *rx_buff, uint8_t buff_len, uint32_t timeout)
Definition lpc17_i2c.c:104
void vI2CSlaveSetup(I2C_ID_T id, uint8_t slave_addr)
Definition lpc17_i2c.c:151
void vI2CConfig(I2C_ID_T id, uint32_t speed)
Definition lpc17_i2c.c:62