iNEMO inertial module: 3D accelerometer and 3D gyroscope.

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LSM6DSO_free_fall

LSM6DSO_free_fall
[LSM6DSO]

This section group all the functions concerning the free fall detection. More...

Functions

int32_t lsm6dso_ff_threshold_set (lsm6dso_ctx_t *ctx, lsm6dso_ff_ths_t val)
 Free fall threshold setting.
int32_t lsm6dso_ff_threshold_get (lsm6dso_ctx_t *ctx, lsm6dso_ff_ths_t *val)
 Free fall threshold setting.
int32_t lsm6dso_ff_dur_set (lsm6dso_ctx_t *ctx, uint8_t val)
 Free-fall duration event.
int32_t lsm6dso_ff_dur_get (lsm6dso_ctx_t *ctx, uint8_t *val)
 Free-fall duration event.

Detailed Description

This section group all the functions concerning the free fall detection.


Function Documentation

int32_t lsm6dso_ff_dur_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  val 
)

Free-fall duration event.

[get] 1LSb = 1 / ODR

Parameters:
ctxread / write interface definitions
valchange the values of ff_dur in reg FREE_FALL

Definition at line 4973 of file lsm6dso_reg.c.

int32_t lsm6dso_ff_dur_set ( lsm6dso_ctx_t *  ctx,
uint8_t  val 
)

Free-fall duration event.

[set] 1LSb = 1 / ODR

Parameters:
ctxread / write interface definitions
valchange the values of ff_dur in reg FREE_FALL

Definition at line 4943 of file lsm6dso_reg.c.

int32_t lsm6dso_ff_threshold_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_ff_ths_t *  val 
)

Free fall threshold setting.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of ff_ths in reg FREE_FALL

Definition at line 4897 of file lsm6dso_reg.c.

int32_t lsm6dso_ff_threshold_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_ff_ths_t  val 
)

Free fall threshold setting.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of ff_ths in reg FREE_FALL

Definition at line 4877 of file lsm6dso_reg.c.