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 concerning activity/inactivity detection. More...
Functions | |
| int32_t | lis2dw12_act_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_sleep_on_t val) |
| Config activity / inactivity or stationary / motion detection. | |
| int32_t | lis2dw12_act_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_sleep_on_t *val) |
| Config activity / inactivity or stationary / motion detection. | |
| int32_t | lis2dw12_act_sleep_dur_set (lis2dw12_ctx_t *ctx, uint8_t val) |
| Duration to go in sleep mode (1 LSb = 512 / ODR). | |
| int32_t | lis2dw12_act_sleep_dur_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
| Duration to go in sleep mode (1 LSb = 512 / ODR). | |
Detailed Description
This section groups all the functions concerning activity/inactivity detection.
Function Documentation
| int32_t lis2dw12_act_mode_get | ( | lis2dw12_ctx_t * | ctx, |
| lis2dw12_sleep_on_t * | val | ||
| ) |
Config activity / inactivity or stationary / motion detection.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of sleep_on in reg WAKE_UP_THS
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1820 of file lis2dw12_reg.c.
| int32_t lis2dw12_act_mode_set | ( | lis2dw12_ctx_t * | ctx, |
| lis2dw12_sleep_on_t | val | ||
| ) |
Config activity / inactivity or stationary / motion detection.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of sleep_on / stationary in reg WAKE_UP_THS / WAKE_UP_DUR
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1789 of file lis2dw12_reg.c.
| int32_t lis2dw12_act_sleep_dur_get | ( | lis2dw12_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Duration to go in sleep mode (1 LSb = 512 / ODR).
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of sleep_dur in reg WAKE_UP_DUR
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1877 of file lis2dw12_reg.c.
| int32_t lis2dw12_act_sleep_dur_set | ( | lis2dw12_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Duration to go in sleep mode (1 LSb = 512 / ODR).
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of sleep_dur in reg WAKE_UP_DUR
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1856 of file lis2dw12_reg.c.
Generated on Thu Jul 14 2022 10:48:26 by
1.7.2