Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 6 of 6) sorted by relevance

/hal_st-3.6.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/
Dlsm6dsv16bx_reg.c3910 float_t tmp; in lsm6dsv16bx_act_thresholds_set() local
3928 tmp = (float_t)val.inact_ths_mg / 7.8125f; in lsm6dsv16bx_act_thresholds_set()
3929 inactivity_ths.inact_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()
3931 tmp = (float_t)val.wk_ths_mg / 7.8125f; in lsm6dsv16bx_act_thresholds_set()
3932 wake_up_ths.wk_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()
3939 tmp = (float_t)val.inact_ths_mg / 15.625f; in lsm6dsv16bx_act_thresholds_set()
3940 inactivity_ths.inact_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()
3942 tmp = (float_t)val.wk_ths_mg / 15.625f; in lsm6dsv16bx_act_thresholds_set()
3943 wake_up_ths.wk_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()
3950 tmp = (float_t)val.inact_ths_mg / 31.25f; in lsm6dsv16bx_act_thresholds_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/sths34pf80_STdC/driver/
Dsths34pf80_reg.c1943 uint8_t tmp; in sths34pf80_algo_config_set() local
1946 tmp = (val.int_pulsed << 3) | (val.comp_type << 2) | (val.sel_abs << 1); in sths34pf80_algo_config_set()
1947 ret = sths34pf80_func_cfg_write(ctx, STHS34PF80_ALGO_CONFIG, &tmp, 1); in sths34pf80_algo_config_set()
1962 uint8_t tmp; in sths34pf80_algo_config_get() local
1965 ret = sths34pf80_func_cfg_read(ctx, STHS34PF80_ALGO_CONFIG, &tmp, 1); in sths34pf80_algo_config_get()
1966 val->sel_abs = (tmp >> 1) & 0x1U; in sths34pf80_algo_config_get()
1967 val->comp_type = (tmp >> 2) & 0x1U; in sths34pf80_algo_config_get()
1968 val->int_pulsed = (tmp >> 3) & 0x1U; in sths34pf80_algo_config_get()
2124 uint8_t tmp; in sths34pf80_algo_reset() local
2127 tmp = 1; in sths34pf80_algo_reset()
[all …]
/hal_st-3.6.0/sensor/vl53l1x/api/core/src/
Dvl53l1_core.c1147 uint64_t tmp = 0; in VL53L1_calc_timeout_us() local
1151 tmp = (uint64_t)timeout_mclks * (uint64_t)macro_period_us; in VL53L1_calc_timeout_us()
1152 tmp += 0x00800; in VL53L1_calc_timeout_us()
1153 tmp = tmp >> 12; in VL53L1_calc_timeout_us()
1155 timeout_us = (uint32_t)tmp; in VL53L1_calc_timeout_us()
/hal_st-3.6.0/sensor/stmemsc/_resources/FIFO_Utility_Tool/
Dst_fifo.c923 int16_t tmp = (int16_t)utmp; in get_diff_3x() local
924 diff[j + 3u * i] = tmp < 16 ? tmp : (tmp - 32); in get_diff_3x()
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv_STdC/driver/
Dlsm6dsv_reg.c248 float_t tmp; in lsm6dsv_xl_offset_mg_set() local
262 tmp = val.z_mg / 0.0078125f; in lsm6dsv_xl_offset_mg_set()
263 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()
265 tmp = val.y_mg / 0.0078125f; in lsm6dsv_xl_offset_mg_set()
266 y_ofs_usr.y_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()
268 tmp = val.x_mg / 0.0078125f; in lsm6dsv_xl_offset_mg_set()
269 x_ofs_usr.x_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()
277 tmp = val.z_mg / 0.125f; in lsm6dsv_xl_offset_mg_set()
278 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()
280 tmp = val.y_mg / 0.125f; in lsm6dsv_xl_offset_mg_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/
Dlsm6dsv16x_reg.c253 float_t tmp; in lsm6dsv16x_xl_offset_mg_set() local
267 tmp = val.z_mg / 0.0078125f; in lsm6dsv16x_xl_offset_mg_set()
268 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()
270 tmp = val.y_mg / 0.0078125f; in lsm6dsv16x_xl_offset_mg_set()
271 y_ofs_usr.y_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()
273 tmp = val.x_mg / 0.0078125f; in lsm6dsv16x_xl_offset_mg_set()
274 x_ofs_usr.x_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()
282 tmp = val.z_mg / 0.125f; in lsm6dsv16x_xl_offset_mg_set()
283 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()
285 tmp = val.y_mg / 0.125f; in lsm6dsv16x_xl_offset_mg_set()
[all …]