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_Pedometer

LSM6DSO_Pedometer
[LSM6DSO]

This section groups all the functions that manage pedometer. More...

Functions

int32_t lsm6dso_pedo_sens_set (lsm6dso_ctx_t *ctx, lsm6dso_pedo_md_t val)
 Enable pedometer algorithm.
int32_t lsm6dso_pedo_sens_get (lsm6dso_ctx_t *ctx, lsm6dso_pedo_md_t *val)
 Enable pedometer algorithm.
int32_t lsm6dso_pedo_step_detect_get (lsm6dso_ctx_t *ctx, uint8_t *val)
 Interrupt status bit for step detection.
int32_t lsm6dso_pedo_debounce_steps_set (lsm6dso_ctx_t *ctx, uint8_t *buff)
 Pedometer debounce configuration register (r/w).
int32_t lsm6dso_pedo_debounce_steps_get (lsm6dso_ctx_t *ctx, uint8_t *buff)
 Pedometer debounce configuration register (r/w).
int32_t lsm6dso_pedo_steps_period_set (lsm6dso_ctx_t *ctx, uint8_t *buff)
 Time period register for step detection on delta time (r/w).
int32_t lsm6dso_pedo_steps_period_get (lsm6dso_ctx_t *ctx, uint8_t *buff)
 Time period register for step detection on delta time (r/w).
int32_t lsm6dso_pedo_int_mode_set (lsm6dso_ctx_t *ctx, lsm6dso_carry_count_en_t val)
 Set when user wants to generate interrupt on count overflow event/every step.
int32_t lsm6dso_pedo_int_mode_get (lsm6dso_ctx_t *ctx, lsm6dso_carry_count_en_t *val)
 Set when user wants to generate interrupt on count overflow event/every step.

Detailed Description

This section groups all the functions that manage pedometer.


Function Documentation

int32_t lsm6dso_pedo_debounce_steps_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  buff 
)

Pedometer debounce configuration register (r/w).

[get]

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read

Definition at line 6613 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_debounce_steps_set ( lsm6dso_ctx_t *  ctx,
uint8_t *  buff 
)

Pedometer debounce configuration register (r/w).

[set]

Parameters:
ctxread / write interface definitions
buffbuffer that contains data to write

Definition at line 6599 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_int_mode_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_carry_count_en_t *  val 
)

Set when user wants to generate interrupt on count overflow event/every step.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of carry_count_en in reg PEDO_CMD_REG

Definition at line 6695 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_int_mode_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_carry_count_en_t  val 
)

Set when user wants to generate interrupt on count overflow event/every step.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of carry_count_en in reg PEDO_CMD_REG

Definition at line 6672 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_sens_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_pedo_md_t *  val 
)

Enable pedometer algorithm.

[get]

Parameters:
ctxread / write interface definitions
valturn on and configure pedometer

Definition at line 6544 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_sens_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_pedo_md_t  val 
)

Enable pedometer algorithm.

[set]

Parameters:
ctxread / write interface definitions
valturn on and configure pedometer

Definition at line 6520 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_step_detect_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  val 
)

Interrupt status bit for step detection.

[get]

Parameters:
ctxread / write interface definitions
valchange the values of is_step_det in reg EMB_FUNC_STATUS

Definition at line 6575 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_steps_period_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  buff 
)

Time period register for step detection on delta time (r/w).

[get]

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read

Definition at line 6649 of file lsm6dso_reg.c.

int32_t lsm6dso_pedo_steps_period_set ( lsm6dso_ctx_t *  ctx,
uint8_t *  buff 
)

Time period register for step detection on delta time (r/w).

[set]

Parameters:
ctxread / write interface definitions
buffbuffer that contains data to write

Definition at line 6627 of file lsm6dso_reg.c.