Searched refs:nextXfer (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 480 struct I2cTransfer *nextXfer; in handle_calibration_event() local 493 nextXfer = allocXfer(SENSOR_STATE_CALIBRATE_POLLING_STATUS); in handle_calibration_event() 494 if (nextXfer != NULL) { in handle_calibration_event() 495 nextXfer->txrxBuf.bytes[0] = AMS_TMD2772_REG_STATUS; in handle_calibration_event() 496 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 1, nextXfer->txrxBuf.bytes, 1, i2cCal… in handle_calibration_event() 503 nextXfer = allocXfer(SENSOR_STATE_CALIBRATE_AWAITING_SAMPLE); in handle_calibration_event() 504 if (nextXfer != NULL) { in handle_calibration_event() 505 nextXfer->txrxBuf.bytes[0] = AMS_TMD2772_REG_PDATAL; in handle_calibration_event() 506 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 1, nextXfer->txrxBuf.bytes, 2, i2cCal… in handle_calibration_event() 545 struct I2cTransfer *nextXfer; in handle_i2c_event() local [all …]
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 708 struct AlsProxTransfer *nextXfer; in verifySensorId() local 719 nextXfer = allocXfer(SENSOR_STATE_INIT_0); in verifySensorId() 720 if (nextXfer == NULL) { in verifySensorId() 725 nextXfer->txrxBuf[0] = AMS_TMD4903_REG_ENABLE; in verifySensorId() 726 …nextXfer->txrxBuf[1] = 0x00; // REG_ENABLE - reset value… in verifySensorId() 727 nextXfer->txrxBuf[2] = AMS_TMD4903_ATIME_SETTING; // REG_ATIME - 100 ms in verifySensorId() 728 nextXfer->txrxBuf[3] = AMS_TMD4903_PTIME_SETTING; // REG_PTIME - 50 ms in verifySensorId() 729 …nextXfer->txrxBuf[4] = 0xff; // REG_WTIME - reset value … in verifySensorId() 730 …nextXfer->txrxBuf[5] = 0x00; // REG_AILTL - reset value … in verifySensorId() 731 …nextXfer->txrxBuf[6] = 0x00; // REG_AILTH - reset value … in verifySensorId() [all …]
|
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 430 struct I2cTransfer *nextXfer; in processI2cResponse() local 469 nextXfer = allocXfer(STATE_INT_HANDLE_1); in processI2cResponse() 470 if (nextXfer != NULL) { in processI2cResponse() 471 nextXfer->txrxBuf[0] = S3708_REG_DATA_BASE + S3708_REG_DATA_4_OFFSET; in processI2cResponse() 472 performXfer(nextXfer, 1, 5); in processI2cResponse()
|