I2C library to pressure sensor

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by mc1992 on Sat Jan 30 17:22:20 MST 2016
Hello friends!

I'm using a sensor of pressure, this used I2C as a means of comunication. I want to use the library i2c_18xx_43xx.h of lpcopen.

The following functions are sufficient for reading and writing to the sensor ?

-->Chip_I2C_Init(I2C_ID_T id);
-->Chip_I2C_SetClockRate(I2C_ID_T id, uint32_t clockrate);
-->Chip_I2C_MasterSend(I2C_ID_T id, uint8_t slaveAddr, const uint8_t *buff, uint8_t len);
-->Chip_I2C_MasterRead(I2C_ID_T id, uint8_t slaveAddr, uint8_t *buff, int len);