ST / LSM6DSOX

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

LSM6DSOX_free_fall

LSM6DSOX_free_fall

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

Functions

int32_t lsm6dsox_ff_threshold_set (lsm6dsox_ctx_t *ctx, lsm6dsox_ff_ths_t val)
 Free fall threshold setting.
int32_t lsm6dsox_ff_threshold_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ff_ths_t *val)
 Free fall threshold setting.
int32_t lsm6dsox_ff_dur_set (lsm6dsox_ctx_t *ctx, uint8_t val)
 Free-fall duration event.
int32_t lsm6dsox_ff_dur_get (lsm6dsox_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 lsm6dsox_ff_dur_get ( lsm6dsox_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 5232 of file lsm6dsox_reg.c.

int32_t lsm6dsox_ff_dur_set ( lsm6dsox_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 5202 of file lsm6dsox_reg.c.

int32_t lsm6dsox_ff_threshold_get ( lsm6dsox_ctx_t *  ctx,
lsm6dsox_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 5156 of file lsm6dsox_reg.c.

int32_t lsm6dsox_ff_threshold_set ( lsm6dsox_ctx_t *  ctx,
lsm6dsox_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 5136 of file lsm6dsox_reg.c.