Searched refs:tmp (Results 1 – 9 of 9) sorted by relevance
3770 float_t tmp; in lsm6dsv16b_act_thresholds_set() local3788 tmp = (float_t)val.inact_ths_mg / 7.8125f; in lsm6dsv16b_act_thresholds_set()3789 inactivity_ths.inact_ths = (uint8_t)tmp; in lsm6dsv16b_act_thresholds_set()3791 tmp = (float_t)val.wk_ths_mg / 7.8125f; in lsm6dsv16b_act_thresholds_set()3792 wake_up_ths.wk_ths = (uint8_t)tmp; in lsm6dsv16b_act_thresholds_set()3799 tmp = (float_t)val.inact_ths_mg / 15.625f; in lsm6dsv16b_act_thresholds_set()3800 inactivity_ths.inact_ths = (uint8_t)tmp; in lsm6dsv16b_act_thresholds_set()3802 tmp = (float_t)val.wk_ths_mg / 15.625f; in lsm6dsv16b_act_thresholds_set()3803 wake_up_ths.wk_ths = (uint8_t)tmp; in lsm6dsv16b_act_thresholds_set()3810 tmp = (float_t)val.inact_ths_mg / 31.25f; in lsm6dsv16b_act_thresholds_set()[all …]
3928 float_t tmp; in lsm6dsv16bx_act_thresholds_set() local3946 tmp = (float_t)val.inact_ths_mg / 7.8125f; in lsm6dsv16bx_act_thresholds_set()3947 inactivity_ths.inact_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()3949 tmp = (float_t)val.wk_ths_mg / 7.8125f; in lsm6dsv16bx_act_thresholds_set()3950 wake_up_ths.wk_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()3957 tmp = (float_t)val.inact_ths_mg / 15.625f; in lsm6dsv16bx_act_thresholds_set()3958 inactivity_ths.inact_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()3960 tmp = (float_t)val.wk_ths_mg / 15.625f; in lsm6dsv16bx_act_thresholds_set()3961 wake_up_ths.wk_ths = (uint8_t)tmp; in lsm6dsv16bx_act_thresholds_set()3968 tmp = (float_t)val.inact_ths_mg / 31.25f; in lsm6dsv16bx_act_thresholds_set()[all …]
3916 float_t tmp; in ism330bx_act_thresholds_set() local3934 tmp = (float_t)val.inact_ths_mg / 7.8125f; in ism330bx_act_thresholds_set()3935 inactivity_ths.inact_ths = (uint8_t)tmp; in ism330bx_act_thresholds_set()3937 tmp = (float_t)val.wk_ths_mg / 7.8125f; in ism330bx_act_thresholds_set()3938 wake_up_ths.wk_ths = (uint8_t)tmp; in ism330bx_act_thresholds_set()3945 tmp = (float_t)val.inact_ths_mg / 15.625f; in ism330bx_act_thresholds_set()3946 inactivity_ths.inact_ths = (uint8_t)tmp; in ism330bx_act_thresholds_set()3948 tmp = (float_t)val.wk_ths_mg / 15.625f; in ism330bx_act_thresholds_set()3949 wake_up_ths.wk_ths = (uint8_t)tmp; in ism330bx_act_thresholds_set()3956 tmp = (float_t)val.inact_ths_mg / 31.25f; in ism330bx_act_thresholds_set()[all …]
3852 float_t tmp; in st1vafe6ax_act_thresholds_set() local3870 tmp = (float_t)val.inact_ths_mg / 7.8125f; in st1vafe6ax_act_thresholds_set()3871 inactivity_ths.inact_ths = (uint8_t)tmp; in st1vafe6ax_act_thresholds_set()3873 tmp = (float_t)val.wk_ths_mg / 7.8125f; in st1vafe6ax_act_thresholds_set()3874 wake_up_ths.wk_ths = (uint8_t)tmp; in st1vafe6ax_act_thresholds_set()3881 tmp = (float_t)val.inact_ths_mg / 15.625f; in st1vafe6ax_act_thresholds_set()3882 inactivity_ths.inact_ths = (uint8_t)tmp; in st1vafe6ax_act_thresholds_set()3884 tmp = (float_t)val.wk_ths_mg / 15.625f; in st1vafe6ax_act_thresholds_set()3885 wake_up_ths.wk_ths = (uint8_t)tmp; in st1vafe6ax_act_thresholds_set()3892 tmp = (float_t)val.inact_ths_mg / 31.25f; in st1vafe6ax_act_thresholds_set()[all …]
1994 uint8_t tmp; in sths34pf80_algo_config_set() local1997 tmp = (val.int_pulsed << 3) | (val.comp_type << 2) | (val.sel_abs << 1); in sths34pf80_algo_config_set()1998 ret = sths34pf80_func_cfg_write(ctx, STHS34PF80_ALGO_CONFIG, &tmp, 1); in sths34pf80_algo_config_set()2013 uint8_t tmp; in sths34pf80_algo_config_get() local2016 ret = sths34pf80_func_cfg_read(ctx, STHS34PF80_ALGO_CONFIG, &tmp, 1); in sths34pf80_algo_config_get()2017 val->sel_abs = (tmp >> 1) & 0x1U; in sths34pf80_algo_config_get()2018 val->comp_type = (tmp >> 2) & 0x1U; in sths34pf80_algo_config_get()2019 val->int_pulsed = (tmp >> 3) & 0x1U; in sths34pf80_algo_config_get()
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()
312 float_t tmp; in lsm6dsv_xl_offset_mg_set() local329 tmp = val.z_mg / 0.0078125f; in lsm6dsv_xl_offset_mg_set()330 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()332 tmp = val.y_mg / 0.0078125f; in lsm6dsv_xl_offset_mg_set()333 y_ofs_usr.y_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()335 tmp = val.x_mg / 0.0078125f; in lsm6dsv_xl_offset_mg_set()336 x_ofs_usr.x_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()344 tmp = val.z_mg / 0.125f; in lsm6dsv_xl_offset_mg_set()345 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv_xl_offset_mg_set()347 tmp = val.y_mg / 0.125f; in lsm6dsv_xl_offset_mg_set()[all …]
317 float_t tmp; in lsm6dsv16x_xl_offset_mg_set() local334 tmp = val.z_mg / 0.0078125f; in lsm6dsv16x_xl_offset_mg_set()335 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()337 tmp = val.y_mg / 0.0078125f; in lsm6dsv16x_xl_offset_mg_set()338 y_ofs_usr.y_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()340 tmp = val.x_mg / 0.0078125f; in lsm6dsv16x_xl_offset_mg_set()341 x_ofs_usr.x_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()349 tmp = val.z_mg / 0.125f; in lsm6dsv16x_xl_offset_mg_set()350 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv16x_xl_offset_mg_set()352 tmp = val.y_mg / 0.125f; in lsm6dsv16x_xl_offset_mg_set()[all …]
317 float_t tmp; in lsm6dsv32x_xl_offset_mg_set() local334 tmp = val.z_mg / 0.0078125f; in lsm6dsv32x_xl_offset_mg_set()335 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv32x_xl_offset_mg_set()337 tmp = val.y_mg / 0.0078125f; in lsm6dsv32x_xl_offset_mg_set()338 y_ofs_usr.y_ofs_usr = (uint8_t)tmp; in lsm6dsv32x_xl_offset_mg_set()340 tmp = val.x_mg / 0.0078125f; in lsm6dsv32x_xl_offset_mg_set()341 x_ofs_usr.x_ofs_usr = (uint8_t)tmp; in lsm6dsv32x_xl_offset_mg_set()349 tmp = val.z_mg / 0.125f; in lsm6dsv32x_xl_offset_mg_set()350 z_ofs_usr.z_ofs_usr = (uint8_t)tmp; in lsm6dsv32x_xl_offset_mg_set()352 tmp = val.y_mg / 0.125f; in lsm6dsv32x_xl_offset_mg_set()[all …]