Home
last modified time | relevance | path

Searched refs:valp (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/sensor/maxim/max17262/
Dmax17262.c28 static int max17262_reg_read(const struct device *dev, uint8_t reg_addr, int16_t *valp) in max17262_reg_read() argument
39 *valp = ((int16_t)i2c_data[1] << 8) | i2c_data[0]; in max17262_reg_read()
84 struct sensor_value *valp) in max17262_channel_get() argument
95 valp->val1 = tmp / 1000000; in max17262_channel_get()
96 valp->val2 = tmp % 1000000; in max17262_channel_get()
103 valp->val1 = current / 1000000; in max17262_channel_get()
104 valp->val2 = current % 1000000; in max17262_channel_get()
108 valp->val1 = data->state_of_charge / 256; in max17262_channel_get()
109 valp->val2 = data->state_of_charge % 256 * 1000000 / 256; in max17262_channel_get()
112 valp->val1 = data->internal_temp / 256; in max17262_channel_get()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max17055/
Dmax17055.c31 int16_t *valp) in max17055_reg_read() argument
42 *valp = sys_get_le16(i2c_data); in max17055_reg_read()
151 struct sensor_value *valp) in max17055_channel_get() argument
161 valp->val1 = tmp / 1000000; in max17055_channel_get()
162 valp->val2 = tmp % 1000000; in max17055_channel_get()
166 valp->val1 = tmp / 1000000; in max17055_channel_get()
167 valp->val2 = tmp % 1000000; in max17055_channel_get()
173 set_millis(valp, current_ma); in max17055_channel_get()
177 valp->val1 = priv->state_of_charge / 256; in max17055_channel_get()
178 valp->val2 = priv->state_of_charge % 256 * 1000000 / 256; in max17055_channel_get()
[all …]
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/
Dnpm1300_charger.c154 struct sensor_value *valp) in calc_temp() argument
162 valp->val1 = (int32_t)temp; in calc_temp()
163 valp->val2 = (int32_t)(fmodf(temp, 1.f) * 1000000.f); in calc_temp()
167 struct sensor_value *valp) in calc_dietemp() argument
173 valp->val1 = temp / 1000; in calc_dietemp()
174 valp->val2 = (temp % 1000) * 1000; in calc_dietemp()
194 struct npm1300_charger_data *const data, struct sensor_value *valp) in calc_current() argument
217 valp->val1 = current / 1000; in calc_current()
218 valp->val2 = (current % 1000) * 1000; in calc_current()
222 struct sensor_value *valp) in npm1300_charger_channel_get() argument
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dadc.h869 int32_t *valp) in adc_raw_to_millivolts() argument
871 int32_t adc_mv = *valp * ref_mv; in adc_raw_to_millivolts()
875 *valp = (adc_mv >> resolution); in adc_raw_to_millivolts()
895 int32_t *valp) in adc_raw_to_millivolts_dt() argument
921 resolution, valp); in adc_raw_to_millivolts_dt()
/Zephyr-latest/drivers/sensor/nordic/npm2100_vbat/
Dnpm2100_vbat.c133 struct sensor_value *valp) in npm2100_vbat_channel_get() argument
188 valp->val1 = tmp / 1000000; in npm2100_vbat_channel_get()
189 valp->val2 = tmp % 1000000; in npm2100_vbat_channel_get()