ST / IIS2DLPC

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

IIS2DLPC_Free_Fall

IIS2DLPC_Free_Fall
[IIS2DLPC]

This section group all the functions concerning the free fall detection. More...

Functions

int32_t iis2dlpc_ff_dur_set (iis2dlpc_ctx_t *ctx, uint8_t val)
 Wake up duration event(1LSb = 1 / ODR).
int32_t iis2dlpc_ff_dur_get (iis2dlpc_ctx_t *ctx, uint8_t *val)
 Wake up duration event(1LSb = 1 / ODR).
int32_t iis2dlpc_ff_threshold_set (iis2dlpc_ctx_t *ctx, iis2dlpc_ff_ths_t val)
 Free fall threshold setting.
int32_t iis2dlpc_ff_threshold_get (iis2dlpc_ctx_t *ctx, iis2dlpc_ff_ths_t *val)
 Free fall threshold setting.

Detailed Description

This section group all the functions concerning the free fall detection.


Function Documentation

int32_t iis2dlpc_ff_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 ff_dur in reg WAKE_UP_DUR /F REE_FALL
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 2643 of file iis2dlpc_reg.c.

int32_t iis2dlpc_ff_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 ff_dur in reg WAKE_UP_DUR /F REE_FALL
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 2612 of file iis2dlpc_reg.c.

int32_t iis2dlpc_ff_threshold_get ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_ff_ths_t *  val 
)

Free fall threshold setting.

[get]

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

Definition at line 2687 of file iis2dlpc_reg.c.

int32_t iis2dlpc_ff_threshold_set ( iis2dlpc_ctx_t *  ctx,
iis2dlpc_ff_ths_t  val 
)

Free fall threshold setting.

[set]

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

Definition at line 2665 of file iis2dlpc_reg.c.