Searched refs:nextXfer (Results 1 – 4 of 4) 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/intersil_isl29034/ |
D | isl29034.c | 316 struct I2cTransfer *nextXfer; in handle_i2c_event() local 339 nextXfer = allocXfer(SENSOR_STATE_IDLE); in handle_i2c_event() 340 if (nextXfer != NULL) { in handle_i2c_event() 341 nextXfer->txrxBuf[0] = ISL29034_REG_CMD_1; in handle_i2c_event() 342 nextXfer->txrxBuf[1] = ISL29034_CMD1_POWERDOWN; in handle_i2c_event() 343 nextXfer->txrxBuf[2] = ISL29034_CMD2_RANGE_64KLUX | ISL29034_CMD2_RES_16BIT; in handle_i2c_event() 344 … i2cMasterTx(ISL29034_I2C_BUS_ID, ISL29034_I2C_ADDR, nextXfer->txrxBuf, 3, i2cCallback, nextXfer); in handle_i2c_event()
|
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 431 struct I2cTransfer *nextXfer; in processI2cResponse() local 470 nextXfer = allocXfer(STATE_INT_HANDLE_1); in processI2cResponse() 471 if (nextXfer != NULL) { in processI2cResponse() 472 nextXfer->txrxBuf[0] = S3708_REG_DATA_BASE + S3708_REG_DATA_4_OFFSET; in processI2cResponse() 473 performXfer(nextXfer, 1, 5); in processI2cResponse()
|