|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
This section groups all the functions that manage pedometer. More...
Functions | |
| int32_t | ism330dhcx_pedo_sens_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enable pedometer algorithm. | |
| int32_t | ism330dhcx_pedo_sens_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enable pedometer algorithm. | |
| int32_t | ism330dhcx_pedo_step_detect_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Interrupt status bit for step detection. | |
| int32_t | ism330dhcx_pedo_debounce_steps_set (stmdev_ctx_t *ctx, uint8_t *buff) |
| Pedometer debounce configuration register (r/w). | |
| int32_t | ism330dhcx_pedo_debounce_steps_get (stmdev_ctx_t *ctx, uint8_t *buff) |
| Pedometer debounce configuration register (r/w). | |
| int32_t | ism330dhcx_pedo_steps_period_set (stmdev_ctx_t *ctx, uint16_t val) |
| Time period register for step detection on delta time (r/w). | |
| int32_t | ism330dhcx_pedo_steps_period_get (stmdev_ctx_t *ctx, uint16_t *val) |
| Time period register for step detection on delta time (r/w). | |
| int32_t | ism330dhcx_pedo_int_mode_set (stmdev_ctx_t *ctx, ism330dhcx_carry_count_en_t val) |
| Set when user wants to generate interrupt on count overflow event/every step. | |
| int32_t | ism330dhcx_pedo_int_mode_get (stmdev_ctx_t *ctx, ism330dhcx_carry_count_en_t *val) |
| Set when user wants to generate interrupt on count overflow event/every step. | |
This section groups all the functions that manage pedometer.
| int32_t ism330dhcx_pedo_debounce_steps_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Pedometer debounce configuration register (r/w).
[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8547 of file ism330dhcx_reg.c.
References ism330dhcx_ln_pg_read_byte(), and ISM330DHCX_PEDO_DEB_STEPS_CONF.
| int32_t ism330dhcx_pedo_debounce_steps_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Pedometer debounce configuration register (r/w).
[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that contains data to write |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8529 of file ism330dhcx_reg.c.
References ism330dhcx_ln_pg_write_byte(), and ISM330DHCX_PEDO_DEB_STEPS_CONF.
| int32_t ism330dhcx_pedo_int_mode_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_carry_count_en_t * | val ) |
Set when user wants to generate interrupt on count overflow event/every step.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of carry_count_en in reg PEDO_CMD_REG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8647 of file ism330dhcx_reg.c.
References ism330dhcx_pedo_cmd_reg_t::carry_count_en, ISM330DHCX_COUNT_OVERFLOW, ISM330DHCX_EVERY_STEP, ism330dhcx_ln_pg_read_byte(), and ISM330DHCX_PEDO_CMD_REG.
| int32_t ism330dhcx_pedo_int_mode_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_carry_count_en_t | val ) |
Set when user wants to generate interrupt on count overflow event/every step.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of carry_count_en in reg PEDO_CMD_REG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8620 of file ism330dhcx_reg.c.
References ism330dhcx_pedo_cmd_reg_t::carry_count_en, ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write_byte(), and ISM330DHCX_PEDO_CMD_REG.
| int32_t ism330dhcx_pedo_sens_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enable pedometer algorithm.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of pedo_en in reg EMB_FUNC_EN_A |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8470 of file ism330dhcx_reg.c.
References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.
| int32_t ism330dhcx_pedo_sens_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enable pedometer algorithm.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of pedo_en in reg EMB_FUNC_EN_A |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8435 of file ism330dhcx_reg.c.
References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_emb_func_en_a_t::pedo_en.
| int32_t ism330dhcx_pedo_step_detect_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Interrupt status bit for step detection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of is_step_det in reg EMB_FUNC_STATUS |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8499 of file ism330dhcx_reg.c.
References ISM330DHCX_EMB_FUNC_STATUS, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.
| int32_t ism330dhcx_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.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8592 of file ism330dhcx_reg.c.
References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_PEDO_SC_DELTAT_H, and ISM330DHCX_PEDO_SC_DELTAT_L.
| int32_t ism330dhcx_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.(ptr) |
| buff | Buffer that contains data to write |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 8565 of file ism330dhcx_reg.c.
References ism330dhcx_ln_pg_write_byte(), ISM330DHCX_PEDO_SC_DELTAT_H, and ISM330DHCX_PEDO_SC_DELTAT_L.