3-axis MEMS ultra low power accelerometer

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LIS2DW12_Fifo

LIS2DW12_Fifo
[LIS2DW12]

This section group all the functions concerning the fifo usage. More...

Functions

int32_t lis2dw12_fifo_watermark_set (lis2dw12_ctx_t *ctx, uint8_t val)
 FIFO watermark level selection.
int32_t lis2dw12_fifo_watermark_get (lis2dw12_ctx_t *ctx, uint8_t *val)
 FIFO watermark level selection.
int32_t lis2dw12_fifo_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_fmode_t val)
 FIFO mode selection.
int32_t lis2dw12_fifo_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_fmode_t *val)
 FIFO mode selection.
int32_t lis2dw12_fifo_data_level_get (lis2dw12_ctx_t *ctx, uint8_t *val)
 Number of unread samples stored in FIFO.
int32_t lis2dw12_fifo_ovr_flag_get (lis2dw12_ctx_t *ctx, uint8_t *val)
 FIFO overrun status.
int32_t lis2dw12_fifo_wtm_flag_get (lis2dw12_ctx_t *ctx, uint8_t *val)
 FIFO threshold status flag.

Detailed Description

This section group all the functions concerning the fifo usage.


Function Documentation

int32_t lis2dw12_fifo_data_level_get ( lis2dw12_ctx_t *  ctx,
uint8_t *  val 
)

Number of unread samples stored in FIFO.

[get]

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

Definition at line 2838 of file lis2dw12_reg.c.

int32_t lis2dw12_fifo_mode_get ( lis2dw12_ctx_t *  ctx,
lis2dw12_fmode_t *  val 
)

FIFO mode selection.

[get]

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

Definition at line 2800 of file lis2dw12_reg.c.

int32_t lis2dw12_fifo_mode_set ( lis2dw12_ctx_t *  ctx,
lis2dw12_fmode_t  val 
)

FIFO mode selection.

[set]

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

Definition at line 2779 of file lis2dw12_reg.c.

int32_t lis2dw12_fifo_ovr_flag_get ( lis2dw12_ctx_t *  ctx,
uint8_t *  val 
)

FIFO overrun status.

[get]

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

Definition at line 2856 of file lis2dw12_reg.c.

int32_t lis2dw12_fifo_watermark_get ( lis2dw12_ctx_t *  ctx,
uint8_t *  val 
)

FIFO watermark level selection.

[get]

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

Definition at line 2760 of file lis2dw12_reg.c.

int32_t lis2dw12_fifo_watermark_set ( lis2dw12_ctx_t *  ctx,
uint8_t  val 
)

FIFO watermark level selection.

[set]

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

Definition at line 2738 of file lis2dw12_reg.c.

int32_t lis2dw12_fifo_wtm_flag_get ( lis2dw12_ctx_t *  ctx,
uint8_t *  val 
)

FIFO threshold status flag.

[get]

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

Definition at line 2874 of file lis2dw12_reg.c.