3-axis MEMS ultra low power accelerometer
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3
This section group all the functions concerning the free fall detection. More...
Functions | |
int32_t | lis2dw12_ff_dur_set (lis2dw12_ctx_t *ctx, uint8_t val) |
Wake up duration event(1LSb = 1 / ODR). | |
int32_t | lis2dw12_ff_dur_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
Wake up duration event(1LSb = 1 / ODR). | |
int32_t | lis2dw12_ff_threshold_set (lis2dw12_ctx_t *ctx, lis2dw12_ff_ths_t val) |
Free fall threshold setting. | |
int32_t | lis2dw12_ff_threshold_get (lis2dw12_ctx_t *ctx, lis2dw12_ff_ths_t *val) |
Free fall threshold setting. |
Detailed Description
This section group all the functions concerning the free fall detection.
Function Documentation
int32_t lis2dw12_ff_dur_get | ( | lis2dw12_ctx_t * | ctx, |
uint8_t * | val | ||
) |
Wake up duration event(1LSb = 1 / ODR).
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of ff_dur in reg WAKE_UP_DUR /F REE_FALL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2634 of file lis2dw12_reg.c.
int32_t lis2dw12_ff_dur_set | ( | lis2dw12_ctx_t * | ctx, |
uint8_t | val | ||
) |
Wake up duration event(1LSb = 1 / ODR).
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of ff_dur in reg WAKE_UP_DUR /F REE_FALL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2603 of file lis2dw12_reg.c.
int32_t lis2dw12_ff_threshold_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_ff_ths_t * | val | ||
) |
Free fall threshold setting.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of ff_ths in reg FREE_FALL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2678 of file lis2dw12_reg.c.
int32_t lis2dw12_ff_threshold_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_ff_ths_t | val | ||
) |
Free fall threshold setting.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of ff_ths in reg FREE_FALL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2656 of file lis2dw12_reg.c.
Generated on Thu Jul 14 2022 10:48:26 by 1.7.2