ST / LSM6DSOX

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

LSM6DSOX_Wake_Up_event

LSM6DSOX_Wake_Up_event

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

Functions

int32_t lsm6dsox_wkup_ths_weight_set (lsm6dsox_ctx_t *ctx, lsm6dsox_wake_ths_w_t val)
 Weight of 1 LSB of wakeup threshold.
int32_t lsm6dsox_wkup_ths_weight_get (lsm6dsox_ctx_t *ctx, lsm6dsox_wake_ths_w_t *val)
 Weight of 1 LSB of wakeup threshold.
int32_t lsm6dsox_wkup_threshold_set (lsm6dsox_ctx_t *ctx, uint8_t val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t lsm6dsox_wkup_threshold_get (lsm6dsox_ctx_t *ctx, uint8_t *val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t lsm6dsox_xl_usr_offset_on_wkup_set (lsm6dsox_ctx_t *ctx, uint8_t val)
 Wake up duration event.
int32_t lsm6dsox_xl_usr_offset_on_wkup_get (lsm6dsox_ctx_t *ctx, uint8_t *val)
 Wake up duration event.
int32_t lsm6dsox_wkup_dur_set (lsm6dsox_ctx_t *ctx, uint8_t val)
 Wake up duration event.
int32_t lsm6dsox_wkup_dur_get (lsm6dsox_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 lsm6dsox_wkup_dur_get ( lsm6dsox_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 4298 of file lsm6dsox_reg.c.

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

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

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

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

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

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

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