Home
last modified time | relevance | path

Searched refs:free_fall (Results 1 – 25 of 54) sorted by relevance

123

/hal_st-3.6.0/sensor/stmemsc/lis2du12_STdC/driver/
Dlis2du12_reg.c404 val->free_fall = all_int_src.ff_ia_all; in lis2du12_all_sources_get()
1048 md1_cfg.int1_ff = val->free_fall; in lis2du12_pin_int1_route_set()
1098 val->free_fall = md1_cfg.int1_ff; in lis2du12_pin_int1_route_get()
1143 md2_cfg.int2_ff = val->free_fall; in lis2du12_pin_int2_route_set()
1193 val->free_fall = md2_cfg.int2_ff; in lis2du12_pin_int2_route_get()
1510 lis2du12_free_fall_t free_fall; in lis2du12_free_fall_mode_set() local
1515 ret += lis2du12_read_reg(ctx, LIS2DU12_FREE_FALL, (uint8_t*)&free_fall, 1); in lis2du12_free_fall_mode_set()
1518 free_fall.ff_dur = (val->duration) & 0x20U >> 5; in lis2du12_free_fall_mode_set()
1520 free_fall.ff_ths = (uint8_t)val->threshold; in lis2du12_free_fall_mode_set()
1524 ret += lis2du12_write_reg(ctx, LIS2DU12_FREE_FALL, (uint8_t*)&free_fall, 1); in lis2du12_free_fall_mode_set()
[all …]
Dlis2du12_reg.h670 lis2du12_free_fall_t free_fall; member
754 uint8_t free_fall : 1; /* free fall event */ member
896 uint8_t free_fall : 1; /* free fall event */ member
/hal_st-3.6.0/sensor/stmemsc/lis2dux12_STdC/driver/
Dlis2dux12_reg.c603 val->free_fall = wu_src.ff_ia; in lis2dux12_all_sources_get()
1265 md1_cfg.int1_ff = val->free_fall; in lis2dux12_pin_int1_route_set()
1307 val->free_fall = md1_cfg.int1_ff; in lis2dux12_pin_int1_route_get()
1426 md2_cfg.int2_ff = val->free_fall; in lis2dux12_pin_int2_route_set()
1465 val->free_fall = md2_cfg.int2_ff; in lis2dux12_pin_int2_route_get()
2330 lis2dux12_free_fall_t free_fall; in lis2dux12_ff_duration_set() local
2343 ret = lis2dux12_read_reg(ctx, LIS2DUX12_FREE_FALL, (uint8_t *)&free_fall, 1); in lis2dux12_ff_duration_set()
2344 free_fall.ff_dur = val & 0x1FU; in lis2dux12_ff_duration_set()
2345 ret += lis2dux12_write_reg(ctx, LIS2DUX12_FREE_FALL, (uint8_t *)&free_fall, 1); in lis2dux12_ff_duration_set()
2362 lis2dux12_free_fall_t free_fall; in lis2dux12_ff_duration_get() local
[all …]
/hal_st-3.6.0/sensor/stmemsc/lis2ds12_STdC/driver/
Dlis2ds12_reg.c2395 lis2ds12_free_fall_t free_fall; in lis2ds12_ff_dur_set() local
2400 (uint8_t *)&free_fall, 1); in lis2ds12_ff_dur_set()
2404 free_fall.ff_dur = val & 0x1FU; in lis2ds12_ff_dur_set()
2406 (uint8_t *)&free_fall, 1); in lis2ds12_ff_dur_set()
2435 lis2ds12_free_fall_t free_fall; in lis2ds12_ff_dur_get() local
2440 (uint8_t *)&free_fall, 1); in lis2ds12_ff_dur_get()
2446 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lis2ds12_ff_dur_get()
2462 lis2ds12_free_fall_t free_fall; in lis2ds12_ff_threshold_set() local
2466 (uint8_t *)&free_fall, 1); in lis2ds12_ff_threshold_set()
2470 free_fall.ff_ths = val; in lis2ds12_ff_threshold_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lis2duxs12_STdC/driver/
Dlis2duxs12_reg.c608 val->free_fall = wu_src.ff_ia; in lis2duxs12_all_sources_get()
1294 md1_cfg.int1_ff = val->free_fall; in lis2duxs12_pin_int1_route_set()
1336 val->free_fall = md1_cfg.int1_ff; in lis2duxs12_pin_int1_route_get()
1455 md2_cfg.int2_ff = val->free_fall; in lis2duxs12_pin_int2_route_set()
1494 val->free_fall = md2_cfg.int2_ff; in lis2duxs12_pin_int2_route_get()
2469 lis2duxs12_free_fall_t free_fall; in lis2duxs12_ff_duration_set() local
2482 ret = lis2duxs12_read_reg(ctx, LIS2DUXS12_FREE_FALL, (uint8_t *)&free_fall, 1); in lis2duxs12_ff_duration_set()
2483 free_fall.ff_dur = val & 0x1FU; in lis2duxs12_ff_duration_set()
2484 ret += lis2duxs12_write_reg(ctx, LIS2DUXS12_FREE_FALL, (uint8_t *)&free_fall, 1); in lis2duxs12_ff_duration_set()
2501 lis2duxs12_free_fall_t free_fall; in lis2duxs12_ff_duration_get() local
[all …]
/hal_st-3.6.0/sensor/stmemsc/asm330lhh_STdC/driver/
Dasm330lhh_reg.c3441 asm330lhh_free_fall_t free_fall; in asm330lhh_ff_threshold_set() local
3445 (uint8_t *)&free_fall, 1); in asm330lhh_ff_threshold_set()
3449 free_fall.ff_ths = (uint8_t)val; in asm330lhh_ff_threshold_set()
3451 (uint8_t *)&free_fall, 1); in asm330lhh_ff_threshold_set()
3468 asm330lhh_free_fall_t free_fall; in asm330lhh_ff_threshold_get() local
3472 (uint8_t *)&free_fall, 1); in asm330lhh_ff_threshold_get()
3474 switch (free_fall.ff_ths) in asm330lhh_ff_threshold_get()
3527 asm330lhh_free_fall_t free_fall; in asm330lhh_ff_dur_set() local
3543 (uint8_t *)&free_fall, 1); in asm330lhh_ff_dur_set()
3548 free_fall.ff_dur = val & 0x1FU; in asm330lhh_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/
Dlsm6dsv16bx_reg.c1180 val->free_fall = all_int_src.ff_ia; in lsm6dsv16bx_all_sources_get()
3056 md1_cfg.int1_ff = val.free_fall; in lsm6dsv16bx_pin_int1_route_set()
3095 | pin_int2_route.free_fall in lsm6dsv16bx_pin_int1_route_set()
3102 | val.free_fall in lsm6dsv16bx_pin_int1_route_set()
3185 val->free_fall = md1_cfg.int1_ff; in lsm6dsv16bx_pin_int1_route_get()
3378 md2_cfg.int2_ff = val.free_fall; in lsm6dsv16bx_pin_int2_route_set()
3418 | pin_int1_route.free_fall in lsm6dsv16bx_pin_int2_route_set()
3425 | val.free_fall in lsm6dsv16bx_pin_int2_route_set()
3506 val->free_fall = md2_cfg.int2_ff; in lsm6dsv16bx_pin_int2_route_get()
4557 lsm6dsv16bx_free_fall_t free_fall; in lsm6dsv16bx_ff_time_windows_set() local
[all …]
/hal_st-3.6.0/sensor/stmemsc/ais2dw12_STdC/driver/
Dais2dw12_reg.c2275 ais2dw12_free_fall_t free_fall; in ais2dw12_ff_dur_set() local
2284 (uint8_t *) &free_fall, 1); in ais2dw12_ff_dur_set()
2290 free_fall.ff_dur = (uint8_t) val & 0x1FU; in ais2dw12_ff_dur_set()
2298 (uint8_t *) &free_fall, 1); in ais2dw12_ff_dur_set()
2316 ais2dw12_free_fall_t free_fall; in ais2dw12_ff_dur_get() local
2325 (uint8_t *) &free_fall, 1); in ais2dw12_ff_dur_get()
2326 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in ais2dw12_ff_dur_get()
/hal_st-3.6.0/sensor/stmemsc/lis2dtw12_STdC/driver/
Dlis2dtw12_reg.c2940 lis2dtw12_free_fall_t free_fall; in lis2dtw12_ff_dur_set() local
2949 (uint8_t *) &free_fall, 1); in lis2dtw12_ff_dur_set()
2955 free_fall.ff_dur = (uint8_t) val & 0x1FU; in lis2dtw12_ff_dur_set()
2963 (uint8_t *) &free_fall, 1); in lis2dtw12_ff_dur_set()
2981 lis2dtw12_free_fall_t free_fall; in lis2dtw12_ff_dur_get() local
2990 (uint8_t *) &free_fall, 1); in lis2dtw12_ff_dur_get()
2991 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lis2dtw12_ff_dur_get()
/hal_st-3.6.0/sensor/stmemsc/ais2ih_STdC/driver/
Dais2ih_reg.c2926 ais2ih_free_fall_t free_fall; in ais2ih_ff_dur_set() local
2934 ret = ais2ih_read_reg(ctx, AIS2IH_FREE_FALL, (uint8_t *) &free_fall, 1); in ais2ih_ff_dur_set()
2940 free_fall.ff_dur = (uint8_t) val & 0x1FU; in ais2ih_ff_dur_set()
2947 ret = ais2ih_write_reg(ctx, AIS2IH_FREE_FALL, (uint8_t *) &free_fall, 1); in ais2ih_ff_dur_set()
2965 ais2ih_free_fall_t free_fall; in ais2ih_ff_dur_get() local
2973 ret = ais2ih_read_reg(ctx, AIS2IH_FREE_FALL, (uint8_t *) &free_fall, 1); in ais2ih_ff_dur_get()
2974 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in ais2ih_ff_dur_get()
/hal_st-3.6.0/sensor/stmemsc/iis2dlpc_STdC/driver/
Diis2dlpc_reg.c2970 iis2dlpc_free_fall_t free_fall; in iis2dlpc_ff_dur_set() local
2979 (uint8_t *) &free_fall, 1); in iis2dlpc_ff_dur_set()
2985 free_fall.ff_dur = (uint8_t) val & 0x1FU; in iis2dlpc_ff_dur_set()
2993 (uint8_t *) &free_fall, 1); in iis2dlpc_ff_dur_set()
3011 iis2dlpc_free_fall_t free_fall; in iis2dlpc_ff_dur_get() local
3020 (uint8_t *) &free_fall, 1); in iis2dlpc_ff_dur_get()
3021 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in iis2dlpc_ff_dur_get()
/hal_st-3.6.0/sensor/stmemsc/lis2dw12_STdC/driver/
Dlis2dw12_reg.c2948 lis2dw12_free_fall_t free_fall; in lis2dw12_ff_dur_set() local
2957 (uint8_t *) &free_fall, 1); in lis2dw12_ff_dur_set()
2963 free_fall.ff_dur = (uint8_t) val & 0x1FU; in lis2dw12_ff_dur_set()
2971 (uint8_t *) &free_fall, 1); in lis2dw12_ff_dur_set()
2989 lis2dw12_free_fall_t free_fall; in lis2dw12_ff_dur_get() local
2998 (uint8_t *) &free_fall, 1); in lis2dw12_ff_dur_get()
2999 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lis2dw12_ff_dur_get()
/hal_st-3.6.0/sensor/stmemsc/lsm6ds3_STdC/driver/
Dlsm6ds3_reg.c3909 lsm6ds3_free_fall_t free_fall; in lsm6ds3_ff_threshold_set() local
3912 ret = lsm6ds3_read_reg(ctx, LSM6DS3_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6ds3_ff_threshold_set()
3916 free_fall.ff_ths = (uint8_t)val; in lsm6ds3_ff_threshold_set()
3917 ret = lsm6ds3_write_reg(ctx, LSM6DS3_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6ds3_ff_threshold_set()
3934 lsm6ds3_free_fall_t free_fall; in lsm6ds3_ff_threshold_get() local
3937 ret = lsm6ds3_read_reg(ctx, LSM6DS3_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6ds3_ff_threshold_get()
3939 switch (free_fall.ff_ths) in lsm6ds3_ff_threshold_get()
3991 lsm6ds3_free_fall_t free_fall; in lsm6ds3_ff_dur_set() local
3994 ret = lsm6ds3_read_reg(ctx, LSM6DS3_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6ds3_ff_dur_set()
3998 free_fall.ff_dur = (uint8_t)val; in lsm6ds3_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/asm330lhb_STdC/driver/
Dasm330lhb_reg.c4330 asm330lhb_free_fall_t free_fall; in asm330lhb_ff_threshold_set() local
4333 ret = asm330lhb_read_reg(ctx, ASM330LHB_FREE_FALL, (uint8_t *)&free_fall, 1); in asm330lhb_ff_threshold_set()
4336 free_fall.ff_ths = (uint8_t)val; in asm330lhb_ff_threshold_set()
4338 (uint8_t *)&free_fall, 1); in asm330lhb_ff_threshold_set()
4354 asm330lhb_free_fall_t free_fall; in asm330lhb_ff_threshold_get() local
4357 ret = asm330lhb_read_reg(ctx, ASM330LHB_FREE_FALL, (uint8_t *)&free_fall, 1); in asm330lhb_ff_threshold_get()
4359 switch (free_fall.ff_ths) in asm330lhb_ff_threshold_get()
4403 asm330lhb_free_fall_t free_fall; in asm330lhb_ff_dur_set() local
4417 (uint8_t *)&free_fall, 1); in asm330lhb_ff_dur_set()
4421 free_fall.ff_dur = val & 0x1FU; in asm330lhb_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6ds3tr-c_STdC/driver/
Dlsm6ds3tr-c_reg.c4222 lsm6ds3tr_c_free_fall_t free_fall; in lsm6ds3tr_c_ff_dur_set() local
4226 (uint8_t *)&free_fall, 1); in lsm6ds3tr_c_ff_dur_set()
4230 free_fall.ff_dur = (val & 0x1FU); in lsm6ds3tr_c_ff_dur_set()
4232 (uint8_t *)&free_fall, 1); in lsm6ds3tr_c_ff_dur_set()
4262 lsm6ds3tr_c_free_fall_t free_fall; in lsm6ds3tr_c_ff_dur_get() local
4271 (uint8_t *)&free_fall, 1); in lsm6ds3tr_c_ff_dur_get()
4274 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lsm6ds3tr_c_ff_dur_get()
4290 lsm6ds3tr_c_free_fall_t free_fall; in lsm6ds3tr_c_ff_threshold_set() local
4294 (uint8_t *)&free_fall, 1); in lsm6ds3tr_c_ff_threshold_set()
4298 free_fall.ff_ths = (uint8_t) val; in lsm6ds3tr_c_ff_threshold_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsl_STdC/driver/
Dlsm6dsl_reg.c4048 lsm6dsl_free_fall_t free_fall; in lsm6dsl_ff_dur_set() local
4051 ret = lsm6dsl_read_reg(ctx, LSM6DSL_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsl_ff_dur_set()
4055 free_fall.ff_dur = (val & 0x1FU); in lsm6dsl_ff_dur_set()
4056 ret = lsm6dsl_write_reg(ctx, LSM6DSL_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsl_ff_dur_set()
4086 lsm6dsl_free_fall_t free_fall; in lsm6dsl_ff_dur_get() local
4094 ret = lsm6dsl_read_reg(ctx, LSM6DSL_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsl_ff_dur_get()
4097 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lsm6dsl_ff_dur_get()
4113 lsm6dsl_free_fall_t free_fall; in lsm6dsl_ff_threshold_set() local
4116 ret = lsm6dsl_read_reg(ctx, LSM6DSL_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsl_ff_threshold_set()
4120 free_fall.ff_ths = (uint8_t) val; in lsm6dsl_ff_threshold_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/ism330dlc_STdC/driver/
Dism330dlc_reg.c5076 ism330dlc_free_fall_t free_fall; in ism330dlc_ff_dur_set() local
5079 (uint8_t *)&free_fall, 1); in ism330dlc_ff_dur_set()
5083 free_fall.ff_dur = (val & 0x1FU); in ism330dlc_ff_dur_set()
5085 (uint8_t *)&free_fall, 1); in ism330dlc_ff_dur_set()
5115 ism330dlc_free_fall_t free_fall; in ism330dlc_ff_dur_get() local
5123 (uint8_t *)&free_fall, 1); in ism330dlc_ff_dur_get()
5126 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in ism330dlc_ff_dur_get()
5142 ism330dlc_free_fall_t free_fall; in ism330dlc_ff_threshold_set() local
5145 (uint8_t *)&free_fall, 1); in ism330dlc_ff_threshold_set()
5149 free_fall.ff_ths = (uint8_t) val; in ism330dlc_ff_threshold_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsm_STdC/driver/
Dlsm6dsm_reg.c5192 lsm6dsm_free_fall_t free_fall; in lsm6dsm_ff_dur_set() local
5195 ret = lsm6dsm_read_reg(ctx, LSM6DSM_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsm_ff_dur_set()
5199 free_fall.ff_dur = (val & 0x1FU); in lsm6dsm_ff_dur_set()
5200 ret = lsm6dsm_write_reg(ctx, LSM6DSM_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsm_ff_dur_set()
5230 lsm6dsm_free_fall_t free_fall; in lsm6dsm_ff_dur_get() local
5238 ret = lsm6dsm_read_reg(ctx, LSM6DSM_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsm_ff_dur_get()
5241 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lsm6dsm_ff_dur_get()
5257 lsm6dsm_free_fall_t free_fall; in lsm6dsm_ff_threshold_set() local
5260 ret = lsm6dsm_read_reg(ctx, LSM6DSM_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsm_ff_threshold_set()
5264 free_fall.ff_ths = (uint8_t) val; in lsm6dsm_ff_threshold_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/asm330lhhx_STdC/driver/
Dasm330lhhx_reg.c4325 asm330lhhx_free_fall_t free_fall; in asm330lhhx_ff_threshold_set() local
4328 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_FREE_FALL, (uint8_t *)&free_fall, 1); in asm330lhhx_ff_threshold_set()
4331 free_fall.ff_ths = (uint8_t)val; in asm330lhhx_ff_threshold_set()
4333 (uint8_t *)&free_fall, 1); in asm330lhhx_ff_threshold_set()
4349 asm330lhhx_free_fall_t free_fall; in asm330lhhx_ff_threshold_get() local
4352 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_FREE_FALL, (uint8_t *)&free_fall, 1); in asm330lhhx_ff_threshold_get()
4354 switch (free_fall.ff_ths) in asm330lhhx_ff_threshold_get()
4398 asm330lhhx_free_fall_t free_fall; in asm330lhhx_ff_dur_set() local
4412 (uint8_t *)&free_fall, 1); in asm330lhhx_ff_dur_set()
4416 free_fall.ff_dur = val & 0x1FU; in asm330lhhx_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv_STdC/driver/
Dlsm6dsv_reg.c2007 val->free_fall = all_int_src.ff_ia; in lsm6dsv_all_sources_get()
6236 lsm6dsv_free_fall_t free_fall; in lsm6dsv_ff_time_windows_set() local
6244 ret = lsm6dsv_read_reg(ctx, LSM6DSV_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv_ff_time_windows_set()
6245 free_fall.ff_dur = (uint8_t)val & 0x1FU; in lsm6dsv_ff_time_windows_set()
6246 ret += lsm6dsv_write_reg(ctx, LSM6DSV_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv_ff_time_windows_set()
6262 lsm6dsv_free_fall_t free_fall; in lsm6dsv_ff_time_windows_get() local
6266 ret += lsm6dsv_read_reg(ctx, LSM6DSV_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv_ff_time_windows_get()
6268 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lsm6dsv_ff_time_windows_get()
6284 lsm6dsv_free_fall_t free_fall; in lsm6dsv_ff_thresholds_set() local
6287 ret = lsm6dsv_read_reg(ctx, LSM6DSV_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv_ff_thresholds_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsr_STdC/driver/
Dlsm6dsr_reg.c6202 lsm6dsr_free_fall_t free_fall; in lsm6dsr_ff_threshold_set() local
6205 ret = lsm6dsr_read_reg(ctx, LSM6DSR_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsr_ff_threshold_set()
6209 free_fall.ff_ths = (uint8_t)val; in lsm6dsr_ff_threshold_set()
6211 (uint8_t *)&free_fall, 1); in lsm6dsr_ff_threshold_set()
6228 lsm6dsr_free_fall_t free_fall; in lsm6dsr_ff_threshold_get() local
6231 ret = lsm6dsr_read_reg(ctx, LSM6DSR_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsr_ff_threshold_get()
6233 switch (free_fall.ff_ths) in lsm6dsr_ff_threshold_get()
6286 lsm6dsr_free_fall_t free_fall; in lsm6dsr_ff_dur_set() local
6302 (uint8_t *)&free_fall, 1); in lsm6dsr_ff_dur_set()
6307 free_fall.ff_dur = val & 0x1FU; in lsm6dsr_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/ism330dhcx_STdC/driver/
Dism330dhcx_reg.c6392 ism330dhcx_free_fall_t free_fall; in ism330dhcx_ff_threshold_set() local
6395 (uint8_t *)&free_fall, 1); in ism330dhcx_ff_threshold_set()
6399 free_fall.ff_ths = (uint8_t)val; in ism330dhcx_ff_threshold_set()
6401 (uint8_t *)&free_fall, 1); in ism330dhcx_ff_threshold_set()
6418 ism330dhcx_free_fall_t free_fall; in ism330dhcx_ff_threshold_get() local
6421 (uint8_t *)&free_fall, 1); in ism330dhcx_ff_threshold_get()
6423 switch (free_fall.ff_ths) in ism330dhcx_ff_threshold_get()
6476 ism330dhcx_free_fall_t free_fall; in ism330dhcx_ff_dur_set() local
6491 (uint8_t *)&free_fall, 1); in ism330dhcx_ff_dur_set()
6496 free_fall.ff_dur = val & 0x1FU; in ism330dhcx_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/
Dlsm6dsv16x_reg.c2018 val->free_fall = all_int_src.ff_ia; in lsm6dsv16x_all_sources_get()
6390 lsm6dsv16x_free_fall_t free_fall; in lsm6dsv16x_ff_time_windows_set() local
6398 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv16x_ff_time_windows_set()
6399 free_fall.ff_dur = (uint8_t)val & 0x1FU; in lsm6dsv16x_ff_time_windows_set()
6400 ret += lsm6dsv16x_write_reg(ctx, LSM6DSV16X_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv16x_ff_time_windows_set()
6416 lsm6dsv16x_free_fall_t free_fall; in lsm6dsv16x_ff_time_windows_get() local
6420 ret += lsm6dsv16x_read_reg(ctx, LSM6DSV16X_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv16x_ff_time_windows_get()
6422 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lsm6dsv16x_ff_time_windows_get()
6438 lsm6dsv16x_free_fall_t free_fall; in lsm6dsv16x_ff_thresholds_set() local
6441 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_FREE_FALL, (uint8_t *)&free_fall, 1); in lsm6dsv16x_ff_thresholds_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsrx_STdC/driver/
Dlsm6dsrx_reg.c6520 lsm6dsrx_free_fall_t free_fall; in lsm6dsrx_ff_threshold_set() local
6524 (uint8_t *)&free_fall, 1); in lsm6dsrx_ff_threshold_set()
6528 free_fall.ff_ths = (uint8_t)val; in lsm6dsrx_ff_threshold_set()
6530 (uint8_t *)&free_fall, 1); in lsm6dsrx_ff_threshold_set()
6547 lsm6dsrx_free_fall_t free_fall; in lsm6dsrx_ff_threshold_get() local
6551 (uint8_t *)&free_fall, 1); in lsm6dsrx_ff_threshold_get()
6553 switch (free_fall.ff_ths) in lsm6dsrx_ff_threshold_get()
6606 lsm6dsrx_free_fall_t free_fall; in lsm6dsrx_ff_dur_set() local
6622 (uint8_t *)&free_fall, 1); in lsm6dsrx_ff_dur_set()
6627 free_fall.ff_dur = val & 0x1FU; in lsm6dsrx_ff_dur_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dso32x_STdC/driver/
Dlsm6dso32x_reg.c5048 lsm6dso32x_free_fall_t free_fall; in lsm6dso32x_ff_dur_set() local
5057 (uint8_t *)&free_fall, 1); in lsm6dso32x_ff_dur_set()
5063 free_fall.ff_dur = (uint8_t)val & 0x1FU; in lsm6dso32x_ff_dur_set()
5071 (uint8_t *)&free_fall, 1); in lsm6dso32x_ff_dur_set()
5089 lsm6dso32x_free_fall_t free_fall; in lsm6dso32x_ff_dur_get() local
5098 (uint8_t *)&free_fall, 1); in lsm6dso32x_ff_dur_get()
5099 *val = (wake_up_dur.ff_dur << 5) + free_fall.ff_dur; in lsm6dso32x_ff_dur_get()
10381 md1_cfg.int1_ff = val.free_fall; in lsm6dso32x_pin_int1_route_set()
10563 | pin_int2_route.free_fall in lsm6dso32x_pin_int1_route_set()
10702 val->free_fall = md1_cfg.int1_ff; in lsm6dso32x_pin_int1_route_get()
[all …]

123