/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 35 #define I2C_BUS_ID 0 macro 258 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 2, i2cCallback, xfer); in writeRegister() 317 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 5, i2cCallback, xfer); in setMode() 496 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 1, nextXfer->txrxBuf.bytes, 1, i2cCal… in handle_calibration_event() 506 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 1, nextXfer->txrxBuf.bytes, 2, i2cCal… in handle_calibration_event() 569 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 5, i2cCallback, nextXfer); in handle_i2c_event() 586 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 5, i2cCallback, nextXfer); in handle_i2c_event() 700 i2cMasterRelease(I2C_BUS_ID); in end_app() 710 i2cMasterRequest(I2C_BUS_ID, I2C_SPEED); in handle_event() 716 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 1, xfer->txrxBuf.bytes, 1, i2cCallback, x… in handle_event() [all …]
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 52 #define I2C_BUS_ID PROX_I2C_BUS_ID macro 337 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister() 489 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 3, i2cCallback, xfer); in sensorCfgDataProx() 577 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 1, i2cCallback, newXfer… in handle_i2c_event() 595 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 3, i2cCallback, newXfer); in handle_i2c_event() 606 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 3, i2cCallback, newXfer); in handle_i2c_event() 619 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 5, i2cCallback, newXfer); in handle_i2c_event() 747 i2cMasterRelease(I2C_BUS_ID); in end_app() 756 i2cMasterRequest(I2C_BUS_ID, I2C_SPEED); in handle_event() 770 … i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 4, i2cCallback, xfer); in handle_event() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 41 #define I2C_BUS_ID BMP280_I2C_BUS_ID macro 201 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister() 483 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 1, i2cCallback, newXfer… in handleI2cEvent() 499 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, (uint8_t*)&mTask.comp, 24, i2cCallback, n… in handleI2cEvent() 591 i2cMasterRequest(I2C_BUS_ID, I2C_SPEED); in handleEvent() 611 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 6, i2cCallback, newXfer… in handleEvent() 626 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 6, i2cCallback, newXfer… in handleEvent()
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 49 #define I2C_BUS_ID 0 macro 311 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister() 645 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 9, i2cCallback, xfer); in sensorCfgDataProx() 744 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf, 18, i2cCallback, nextXfer); in verifySensorId() 858 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf, 9, i2cCallback, nextXfer); in handle_i2c_event() 1009 i2cMasterRelease(I2C_BUS_ID); in end_app() 1018 i2cMasterRequest(I2C_BUS_ID, I2C_SPEED); in handle_event() 1024 … i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 2, i2cCallback, xfer); in handle_event() 1042 … i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 8, i2cCallback, xfer); in handle_event() 1052 … i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 8, i2cCallback, xfer); in handle_event() [all …]
|
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 43 #define I2C_BUS_ID 0 macro 240 …ret = i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txBytes, xfer->txrxBuf, rxBytes, i2cCallb… in performXfer() 242 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txBytes, i2cCallback, xfer); in performXfer() 512 ret = i2cMasterRequest(I2C_BUS_ID, I2C_SPEED); in handleEvent() 594 i2cMasterRelease(I2C_BUS_ID); in endTask()
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 89 #define I2C_BUS_ID 0 macro 161 i2cMasterTxRx(I2C_BUS_ID, LPS22HB_I2C_ADDR, &mTask.sens_buf[0], 1, in i2c_read() 169 i2cMasterTx(I2C_BUS_ID, LPS22HB_I2C_ADDR, mTask.sens_buf, 2, &i2cCallback, cookie); in i2c_write() 542 i2cMasterRequest(I2C_BUS_ID, I2C_SPEED); in startTask()
|