Home
last modified time | relevance | path

Searched refs:I2C_BUS_ID (Results 1 – 6 of 6) sorted by relevance

/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c35 #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/
Drohm_rpr0521.c52 #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/
Dbosch_bmp280.c41 #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/
Dams_tmd4903.c49 #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/
Dsynaptics_s3708.c43 #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/
Dlps22hb.c89 #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()