Home
last modified time | relevance | path

Searched refs:i2cCallback (Results 1 – 12 of 12) sorted by relevance

/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c217 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
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 …C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 1, nextXfer->txrxBuf.bytes, 1, i2cCallback, nextXfer); in handle_calibration_event()
506 …C_BUS_ID, I2C_ADDR, nextXfer->txrxBuf.bytes, 1, nextXfer->txrxBuf.bytes, 2, i2cCallback, nextXfer); 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()
716 …asterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 1, xfer->txrxBuf.bytes, 1, i2cCallback, xfer); in handle_event()
731 …asterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 1, xfer->txrxBuf.bytes, 7, i2cCallback, xfer); in handle_event()
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c169 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
210 … ret = i2cMasterTx(ISL29034_I2C_BUS_ID, ISL29034_I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister()
344 … i2cMasterTx(ISL29034_I2C_BUS_ID, ISL29034_I2C_ADDR, nextXfer->txrxBuf, 3, i2cCallback, nextXfer); in handle_i2c_event()
423 …xRx(ISL29034_I2C_BUS_ID, ISL29034_I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 1, i2cCallback, xfer); in handle_event()
437 …xRx(ISL29034_I2C_BUS_ID, ISL29034_I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 2, i2cCallback, xfer); in handle_event()
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c277 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
311 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister()
369 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
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()
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()
1055 … i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, 2, i2cCallback, xfer); in handle_event()
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c182 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
218 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister()
253 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
563 …2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 1, i2cCallback, newXfer); in handleI2cEvent()
606 …erTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, (uint8_t*)&mTask.comp, 24, i2cCallback, newXfer); in handleI2cEvent()
729 …2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 6, i2cCallback, newXfer); in handleEvent()
746 …2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, newXfer->txrxBuf, 1, newXfer->txrxBuf, 6, i2cCallback, newXfer); in handleEvent()
/device/google/contexthub/firmware/os/drivers/st_hts221/
Dhts221.c211 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
238 xfer->txrxBuf, 1, xfer->txrxBuf, len, i2cCallback, xfer)) < 0) { in i2c_read()
256 …if ((ret = i2cMasterTx(HTS221_I2C_BUS_ID, HTS221_I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer)) <… in i2c_write()
/device/google/contexthub/firmware/os/drivers/si_si7034/
Dsi7034a10.c164 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
186 xfer->txrxBuf, 2, xfer->txrxBuf, 6, i2cCallback, xfer); in si7034_i2c_read()
204 xfer->txrxBuf, 1, i2cCallback, xfer); in si7034_i2c_write()
/device/google/contexthub/firmware/os/drivers/leds/
Dleds_lp3943.c112 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
181 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister()
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/
Dsynaptics_s3708.c187 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
241 …asterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txBytes, xfer->txrxBuf, rxBytes, i2cCallback, xfer); in performXfer()
243 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txBytes, i2cCallback, xfer); in performXfer()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c326 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
333 i2cCallback((void *)xfer, xfer->tx, xfer->rx, xfer->err); in i2cDelayCallback()
336 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
379 …x(ST_MAG40_I2C_BUS_ID, ST_MAG40_I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, len, i2cCallback, xfer); in i2c_read()
392 i2cMasterTx(ST_MAG40_I2C_BUS_ID, ST_MAG40_I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in i2c_write()
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c235 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
255 …22HB_I2C_BUS_ID, LPS22HB_I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, len, i2cCallback, xfer)) < 0) { in i2c_read()
273 …if ((ret = i2cMasterTx(LPS22HB_I2C_BUS_ID, LPS22HB_I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer))… in i2c_write()
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c299 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() function
342 int ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txSize, i2cCallback, xfer); in i2cWrite()
374 xfer->txrxBuf, 1, xfer->txrxBuf, len, i2cCallback, xfer); in readRegister()
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c3677 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
3682 i2cCallback(data, 0, 0, 0);
3685 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) function
3724 …err = i2cMasterTxRx(BMI160_I2C_BUS_ID, BMI160_I2C_ADDR, txBuf, 1, rxBuf, size, i2cCallback, evtDat…
3726 err = i2cMasterTx(BMI160_I2C_BUS_ID, BMI160_I2C_ADDR, txBuf, size, i2cCallback, evtData);