|
ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
|
This section groups all the functions concerning activity/inactivity detection. More...
Functions | |
| int32_t | lsm9ds1_act_threshold_set (const stmdev_ctx_t *ctx, uint8_t val) |
| Inactivity threshold. | |
| int32_t | lsm9ds1_act_threshold_get (const stmdev_ctx_t *ctx, uint8_t *val) |
| Inactivity threshold. | |
| int32_t | lsm9ds1_act_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_act_mode_t val) |
| Gyroscope operating mode during inactivity. | |
| int32_t | lsm9ds1_act_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_act_mode_t *val) |
| Gyroscope operating mode during inactivity. | |
| int32_t | lsm9ds1_act_duration_set (const stmdev_ctx_t *ctx, uint8_t *buff) |
| Inactivity duration in number of sample. | |
| int32_t | lsm9ds1_act_duration_get (const stmdev_ctx_t *ctx, uint8_t *buff) |
| Inactivity duration in number of sample. | |
| int32_t | lsm9ds1_act_src_get (const stmdev_ctx_t *ctx, lsm9ds1_inact_t *val) |
| Inactivity interrupt output signal. | |
| int32_t | lsm9ds1_6d_mode_set (const stmdev_ctx_t *ctx, lsm9ds1_6d_mode_t val) |
| 6D feature working mode. | |
| int32_t | lsm9ds1_6d_mode_get (const stmdev_ctx_t *ctx, lsm9ds1_6d_mode_t *val) |
| 6D feature working mode. | |
| int32_t | lsm9ds1_6d_threshold_set (const stmdev_ctx_t *ctx, uint8_t *buff) |
| 6D functionality axis interrupt threshold. | |
| int32_t | lsm9ds1_6d_threshold_get (const stmdev_ctx_t *ctx, uint8_t *buff) |
| 6D functionality axis interrupt threshold. | |
| int32_t | lsm9ds1_6d_src_get (const stmdev_ctx_t *ctx, lsm9ds1_6d_src_t *val) |
This section groups all the functions concerning activity/inactivity detection.
This section groups all the functions concerning six position detection (6D).
| int32_t lsm9ds1_6d_mode_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_6d_mode_t * | val | ||
| ) |
6D feature working mode.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of 6d in reg INT_GEN_CFG_XL.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4188 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg4_t::_4d_xl1, lsm9ds1_int_gen_cfg_xl_t::aoi_xl, LSM9DS1_4D_MOVE_RECO, LSM9DS1_4D_POS_RECO, LSM9DS1_6D_MOVE_RECO, LSM9DS1_6D_POS_RECO, LSM9DS1_CTRL_REG4, LSM9DS1_INT_GEN_CFG_XL, LSM9DS1_POS_MOVE_RECO_DISABLE, and lsm9ds1_read_reg().
| int32_t lsm9ds1_6d_mode_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_6d_mode_t | val | ||
| ) |
6D feature working mode.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "6d" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4147 of file lsm9ds1_reg.c.
References lsm9ds1_ctrl_reg4_t::_4d_xl1, lsm9ds1_int_gen_cfg_xl_t::_6d, lsm9ds1_int_gen_cfg_xl_t::aoi_xl, LSM9DS1_CTRL_REG4, LSM9DS1_INT_GEN_CFG_XL, lsm9ds1_read_reg(), and lsm9ds1_write_reg().
| int32_t lsm9ds1_6d_src_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_6d_src_t * | val | ||
| ) |
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | .(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4276 of file lsm9ds1_reg.c.
References lsm9ds1_int_gen_src_xl_t::ia_xl, lsm9ds1_6d_src_t::ia_xl, LSM9DS1_INT_GEN_SRC_XL, lsm9ds1_read_reg(), lsm9ds1_int_gen_src_xl_t::xh_xl, lsm9ds1_6d_src_t::xh_xl, lsm9ds1_int_gen_src_xl_t::xl_xl, lsm9ds1_6d_src_t::xl_xl, lsm9ds1_int_gen_src_xl_t::yh_xl, lsm9ds1_6d_src_t::yh_xl, lsm9ds1_int_gen_src_xl_t::yl_xl, lsm9ds1_6d_src_t::yl_xl, lsm9ds1_int_gen_src_xl_t::zh_xl, lsm9ds1_6d_src_t::zh_xl, lsm9ds1_int_gen_src_xl_t::zl_xl, and lsm9ds1_6d_src_t::zl_xl.
| int32_t lsm9ds1_6d_threshold_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
6D functionality axis interrupt threshold.
[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4259 of file lsm9ds1_reg.c.
References LSM9DS1_INT_GEN_THS_X_XL, and lsm9ds1_read_reg().
| int32_t lsm9ds1_6d_threshold_set | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
6D functionality axis interrupt threshold.
[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data to be write.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4242 of file lsm9ds1_reg.c.
References LSM9DS1_INT_GEN_THS_X_XL, and lsm9ds1_write_reg().
| int32_t lsm9ds1_act_duration_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
Inactivity duration in number of sample.
[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4083 of file lsm9ds1_reg.c.
References LSM9DS1_ACT_DUR, and lsm9ds1_read_reg().
| int32_t lsm9ds1_act_duration_set | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
Inactivity duration in number of sample.
[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data to be write.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4066 of file lsm9ds1_reg.c.
References LSM9DS1_ACT_DUR, and lsm9ds1_write_reg().
| int32_t lsm9ds1_act_mode_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_act_mode_t * | val | ||
| ) |
Gyroscope operating mode during inactivity.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of sleep_on_inact_en in reg ACT_THS.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4026 of file lsm9ds1_reg.c.
References LSM9DS1_ACT_THS, LSM9DS1_CTRL_REG9, LSM9DS1_GYRO_POWER_DOWN, LSM9DS1_GYRO_SLEEP, lsm9ds1_read_reg(), lsm9ds1_ctrl_reg9_t::sleep_g, and lsm9ds1_act_ths_t::sleep_on_inact_en.
| int32_t lsm9ds1_act_mode_set | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_act_mode_t | val | ||
| ) |
Gyroscope operating mode during inactivity.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of "sleep_on_inact_en" in reg LSM9DS1. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 3989 of file lsm9ds1_reg.c.
References LSM9DS1_ACT_THS, LSM9DS1_CTRL_REG9, lsm9ds1_read_reg(), lsm9ds1_write_reg(), lsm9ds1_ctrl_reg9_t::sleep_g, and lsm9ds1_act_ths_t::sleep_on_inact_en.
| int32_t lsm9ds1_act_src_get | ( | const stmdev_ctx_t * | ctx, |
| lsm9ds1_inact_t * | val | ||
| ) |
Inactivity interrupt output signal.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Return an option of "lsm9ds1_inact_t".(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 4100 of file lsm9ds1_reg.c.
References lsm9ds1_status_reg_t::inact, LSM9DS1_ACTIVITY, LSM9DS1_INACTIVITY, lsm9ds1_read_reg(), and LSM9DS1_STATUS_REG.
| int32_t lsm9ds1_act_threshold_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Inactivity threshold.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of act_ths in reg ACT_THS.(ptr) |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 3970 of file lsm9ds1_reg.c.
References lsm9ds1_act_ths_t::act_ths, LSM9DS1_ACT_THS, and lsm9ds1_read_reg().
| int32_t lsm9ds1_act_threshold_set | ( | const stmdev_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Inactivity threshold.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of act_ths in reg ACT_THS. |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 3946 of file lsm9ds1_reg.c.
References lsm9ds1_act_ths_t::act_ths, LSM9DS1_ACT_THS, lsm9ds1_read_reg(), and lsm9ds1_write_reg().