iNEMO inertial module: 3D accelerometer and 3D gyroscope.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3
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 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:
-
ctx read / write interface definitions buff buffer 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:
-
ctx read / write interface definitions val Get 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:
-
ctx read / write interface definitions val change 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:
-
ctx read / write interface definitions val turn 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:
-
ctx read / write interface definitions val turn 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:
-
ctx read / write interface definitions val change 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:
-
ctx read / write interface definitions buff buffer 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:
-
ctx read / write interface definitions buff buffer that contains data to write
Definition at line 6627 of file lsm6dso_reg.c.
Generated on Wed Jul 13 2022 04:15:41 by 1.7.2