LPS22HH pressure sensor library

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LPS22HH_Fifo

LPS22HH_Fifo
[LPS22HH]

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

Functions

int32_t lps22hh_fifo_mode_set (lps22hh_ctx_t *ctx, lps22hh_f_mode_t val)
 Fifo Mode selection.
int32_t lps22hh_fifo_mode_get (lps22hh_ctx_t *ctx, lps22hh_f_mode_t *val)
 Fifo Mode selection.
int32_t lps22hh_fifo_stop_on_wtm_set (lps22hh_ctx_t *ctx, uint8_t val)
 Sensing chain FIFO stop values memorization at threshold level.
int32_t lps22hh_fifo_stop_on_wtm_get (lps22hh_ctx_t *ctx, uint8_t *val)
 Sensing chain FIFO stop values memorization at threshold level.
int32_t lps22hh_fifo_watermark_set (lps22hh_ctx_t *ctx, uint8_t val)
 FIFO watermark level selection.
int32_t lps22hh_fifo_watermark_get (lps22hh_ctx_t *ctx, uint8_t *val)
 FIFO watermark level selection.
int32_t lps22hh_fifo_data_level_get (lps22hh_ctx_t *ctx, uint8_t *buff)
 FIFO stored data level.
int32_t lps22hh_fifo_src_get (lps22hh_ctx_t *ctx, lps22hh_fifo_status2_t *val)
 Read all the FIFO status flag of the device.
int32_t lps22hh_fifo_full_flag_get (lps22hh_ctx_t *ctx, uint8_t *val)
 Smart FIFO full status.
int32_t lps22hh_fifo_ovr_flag_get (lps22hh_ctx_t *ctx, uint8_t *val)
 FIFO overrun status.
int32_t lps22hh_fifo_wtm_flag_get (lps22hh_ctx_t *ctx, uint8_t *val)
 FIFO watermark status.
int32_t lps22hh_fifo_ovr_on_int_set (lps22hh_ctx_t *ctx, uint8_t val)
 FIFO overrun interrupt on INT_DRDY pin.
int32_t lps22hh_fifo_ovr_on_int_get (lps22hh_ctx_t *ctx, uint8_t *val)
 FIFO overrun interrupt on INT_DRDY pin.
int32_t lps22hh_fifo_threshold_on_int_set (lps22hh_ctx_t *ctx, uint8_t val)
 FIFO watermark status on INT_DRDY pin.
int32_t lps22hh_fifo_threshold_on_int_get (lps22hh_ctx_t *ctx, uint8_t *val)
 FIFO watermark status on INT_DRDY pin.
int32_t lps22hh_fifo_full_on_int_set (lps22hh_ctx_t *ctx, uint8_t val)
 FIFO full flag on INT_DRDY pin.
int32_t lps22hh_fifo_full_on_int_get (lps22hh_ctx_t *ctx, uint8_t *val)
 FIFO full flag on INT_DRDY pin.

Detailed Description

This section group all the functions concerning the fifo usage.


Function Documentation

int32_t lps22hh_fifo_data_level_get ( lps22hh_ctx_t *  ctx,
uint8_t *  buff 
)

FIFO stored data level.

[get]

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1633 of file lps22hh_reg.c.

int32_t lps22hh_fifo_full_flag_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

Smart FIFO full status.

[get]

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

Definition at line 1663 of file lps22hh_reg.c.

int32_t lps22hh_fifo_full_on_int_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

FIFO full flag on INT_DRDY pin.

[get]

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_t,:change the values of f_fss5 in reg CTRL_REG3

Definition at line 1812 of file lps22hh_reg.c.

int32_t lps22hh_fifo_full_on_int_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

FIFO full flag on INT_DRDY pin.

[set]

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_tval: change the values of f_fss5 in reg CTRL_REG3

Definition at line 1793 of file lps22hh_reg.c.

int32_t lps22hh_fifo_mode_get ( lps22hh_ctx_t *  ctx,
lps22hh_f_mode_t *  val 
)

Fifo Mode selection.

[get]

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

Definition at line 1506 of file lps22hh_reg.c.

int32_t lps22hh_fifo_mode_set ( lps22hh_ctx_t *  ctx,
lps22hh_f_mode_t  val 
)

Fifo Mode selection.

[set]

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

Definition at line 1485 of file lps22hh_reg.c.

int32_t lps22hh_fifo_ovr_flag_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

FIFO overrun status.

[get]

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

Definition at line 1682 of file lps22hh_reg.c.

int32_t lps22hh_fifo_ovr_on_int_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

FIFO overrun interrupt on INT_DRDY pin.

[get]

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_t,:change the values of f_ovr in reg CTRL_REG3

Definition at line 1738 of file lps22hh_reg.c.

int32_t lps22hh_fifo_ovr_on_int_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

FIFO overrun interrupt on INT_DRDY pin.

[set]

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_tval: change the values of f_ovr in reg CTRL_REG3

Definition at line 1719 of file lps22hh_reg.c.

int32_t lps22hh_fifo_src_get ( lps22hh_ctx_t *  ctx,
lps22hh_fifo_status2_t *  val 
)

Read all the FIFO status flag of the device.

[get]

Parameters:
ctxread / write interface definitions
valregisters FIFO_STATUS2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1648 of file lps22hh_reg.c.

int32_t lps22hh_fifo_stop_on_wtm_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

Sensing chain FIFO stop values memorization at threshold level.

[get]

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

Definition at line 1574 of file lps22hh_reg.c.

int32_t lps22hh_fifo_stop_on_wtm_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

Sensing chain FIFO stop values memorization at threshold level.

[set]

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

Definition at line 1552 of file lps22hh_reg.c.

int32_t lps22hh_fifo_threshold_on_int_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

FIFO watermark status on INT_DRDY pin.

[get]

Parameters:
lps22hb_ctx_t*ctx: read / write interface definitions
uint8_t,:change the values of f_fth in reg CTRL_REG3

Definition at line 1775 of file lps22hh_reg.c.

int32_t lps22hh_fifo_threshold_on_int_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

FIFO watermark status on INT_DRDY pin.

[set]

Parameters:
lps22hh_ctx_t*ctx: read / write interface definitions
uint8_tval: change the values of f_fth in reg CTRL_REG3

Definition at line 1756 of file lps22hh_reg.c.

int32_t lps22hh_fifo_watermark_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

FIFO watermark level selection.

[get]

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

Definition at line 1614 of file lps22hh_reg.c.

int32_t lps22hh_fifo_watermark_set ( lps22hh_ctx_t *  ctx,
uint8_t  val 
)

FIFO watermark level selection.

[set]

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

Definition at line 1593 of file lps22hh_reg.c.

int32_t lps22hh_fifo_wtm_flag_get ( lps22hh_ctx_t *  ctx,
uint8_t *  val 
)

FIFO watermark status.

[get]

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

Definition at line 1701 of file lps22hh_reg.c.