Searched refs:i2c_data (Results 1 – 6 of 6) sorted by relevance
/AliOS-Things-master/components/drivers/external_device/pca9544/src/ |
A D | pca9544_i2c_drv.c | 85 io_i2c_data_t i2c_data; in pca9544_i2c_master_send() local 102 i2c_data.data = data; in pca9544_i2c_master_send() 103 i2c_data.length = size; in pca9544_i2c_master_send() 104 i2c_data.maddr = 0; in pca9544_i2c_master_send() 105 i2c_data.mlength = 0; in pca9544_i2c_master_send() 129 io_i2c_data_t i2c_data; in pca9544_i2c_master_recv() local 147 i2c_data.data = data; in pca9544_i2c_master_recv() 149 i2c_data.maddr = 0; in pca9544_i2c_master_recv() 150 i2c_data.mlength = 0; in pca9544_i2c_master_recv() 175 io_i2c_data_t i2c_data; in pca9544_i2c_mem_write() local [all …]
|
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_ir_akm_ak9754.c | 188 uint8_t i2c_data = mode; in drv_ir_akm_ak9754_set_mode() local 201 uint8_t i2c_data = AK9754_CTRL1_SRST; in drv_ir_akm_ak9754_soft_reset() local 214 uint8_t i2c_data[2]; in drv_ir_akm_ak9754_valid_id() local 222 id = (uint16_t)(((uint16_t)i2c_data[1] << 8) | i2c_data[0]); in drv_ir_akm_ak9754_valid_id() 273 uint8_t i2c_data[6]; in drv_ir_akm_ak9754_read() local 295 ir_data->ir = (uint32_t)((int16_t)(i2c_data[1] | ((uint16_t)i2c_data[2] << 8)) + 32767); in drv_ir_akm_ak9754_read() 380 i2c_data = AK9754_TRACKMODE_VAL; in drv_ir_akm_ak9754_set_default_config() 387 i2c_data = AK9754_TMP_OFFSET_VAL; in drv_ir_akm_ak9754_set_default_config() 394 i2c_data = AK9754_IRD_GAIN_VAL; in drv_ir_akm_ak9754_set_default_config() 411 i2c_data = AK9754_NSAMPLE_VAL; in drv_ir_akm_ak9754_set_default_config() [all …]
|
A D | drv_mag_akm_ak09940.c | 227 uint8_t i2c_data = mode; in drv_mag_akm_ak09940_set_mode() local 281 uint8_t i2c_data[2]; in drv_mag_akm_ak09940_valid_id() local 290 id = (uint16_t)(((uint16_t)i2c_data[1] << 8) | i2c_data[0]); in drv_mag_akm_ak09940_valid_id() 390 …raw_lsb[i] = drv_mag_akm_ak09940_byts_compose(i2c_data[i*3 + 1], i2c_data[i*3 + 2], i2c_data[i*3 +… in drv_mag_akm_ak09940_read() 510 uint8_t i2c_data[AK099XX_BDATA_SIZE]; in drv_mag_akm_ak09940_self_test() local 635 xval_i32 = drv_mag_akm_ak09940_byts_compose(i2c_data[1], i2c_data[2], i2c_data[3]); in drv_mag_akm_ak09940_self_test() 636 yval_i32 = drv_mag_akm_ak09940_byts_compose(i2c_data[4], i2c_data[5], i2c_data[6]); in drv_mag_akm_ak09940_self_test() 637 zval_i32 = drv_mag_akm_ak09940_byts_compose(i2c_data[7], i2c_data[8], i2c_data[9]); in drv_mag_akm_ak09940_self_test() 672 xval_i32 = drv_mag_akm_ak09940_byts_compose(i2c_data[1], i2c_data[2], i2c_data[3]); in drv_mag_akm_ak09940_self_test() 673 yval_i32 = drv_mag_akm_ak09940_byts_compose(i2c_data[4], i2c_data[5], i2c_data[6]); in drv_mag_akm_ak09940_self_test() [all …]
|
A D | drv_mag_akm_ak09918.c | 190 uint8_t i2c_data = mode; in drv_mag_akm_ak09918_set_mode() local 235 uint8_t i2c_data[2]; in drv_mag_akm_ak09918_valid_id() local 243 id = (uint16_t)(((uint16_t)i2c_data[1] << 8) | i2c_data[0]); in drv_mag_akm_ak09918_valid_id() 316 if (i2c_data[8] & AK099XX_HOFL_BIT) { in drv_mag_akm_ak09918_read() 321 raw_lsb[i] = (int16_t)(i2c_data[i*2 + 1] | (((uint16_t)i2c_data[i*2 + 2]) << 8)); in drv_mag_akm_ak09918_read() 546 xval_i16 = (int16_t)(((uint16_t)i2c_data[1]) | ((uint16_t)i2c_data[2] << 8)); in drv_mag_akm_ak09918_self_test() 547 yval_i16 = (int16_t)(((uint16_t)i2c_data[3]) | ((uint16_t)i2c_data[4] << 8)); in drv_mag_akm_ak09918_self_test() 548 zval_i16 = (int16_t)(((uint16_t)i2c_data[5]) | ((uint16_t)i2c_data[6] << 8)); in drv_mag_akm_ak09918_self_test() 582 xval_i16 = (int16_t)(((uint16_t)i2c_data[1]) | ((uint16_t)i2c_data[2] << 8)); in drv_mag_akm_ak09918_self_test() 583 yval_i16 = (int16_t)(((uint16_t)i2c_data[3]) | ((uint16_t)i2c_data[4] << 8)); in drv_mag_akm_ak09918_self_test() [all …]
|
A D | drv_mag_akm_ak09917.c | 190 uint8_t i2c_data = mode; in drv_mag_akm_ak09917_set_mode() local 235 uint8_t i2c_data[2]; in drv_mag_akm_ak09917_valid_id() local 243 id = (uint16_t)(((uint16_t)i2c_data[1] << 8) | i2c_data[0]); in drv_mag_akm_ak09917_valid_id() 316 if (i2c_data[8] & AK099XX_HOFL_BIT) { in drv_mag_akm_ak09917_read() 321 raw_lsb[i] = ((int16_t)(i2c_data[i*2 + 1] << 8)) | (uint16_t)i2c_data[i*2 + 2]; in drv_mag_akm_ak09917_read() 549 xval_i16 = (int16_t)(((uint16_t)i2c_data[1] << 8) | (uint16_t)i2c_data[2]); in drv_mag_akm_ak09917_self_test() 550 yval_i16 = (int16_t)(((uint16_t)i2c_data[3] << 8) | (uint16_t)i2c_data[4]); in drv_mag_akm_ak09917_self_test() 551 zval_i16 = (int16_t)(((uint16_t)i2c_data[5] << 8) | (uint16_t)i2c_data[6]); in drv_mag_akm_ak09917_self_test() 585 xval_i16 = (int16_t)(((uint16_t)i2c_data[1] << 8) | (uint16_t)i2c_data[2]); in drv_mag_akm_ak09917_self_test() 586 yval_i16 = (int16_t)(((uint16_t)i2c_data[3] << 8) | (uint16_t)i2c_data[4]); in drv_mag_akm_ak09917_self_test() [all …]
|
/AliOS-Things-master/components/sensor/hal/ |
A D | sensor_drv_api.c | 79 io_i2c_data_t i2c_data; in vfs_i2c_master_send() local 92 i2c_data.data = data; in vfs_i2c_master_send() 93 i2c_data.length = size; in vfs_i2c_master_send() 94 i2c_data.maddr = 0; in vfs_i2c_master_send() 95 i2c_data.mlength = 0; in vfs_i2c_master_send() 109 io_i2c_data_t i2c_data; in vfs_i2c_master_recv() local 123 i2c_data.data = data; in vfs_i2c_master_recv() 125 i2c_data.maddr = 0; in vfs_i2c_master_recv() 126 i2c_data.mlength = 0; in vfs_i2c_master_recv() 153 i2c_data.data = data; in vfs_i2c_mem_write() [all …]
|
Completed in 16 milliseconds