/device/google/contexthub/firmware/src/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 294 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function 372 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, cookie); in setMode() 433 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void*)SENSOR_STATE_IDLE); in sensorCalibrateAls() 521 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void*)SENSOR_STATE_START_PROX_C… in sensorCalibrateProx() 540 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 9, &i2cCallback, (void *)SENSOR_STATE_IDLE); in sensorCfgDataProx() 642 … i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 18, &i2cCallback, (void *)SENSOR_STATE_INIT_0); in handle_i2c_event() 648 … i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void *)SENSOR_STATE_INIT_1); in handle_i2c_event() 655 … i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 9, &i2cCallback, (void *)SENSOR_STATE_INIT_2); in handle_i2c_event() 661 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void *)SENSOR_STATE_FINISH_INIT… in handle_i2c_event() 672 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void*)SENSOR_STATE_START_PROX_C… in handle_i2c_event() [all …]
|
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 272 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function 324 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, cookie); in setMode() 426 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 3, &i2cCallback, (void *)SENSOR_STATE_IDLE); in sensorCfgDataProx() 507 mTask.txrxBuf, 1, &i2cCallback, in handle_i2c_event() 523 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 3, &i2cCallback, (void *)SENSOR_STATE_INIT_GAINS); in handle_i2c_event() 531 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 3, &i2cCallback, (void *)SENSOR_STATE_INIT_OFFSET… in handle_i2c_event() 541 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 5, &i2cCallback, (void *)SENSOR_STATE_INIT_THRESH… in handle_i2c_event() 548 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void *)SENSOR_STATE_FINISH_INIT… in handle_i2c_event() 572 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void *)SENSOR_STATE_DISABLING_P… in handle_i2c_event() 579 …i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void *)SENSOR_STATE_DISABLING_P… in handle_i2c_event() [all …]
|
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 145 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function 167 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, in setMode() 248 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void*)STATE_IDLE); in sensorCalibrateBaro() 392 mTask.txrxBuf, 1, &i2cCallback, in handleI2cEvent() 407 (uint8_t*)&mTask.comp, 24, &i2cCallback, in handleI2cEvent() 417 &i2cCallback, (void*)STATE_CONFIG); in handleI2cEvent() 426 &i2cCallback, (void*)STATE_FINISH_INIT); in handleI2cEvent() 472 … i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, (void*)STATE_IDLE); in handleI2cEvent() 507 &i2cCallback, (void*)STATE_RESET); in handleEvent() 523 mTask.txrxBuf, 6, &i2cCallback, in handleEvent() [all …]
|
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 198 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function 256 &i2cCallback, cookie); in setMode() 428 &i2cCallback, (void *)SENSOR_STATE_CALIBRATE_ENABLING); in handle_calibration_event() 434 mData.txrxBuf.bytes, 1, &i2cCallback, in handle_calibration_event() 443 mData.txrxBuf.bytes, 2, &i2cCallback, in handle_calibration_event() 458 &i2cCallback, (void *)SENSOR_STATE_CALIBRATE_DISABLING); in handle_calibration_event() 470 &i2cCallback, (void *)SENSOR_STATE_IDLE); in handle_calibration_event() 508 &i2cCallback, (void *)SENSOR_STATE_INIT); in handle_i2c_event() 523 &i2cCallback, (void *)SENSOR_STATE_IDLE); in handle_i2c_event() 650 mData.txrxBuf.bytes, 1, &i2cCallback, in handle_event() [all …]
|