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_Wake_Up_event

LSM6DSO_Wake_Up_event
[LSM6DSO]

This section groups all the functions that manage the Wake Up event generation. More...

Functions

int32_t lsm6dso_wkup_ths_weight_set (lsm6dso_ctx_t *ctx, lsm6dso_wake_ths_w_t val)
 Weight of 1 LSB of wakeup threshold.
int32_t lsm6dso_wkup_ths_weight_get (lsm6dso_ctx_t *ctx, lsm6dso_wake_ths_w_t *val)
 Weight of 1 LSB of wakeup threshold.
int32_t lsm6dso_wkup_threshold_set (lsm6dso_ctx_t *ctx, uint8_t val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t lsm6dso_wkup_threshold_get (lsm6dso_ctx_t *ctx, uint8_t *val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t lsm6dso_xl_usr_offset_on_wkup_set (lsm6dso_ctx_t *ctx, uint8_t val)
 Wake up duration event.
int32_t lsm6dso_xl_usr_offset_on_wkup_get (lsm6dso_ctx_t *ctx, uint8_t *val)
 Wake up duration event.
int32_t lsm6dso_wkup_dur_set (lsm6dso_ctx_t *ctx, uint8_t val)
 Wake up duration event.
int32_t lsm6dso_wkup_dur_get (lsm6dso_ctx_t *ctx, uint8_t *val)
 Wake up duration event.

Detailed Description

This section groups all the functions that manage the Wake Up event generation.


Function Documentation

int32_t lsm6dso_wkup_dur_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  val 
)

Wake up duration event.

[get] 1LSb = 1 / ODR

Parameters:
ctxread / write interface definitions
valchange the values of wake_dur in reg WAKE_UP_DUR

Definition at line 4039 of file lsm6dso_reg.c.

int32_t lsm6dso_wkup_dur_set ( lsm6dso_ctx_t *  ctx,
uint8_t  val 
)

Wake up duration event.

[set] 1LSb = 1 / ODR

Parameters:
ctxread / write interface definitions
valchange the values of wake_dur in reg WAKE_UP_DUR

Definition at line 4018 of file lsm6dso_reg.c.

int32_t lsm6dso_wkup_threshold_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  val 
)

Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.

[get]

Parameters:
ctxread / write interface definitions
valchange the values of wk_ths in reg WAKE_UP_THS

Definition at line 3959 of file lsm6dso_reg.c.

int32_t lsm6dso_wkup_threshold_set ( lsm6dso_ctx_t *  ctx,
uint8_t  val 
)

Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of wk_ths in reg WAKE_UP_THS

Definition at line 3938 of file lsm6dso_reg.c.

int32_t lsm6dso_wkup_ths_weight_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_wake_ths_w_t *  val 
)

Weight of 1 LSB of wakeup threshold.

[get] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256

Parameters:
ctxread / write interface definitions
valGet the values of wake_ths_w in reg WAKE_UP_DUR

Definition at line 3908 of file lsm6dso_reg.c.

int32_t lsm6dso_wkup_ths_weight_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_wake_ths_w_t  val 
)

Weight of 1 LSB of wakeup threshold.

[set] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256

Parameters:
ctxread / write interface definitions
valchange the values of wake_ths_w in reg WAKE_UP_DUR

Definition at line 3884 of file lsm6dso_reg.c.

int32_t lsm6dso_xl_usr_offset_on_wkup_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  val 
)

Wake up duration event.

[get] 1LSb = 1 / ODR

Parameters:
ctxread / write interface definitions
valchange the values of usr_off_on_wu in reg WAKE_UP_THS

Definition at line 3999 of file lsm6dso_reg.c.

int32_t lsm6dso_xl_usr_offset_on_wkup_set ( lsm6dso_ctx_t *  ctx,
uint8_t  val 
)

Wake up duration event.

[set] 1LSb = 1 / ODR

Parameters:
ctxread / write interface definitions
valchange the values of usr_off_on_wu in reg WAKE_UP_THS

Definition at line 3978 of file lsm6dso_reg.c.