Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3
This section groups all the functions that manage the Wake Up event generation. More...
Functions | |
| int32_t | lis2dw12_wkup_threshold_set (lis2dw12_ctx_t *ctx, uint8_t val) |
| Threshold for wakeup.1 LSB = FS_XL / 64. | |
| int32_t | lis2dw12_wkup_threshold_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
| Threshold for wakeup.1 LSB = FS_XL / 64. | |
| int32_t | lis2dw12_wkup_dur_set (lis2dw12_ctx_t *ctx, uint8_t val) |
| Wake up duration event.1LSb = 1 / ODR. | |
| int32_t | lis2dw12_wkup_dur_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
| Wake up duration event.1LSb = 1 / ODR. | |
| int32_t | lis2dw12_wkup_feed_data_set (lis2dw12_ctx_t *ctx, lis2dw12_usr_off_on_wu_t val) |
| Data sent to wake-up interrupt function. | |
| int32_t | lis2dw12_wkup_feed_data_get (lis2dw12_ctx_t *ctx, lis2dw12_usr_off_on_wu_t *val) |
| Data sent to wake-up interrupt function. | |
Detailed Description
This section groups all the functions that manage the Wake Up event generation.
Function Documentation
| int32_t lis2dw12_wkup_dur_get | ( | lis2dw12_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Wake up duration event.1LSb = 1 / ODR.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of wake_dur in reg WAKE_UP_DUR
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1703 of file lis2dw12_reg.c.
| int32_t lis2dw12_wkup_dur_set | ( | lis2dw12_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Wake up duration event.1LSb = 1 / ODR.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of wake_dur in reg WAKE_UP_DUR
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1682 of file lis2dw12_reg.c.
| int32_t lis2dw12_wkup_feed_data_get | ( | lis2dw12_ctx_t * | ctx, |
| lis2dw12_usr_off_on_wu_t * | val | ||
| ) |
Data sent to wake-up interrupt function.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of usr_off_on_wu in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1744 of file lis2dw12_reg.c.
| int32_t lis2dw12_wkup_feed_data_set | ( | lis2dw12_ctx_t * | ctx, |
| lis2dw12_usr_off_on_wu_t | val | ||
| ) |
Data sent to wake-up interrupt function.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of usr_off_on_wu in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1722 of file lis2dw12_reg.c.
| int32_t lis2dw12_wkup_threshold_get | ( | lis2dw12_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Threshold for wakeup.1 LSB = FS_XL / 64.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of wk_ths in reg WAKE_UP_THS
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1663 of file lis2dw12_reg.c.
| int32_t lis2dw12_wkup_threshold_set | ( | lis2dw12_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Threshold for wakeup.1 LSB = FS_XL / 64.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of wk_ths in reg WAKE_UP_THS
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1642 of file lis2dw12_reg.c.
Generated on Thu Jul 14 2022 10:48:26 by
1.7.2