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
LSM6DSO_Pedometer
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:
-
ctx read / write interface definitions buff buffer that stores data read
Definition at line 6839 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:
-
ctx read / write interface definitions buff buffer that contains data to write
Definition at line 6825 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:
-
ctx read / write interface definitions val Get the values of carry_count_en in reg PEDO_CMD_REG
Definition at line 6921 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:
-
ctx read / write interface definitions val change the values of carry_count_en in reg PEDO_CMD_REG
Definition at line 6898 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:
-
ctx read / write interface definitions val turn on and configure pedometer
Definition at line 6747 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:
-
ctx read / write interface definitions val turn on and configure pedometer
Definition at line 6697 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:
-
ctx read / write interface definitions val change the values of is_step_det in reg EMB_FUNC_STATUS
Definition at line 6801 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:
-
ctx read / write interface definitions buff buffer that stores data read
Definition at line 6875 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:
-
ctx read / write interface definitions buff buffer that contains data to write
Definition at line 6853 of file lsm6dso_reg.c.
Generated on Sat Jul 16 2022 04:44:07 by
1.7.2