ST / IIS2DLPC

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

IIS2DLPC_Wake_Up_Event

IIS2DLPC_Wake_Up_Event
[IIS2DLPC]

This section groups all the functions that manage the Wake Up event generation. More...

Functions

int32_t iis2dlpc_wkup_threshold_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Threshold for wakeup.1 LSB = FS_XL / 64.
int32_t iis2dlpc_wkup_threshold_get (iis2dlpc_ctx_t *ctx, uint8_t *val)
 Threshold for wakeup.1 LSB = FS_XL / 64.
int32_t iis2dlpc_wkup_dur_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Wake up duration event.1LSb = 1 / ODR.
int32_t iis2dlpc_wkup_dur_get (iis2dlpc_ctx_t *ctx, uint8_t *val)
 Wake up duration event.1LSb = 1 / ODR.
int32_t iis2dlpc_wkup_feed_data_set (iis2dlpc_ctx_t *ctx, iis2dlpc_usr_off_on_wu_t val)
 Data sent to wake-up interrupt function.
int32_t iis2dlpc_wkup_feed_data_get (iis2dlpc_ctx_t *ctx, iis2dlpc_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 iis2dlpc_wkup_dur_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  val 
)

Wake up duration event.1LSb = 1 / ODR.

[get]

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

Definition at line 1713 of file iis2dlpc_reg.c.

int32_t iis2dlpc_wkup_dur_set ( iis2dlpc_ctx_t *  ctx,
uint8_t  val 
)

Wake up duration event.1LSb = 1 / ODR.

[set]

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

Definition at line 1692 of file iis2dlpc_reg.c.

int32_t iis2dlpc_wkup_feed_data_get ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_usr_off_on_wu_t *  val 
)

Data sent to wake-up interrupt function.

[get]

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

Definition at line 1754 of file iis2dlpc_reg.c.

int32_t iis2dlpc_wkup_feed_data_set ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_usr_off_on_wu_t  val 
)

Data sent to wake-up interrupt function.

[set]

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

Definition at line 1732 of file iis2dlpc_reg.c.

int32_t iis2dlpc_wkup_threshold_get ( iis2dlpc_ctx_t *  ctx,
uint8_t *  val 
)

Threshold for wakeup.1 LSB = FS_XL / 64.

[get]

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

Definition at line 1673 of file iis2dlpc_reg.c.

int32_t iis2dlpc_wkup_threshold_set ( iis2dlpc_ctx_t *  ctx,
uint8_t  val 
)

Threshold for wakeup.1 LSB = FS_XL / 64.

[set]

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

Definition at line 1652 of file iis2dlpc_reg.c.