|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
This section groups all the functions that manage the Wake Up event generation. More...
Functions | |
| int32_t | ism330dhcx_wkup_ths_weight_set (stmdev_ctx_t *ctx, ism330dhcx_wake_ths_w_t val) |
| Weight of 1 LSB of wakeup threshold. | |
| int32_t | ism330dhcx_wkup_ths_weight_get (stmdev_ctx_t *ctx, ism330dhcx_wake_ths_w_t *val) |
| Weight of 1 LSB of wakeup threshold. | |
| int32_t | ism330dhcx_wkup_threshold_set (stmdev_ctx_t *ctx, uint8_t val) |
| Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR. | |
| int32_t | ism330dhcx_wkup_threshold_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR. | |
| int32_t | ism330dhcx_xl_usr_offset_on_wkup_set (stmdev_ctx_t *ctx, uint8_t val) |
| Wake up duration event( 1LSb = 1 / ODR ). | |
| int32_t | ism330dhcx_xl_usr_offset_on_wkup_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Wake up duration event( 1LSb = 1 / ODR ). | |
| int32_t | ism330dhcx_wkup_dur_set (stmdev_ctx_t *ctx, uint8_t val) |
| Wake up duration event(1LSb = 1 / ODR). | |
| int32_t | ism330dhcx_wkup_dur_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Wake up duration event(1LSb = 1 / ODR). | |
This section groups all the functions that manage the Wake Up event generation.
| int32_t ism330dhcx_wkup_dur_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Wake up duration event(1LSb = 1 / ODR).
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wake_dur in reg WAKE_UP_DUR |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5418 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_wake_up_dur_t::wake_dur.
| int32_t ism330dhcx_wkup_dur_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Wake up duration event(1LSb = 1 / ODR).
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wake_dur in reg WAKE_UP_DUR |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5393 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, ism330dhcx_write_reg(), and ism330dhcx_wake_up_dur_t::wake_dur.
Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().
| int32_t ism330dhcx_wkup_threshold_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wk_ths in reg WAKE_UP_THS |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5328 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::wk_ths.
| int32_t ism330dhcx_wkup_threshold_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wk_ths in reg WAKE_UP_THS |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5302 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::wk_ths.
Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().
| int32_t ism330dhcx_wkup_ths_weight_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_wake_ths_w_t * | val ) |
Weight of 1 LSB of wakeup threshold.
[get] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of wake_ths_w in reg WAKE_UP_DUR |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5267 of file ism330dhcx_reg.c.
References ISM330DHCX_LSb_FS_DIV_256, ISM330DHCX_LSb_FS_DIV_64, ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_wake_up_dur_t::wake_ths_w.
| int32_t ism330dhcx_wkup_ths_weight_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_wake_ths_w_t | val ) |
Weight of 1 LSB of wakeup threshold.
[set] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wake_ths_w in reg WAKE_UP_DUR |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5239 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, ism330dhcx_write_reg(), and ism330dhcx_wake_up_dur_t::wake_ths_w.
Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().
| int32_t ism330dhcx_xl_usr_offset_on_wkup_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Wake up duration event( 1LSb = 1 / ODR ).
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of usr_off_on_wu in reg WAKE_UP_THS |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5373 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::usr_off_on_wu.
| int32_t ism330dhcx_xl_usr_offset_on_wkup_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Wake up duration event( 1LSb = 1 / ODR ).
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of usr_off_on_wu in reg WAKE_UP_THS |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 5347 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::usr_off_on_wu.