![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
This section groups all the functions that manage pedometer. More...

Functions | |
| int32_t | lsm6dso32_pedo_sens_set (stmdev_ctx_t *ctx, lsm6dso32_pedo_md_t val) |
| Enable pedometer algorithm.[set]. | |
| int32_t | lsm6dso32_pedo_sens_get (stmdev_ctx_t *ctx, lsm6dso32_pedo_md_t *val) |
| Enable pedometer algorithm.[get]. | |
| int32_t | lsm6dso32_pedo_step_detect_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Interrupt status bit for step detection.[get]. | |
| int32_t | lsm6dso32_pedo_debounce_steps_set (stmdev_ctx_t *ctx, uint8_t *buff) |
| Pedometer debounce configuration register (r/w).[set]. | |
| int32_t | lsm6dso32_pedo_debounce_steps_get (stmdev_ctx_t *ctx, uint8_t *buff) |
| Pedometer debounce configuration register (r/w).[get]. | |
| int32_t | lsm6dso32_pedo_steps_period_set (stmdev_ctx_t *ctx, uint16_t val) |
| Time period register for step detection on delta time (r/w).[set]. | |
| int32_t | lsm6dso32_pedo_steps_period_get (stmdev_ctx_t *ctx, uint16_t *val) |
| Time period register for step detection on delta time (r/w).[get]. | |
| int32_t | lsm6dso32_pedo_int_mode_set (stmdev_ctx_t *ctx, lsm6dso32_carry_count_en_t val) |
| Set when user wants to generate interrupt on count overflow event/every step.[set]. | |
| int32_t | lsm6dso32_pedo_int_mode_get (stmdev_ctx_t *ctx, lsm6dso32_carry_count_en_t *val) |
| Set when user wants to generate interrupt on count overflow event/every step.[get]. | |
This section groups all the functions that manage pedometer.
| int32_t lsm6dso32_pedo_debounce_steps_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
Pedometer debounce configuration register (r/w).[get].
| ctx | read / write interface definitions |
| buff | buffer that stores data read |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7131 of file lsm6dso32_reg.c.
References lsm6dso32_ln_pg_read_byte(), and LSM6DSO32_PEDO_DEB_STEPS_CONF.

| int32_t lsm6dso32_pedo_debounce_steps_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
Pedometer debounce configuration register (r/w).[set].
| ctx | read / write interface definitions |
| buff | buffer that contains data to write |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7112 of file lsm6dso32_reg.c.
References lsm6dso32_ln_pg_write_byte(), and LSM6DSO32_PEDO_DEB_STEPS_CONF.

| int32_t lsm6dso32_pedo_int_mode_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_carry_count_en_t * | val | ||
| ) |
Set when user wants to generate interrupt on count overflow event/every step.[get].
| ctx | read / write interface definitions |
| val | Get the values of carry_count_en in reg PEDO_CMD_REG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7235 of file lsm6dso32_reg.c.
References lsm6dso32_pedo_cmd_reg_t::carry_count_en, LSM6DSO32_COUNT_OVERFLOW, LSM6DSO32_EVERY_STEP, lsm6dso32_ln_pg_read_byte(), and LSM6DSO32_PEDO_CMD_REG.

| int32_t lsm6dso32_pedo_int_mode_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_carry_count_en_t | val | ||
| ) |
Set when user wants to generate interrupt on count overflow event/every step.[set].
| ctx | read / write interface definitions |
| val | change the values of carry_count_en in reg PEDO_CMD_REG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7207 of file lsm6dso32_reg.c.
References lsm6dso32_pedo_cmd_reg_t::carry_count_en, lsm6dso32_ln_pg_read_byte(), lsm6dso32_ln_pg_write_byte(), and LSM6DSO32_PEDO_CMD_REG.

| int32_t lsm6dso32_pedo_sens_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_pedo_md_t * | val | ||
| ) |
Enable pedometer algorithm.[get].
| ctx | read / write interface definitions |
| val | turn on and configure pedometer |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7008 of file lsm6dso32_reg.c.
References lsm6dso32_pedo_cmd_reg_t::ad_det_en, lsm6dso32_pedo_cmd_reg_t::fp_rejection_en, LSM6DSO32_EMB_FUNC_EN_A, LSM6DSO32_EMB_FUNC_EN_B, LSM6DSO32_EMBEDDED_FUNC_BANK, LSM6DSO32_FALSE_STEP_REJ, LSM6DSO32_FALSE_STEP_REJ_ADV_MODE, lsm6dso32_ln_pg_read_byte(), lsm6dso32_mem_bank_set(), LSM6DSO32_PEDO_ADV_MODE, LSM6DSO32_PEDO_BASE_MODE, LSM6DSO32_PEDO_CMD_REG, LSM6DSO32_PEDO_DISABLE, lsm6dso32_read_reg(), LSM6DSO32_USER_BANK, lsm6dso32_emb_func_en_b_t::pedo_adv_en, and lsm6dso32_emb_func_en_a_t::pedo_en.

| int32_t lsm6dso32_pedo_sens_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_pedo_md_t | val | ||
| ) |
Enable pedometer algorithm.[set].
| ctx | read / write interface definitions |
| val | turn on and configure pedometer |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6942 of file lsm6dso32_reg.c.
References lsm6dso32_pedo_cmd_reg_t::ad_det_en, lsm6dso32_pedo_cmd_reg_t::fp_rejection_en, LSM6DSO32_EMB_FUNC_EN_A, LSM6DSO32_EMB_FUNC_EN_B, LSM6DSO32_EMBEDDED_FUNC_BANK, lsm6dso32_ln_pg_read_byte(), lsm6dso32_ln_pg_write_byte(), lsm6dso32_mem_bank_set(), LSM6DSO32_PEDO_CMD_REG, lsm6dso32_read_reg(), LSM6DSO32_USER_BANK, lsm6dso32_write_reg(), and lsm6dso32_emb_func_en_a_t::pedo_en.

| int32_t lsm6dso32_pedo_step_detect_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Interrupt status bit for step detection.[get].
| ctx | read / write interface definitions |
| val | change the values of is_step_det in reg EMB_FUNC_STATUS |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7081 of file lsm6dso32_reg.c.
References lsm6dso32_emb_func_status_t::is_step_det, LSM6DSO32_EMB_FUNC_STATUS, LSM6DSO32_EMBEDDED_FUNC_BANK, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), and LSM6DSO32_USER_BANK.

| int32_t lsm6dso32_pedo_steps_period_get | ( | stmdev_ctx_t * | ctx, |
| uint16_t * | val | ||
| ) |
Time period register for step detection on delta time (r/w).[get].
| ctx | read / write interface definitions |
| buff | buffer that stores data read |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7178 of file lsm6dso32_reg.c.
References lsm6dso32_ln_pg_read_byte(), LSM6DSO32_PEDO_SC_DELTAT_H, and LSM6DSO32_PEDO_SC_DELTAT_L.

| int32_t lsm6dso32_pedo_steps_period_set | ( | stmdev_ctx_t * | ctx, |
| uint16_t | val | ||
| ) |
Time period register for step detection on delta time (r/w).[set].
| ctx | read / write interface definitions |
| buff | buffer that contains data to write |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 7150 of file lsm6dso32_reg.c.
References lsm6dso32_ln_pg_write_byte(), LSM6DSO32_PEDO_SC_DELTAT_H, and LSM6DSO32_PEDO_SC_DELTAT_L.
