Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
LSM6DSOX_Pedometer
This section groups all the functions that manage pedometer. More...
Functions | |
int32_t | lsm6dsox_pedo_sens_set (lsm6dsox_ctx_t *ctx, lsm6dsox_pedo_md_t val) |
Enable pedometer algorithm. | |
int32_t | lsm6dsox_pedo_sens_get (lsm6dsox_ctx_t *ctx, lsm6dsox_pedo_md_t *val) |
Enable pedometer algorithm. | |
int32_t | lsm6dsox_pedo_step_detect_get (lsm6dsox_ctx_t *ctx, uint8_t *val) |
Interrupt status bit for step detection. | |
int32_t | lsm6dsox_pedo_debounce_steps_set (lsm6dsox_ctx_t *ctx, uint8_t *buff) |
Pedometer debounce configuration register (r/w). | |
int32_t | lsm6dsox_pedo_debounce_steps_get (lsm6dsox_ctx_t *ctx, uint8_t *buff) |
Pedometer debounce configuration register (r/w). | |
int32_t | lsm6dsox_pedo_steps_period_set (lsm6dsox_ctx_t *ctx, uint8_t *buff) |
Time period register for step detection on delta time (r/w). | |
int32_t | lsm6dsox_pedo_steps_period_get (lsm6dsox_ctx_t *ctx, uint8_t *buff) |
Time period register for step detection on delta time (r/w). | |
int32_t | lsm6dsox_pedo_int_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_carry_count_en_t val) |
Set when user wants to generate interrupt on count overflow event/every step. | |
int32_t | lsm6dsox_pedo_int_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_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 lsm6dsox_pedo_debounce_steps_get | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | buff | ||
) |
Pedometer debounce configuration register (r/w).
[get]
- Parameters:
-
ctx read / write interface definitions buff buffer that stores data read
Definition at line 6875 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_debounce_steps_set | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | buff | ||
) |
Pedometer debounce configuration register (r/w).
[set]
- Parameters:
-
ctx read / write interface definitions buff buffer that contains data to write
Definition at line 6861 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_int_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_carry_count_en_t * | val | ||
) |
Set when user wants to generate interrupt on count overflow event/every step.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of carry_count_en in reg PEDO_CMD_REG
Definition at line 6957 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_int_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_carry_count_en_t | val | ||
) |
Set when user wants to generate interrupt on count overflow event/every step.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of carry_count_en in reg PEDO_CMD_REG
Definition at line 6934 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_sens_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_pedo_md_t * | val | ||
) |
Enable pedometer algorithm.
[get]
- Parameters:
-
ctx read / write interface definitions val turn on and configure pedometer
Definition at line 6806 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_sens_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_pedo_md_t | val | ||
) |
Enable pedometer algorithm.
[set]
- Parameters:
-
ctx read / write interface definitions val turn on and configure pedometer
Definition at line 6781 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_step_detect_get | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | val | ||
) |
Interrupt status bit for step detection.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of is_step_det in reg EMB_FUNC_STATUS
Definition at line 6837 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_steps_period_get | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | buff | ||
) |
Time period register for step detection on delta time (r/w).
[get]
- Parameters:
-
ctx read / write interface definitions buff buffer that stores data read
Definition at line 6911 of file lsm6dsox_reg.c.
int32_t lsm6dsox_pedo_steps_period_set | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | buff | ||
) |
Time period register for step detection on delta time (r/w).
[set]
- Parameters:
-
ctx read / write interface definitions buff buffer that contains data to write
Definition at line 6889 of file lsm6dsox_reg.c.
Generated on Tue Jul 12 2022 20:15:24 by
