ST / IIS2DLPC

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

/Inactivity_Detection

/Inactivity_Detection
[IIS2DLPC]

This section groups all the functions concerning activity/inactivity detection. More...

Functions

int32_t iis2dlpc_act_mode_set (iis2dlpc_ctx_t *ctx, iis2dlpc_sleep_on_t val)
 Config activity / inactivity or stationary / motion detection.
int32_t iis2dlpc_act_mode_get (iis2dlpc_ctx_t *ctx, iis2dlpc_sleep_on_t *val)
 Config activity / inactivity or stationary / motion detection.
int32_t iis2dlpc_act_sleep_dur_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Duration to go in sleep mode (1 LSb = 512 / ODR).
int32_t iis2dlpc_act_sleep_dur_get (iis2dlpc_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 iis2dlpc_act_mode_get ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_sleep_on_t *  val 
)

Config activity / inactivity or stationary / motion detection.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of sleep_on in reg WAKE_UP_THS
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1829 of file iis2dlpc_reg.c.

int32_t iis2dlpc_act_mode_set ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_sleep_on_t  val 
)

Config activity / inactivity or stationary / motion detection.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of sleep_on / stationary in reg WAKE_UP_THS / WAKE_UP_DUR
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1799 of file iis2dlpc_reg.c.

int32_t iis2dlpc_act_sleep_dur_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  val 
)

Duration to go in sleep mode (1 LSb = 512 / ODR).

[get]

Parameters:
ctxread / write interface definitions
valchange the values of sleep_dur in reg WAKE_UP_DUR
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1886 of file iis2dlpc_reg.c.

int32_t iis2dlpc_act_sleep_dur_set ( iis2dlpc_ctx_t *  ctx,
uint8_t  val 
)

Duration to go in sleep mode (1 LSb = 512 / ODR).

[set]

Parameters:
ctxread / write interface definitions
valchange the values of sleep_dur in reg WAKE_UP_DUR
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1865 of file iis2dlpc_reg.c.