Searched refs:tmp (Results 1 – 6 of 6) sorted by relevance
3910 float_t tmp; in lsm6dsv16bx_act_thresholds_set() local3928 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 …]
1943 uint8_t tmp; in sths34pf80_algo_config_set() local1946 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() local1965 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() local2127 tmp = 1; in sths34pf80_algo_reset()[all …]
1147 uint64_t tmp = 0; in VL53L1_calc_timeout_us() local1151 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()
923 int16_t tmp = (int16_t)utmp; in get_diff_3x() local924 diff[j + 3u * i] = tmp < 16 ? tmp : (tmp - 32); in get_diff_3x()
248 float_t tmp; in lsm6dsv_xl_offset_mg_set() local262 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 …]
253 float_t tmp; in lsm6dsv16x_xl_offset_mg_set() local267 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 …]