Home
last modified time | relevance | path

Searched refs:newXfer (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c575 struct I2cTransfer *newXfer; in handle_i2c_event() local
580 newXfer = allocXfer(SENSOR_STATE_VERIFY_ID); in handle_i2c_event()
581 if (newXfer != NULL) { in handle_i2c_event()
582 newXfer->txrxBuf[0] = ROHM_RPR0521_REG_ID; in handle_i2c_event()
583 …i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 1, i2cCallback, newXfer in handle_i2c_event()
596 newXfer = allocXfer(SENSOR_STATE_INIT_GAINS); in handle_i2c_event()
597 if (newXfer != NULL) { in handle_i2c_event()
598 newXfer->txrxBuf[0] = ROHM_RPR0521_REG_ALS_PS_CONTROL; in handle_i2c_event()
599newXfer->txrxBuf[1] = (ROHM_RPR0521_GAIN_ALS0 << 4) | (ROHM_RPR0521_GAIN_ALS1 << 2) | ROHM_RPR0521… in handle_i2c_event()
600newXfer->txrxBuf[2] = (ROHM_RPR0521_GAIN_PS << 4) | PS_PERSISTENCE_ACTIVE_AT_EACH_MEASUREMENT_END; in handle_i2c_event()
[all …]
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c555 struct I2cTransfer *newXfer; in handleI2cEvent() local
560 newXfer = allocXfer(STATE_VERIFY_ID); in handleI2cEvent()
561 if (newXfer != NULL) { in handleI2cEvent()
562 newXfer->txrxBuf[0] = BOSCH_BMP280_REG_ID; in handleI2cEvent()
563 …ret = i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 1, i2cCallback, n… in handleI2cEvent()
565 releaseXfer(newXfer); in handleI2cEvent()
603 newXfer = allocXfer(STATE_AWAITING_COMP_PARAMS); in handleI2cEvent()
604 if (newXfer != NULL) { in handleI2cEvent()
605 newXfer->txrxBuf[0] = BOSCH_BMP280_REG_DIG_T1; in handleI2cEvent()
606 …ret = i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, (uint8_t*)&mTask.comp, 24, i2cCallb… in handleI2cEvent()
[all …]