Searched refs:tmp_val (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/ |
D | sbs_gauge.c | 73 uint16_t tmp_val = 0; in sbs_gauge_get_prop() local 77 rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_AVG_CURRENT, &tmp_val); in sbs_gauge_get_prop() 78 val->avg_current = tmp_val * 1000; in sbs_gauge_get_prop() 81 rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_CYCLE_COUNT, &tmp_val); in sbs_gauge_get_prop() 82 val->cycle_count = tmp_val; in sbs_gauge_get_prop() 85 rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_CURRENT, &tmp_val); in sbs_gauge_get_prop() 86 val->current = (int16_t)tmp_val * 1000; in sbs_gauge_get_prop() 89 rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_FULL_CAPACITY, &tmp_val); in sbs_gauge_get_prop() 90 val->full_charge_capacity = tmp_val * 1000; in sbs_gauge_get_prop() 93 rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_REM_CAPACITY, &tmp_val); in sbs_gauge_get_prop() [all …]
|
/Zephyr-latest/drivers/fuel_gauge/bq27z746/ |
D | bq27z746.c | 116 uint16_t tmp_val = 0; in bq27z746_get_prop() local 125 rc = bq27z746_read16(dev, BQ27Z746_AVERAGECURRENT, &tmp_val); in bq27z746_get_prop() 126 val->avg_current = (int16_t)tmp_val * 1000; in bq27z746_get_prop() 129 rc = bq27z746_read16(dev, BQ27Z746_CYCLECOUNT, &tmp_val); in bq27z746_get_prop() 130 val->cycle_count = tmp_val * 100; in bq27z746_get_prop() 133 rc = bq27z746_read16(dev, BQ27Z746_CURRENT, &tmp_val); in bq27z746_get_prop() 134 val->current = (int16_t)tmp_val * 1000; in bq27z746_get_prop() 137 rc = bq27z746_read16(dev, BQ27Z746_FULLCHARGECAPACITY, &tmp_val); in bq27z746_get_prop() 138 val->full_charge_capacity = tmp_val * 1000; in bq27z746_get_prop() 141 rc = bq27z746_read16(dev, BQ27Z746_REMAININGCAPACITY, &tmp_val); in bq27z746_get_prop() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh_spi.c | 127 uint8_t tmp_val = value; in lis2dh_spi_write_reg() local 129 return lis2dh_raw_write(dev, reg_addr, &tmp_val, 1); in lis2dh_spi_write_reg() 135 uint8_t tmp_val; in lis2dh_spi_update_reg() local 137 lis2dh_raw_read(dev, reg_addr, &tmp_val, 1); in lis2dh_spi_update_reg() 138 tmp_val = (tmp_val & ~mask) | (value & mask); in lis2dh_spi_update_reg() 140 return lis2dh_raw_write(dev, reg_addr, &tmp_val, 1); in lis2dh_spi_update_reg()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl_spi.c | 116 uint8_t tmp_val; in lsm6dsl_spi_update_reg() local 118 lsm6dsl_raw_read(dev, reg_addr, &tmp_val, 1); in lsm6dsl_spi_update_reg() 119 tmp_val = (tmp_val & ~mask) | (value & mask); in lsm6dsl_spi_update_reg() 121 return lsm6dsl_raw_write(dev, reg_addr, &tmp_val, 1); in lsm6dsl_spi_update_reg()
|
/Zephyr-latest/drivers/sensor/tdk/mpu6050/ |
D | mpu6050.c | 47 int64_t tmp_val = (int64_t)raw_val * 1000000; in mpu6050_convert_temp() local 51 tmp_val = (tmp_val * 1000 / 333870) + 21000000; in mpu6050_convert_temp() 56 tmp_val = (tmp_val / 340) + 36000000; in mpu6050_convert_temp() 59 val->val1 = tmp_val / 1000000; in mpu6050_convert_temp() 60 val->val2 = tmp_val % 1000000; in mpu6050_convert_temp()
|
/Zephyr-latest/drivers/sensor/sensirion/scd4x/ |
D | scd4x.c | 633 int32_t tmp_val; in scd4x_channel_get() local 638 tmp_val = data->temp_sample * SCD4X_MAX_TEMP; in scd4x_channel_get() 639 val->val1 = (int32_t)(tmp_val / 0xFFFF) + SCD4X_MIN_TEMP; in scd4x_channel_get() 640 val->val2 = ((tmp_val % 0xFFFF) * 1000000) / 0xFFFF; in scd4x_channel_get() 644 tmp_val = data->humi_sample * 100; in scd4x_channel_get() 645 val->val1 = (int32_t)(tmp_val / 0xFFFF); in scd4x_channel_get() 646 val->val2 = ((tmp_val % 0xFFFF) * 1000000) / 0xFFFF; in scd4x_channel_get()
|
/Zephyr-latest/drivers/sensor/ti/tmp108/ |
D | tmp108.c | 168 uint16_t tmp_val; in tmp108_attr_get() local 178 &tmp_val); in tmp108_attr_get() 179 val->val1 = tmp_val; in tmp108_attr_get()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt.c | 804 uint64_t tmp_val = 0; in fs_mgmt_file_hash_checksum() local 807 tmp_val = (uint64_t)(*(uint8_t *)output); in fs_mgmt_file_hash_checksum() 810 tmp_val = (uint64_t)(*(uint16_t *)output); in fs_mgmt_file_hash_checksum() 813 tmp_val = (uint64_t)(*(uint32_t *)output); in fs_mgmt_file_hash_checksum() 816 tmp_val = (*(uint64_t *)output); in fs_mgmt_file_hash_checksum() 827 ok &= zcbor_uint64_put(zse, tmp_val); in fs_mgmt_file_hash_checksum()
|