LibDriver BMP390
Loading...
Searching...
No Matches
bmp390 fifo driver function

bmp390 fifo driver modules More...

Collaboration diagram for bmp390 fifo driver function:

Functions

uint8_t bmp390_get_fifo_length (bmp390_handle_t *handle, uint16_t *length)
 get the fifo length
uint8_t bmp390_get_fifo_data (bmp390_handle_t *handle, uint8_t *data, uint16_t length)
 get the fifo data
uint8_t bmp390_set_fifo_watermark (bmp390_handle_t *handle, uint16_t watermark)
 set the fifo watermark
uint8_t bmp390_get_fifo_watermark (bmp390_handle_t *handle, uint16_t *watermark)
 get the fifo watermark
uint8_t bmp390_set_fifo (bmp390_handle_t *handle, bmp390_bool_t enable)
 enable or disable the fifo
uint8_t bmp390_get_fifo (bmp390_handle_t *handle, bmp390_bool_t *enable)
 get the fifo status
uint8_t bmp390_set_fifo_stop_on_full (bmp390_handle_t *handle, bmp390_bool_t enable)
 enable or disable the fifo stopping on full
uint8_t bmp390_get_fifo_stop_on_full (bmp390_handle_t *handle, bmp390_bool_t *enable)
 get the fifo stopping on full status
uint8_t bmp390_set_fifo_sensortime_on (bmp390_handle_t *handle, bmp390_bool_t enable)
 enable or disable the fifo sensor time on
uint8_t bmp390_get_fifo_sensortime_on (bmp390_handle_t *handle, bmp390_bool_t *enable)
 get the fifo sensor time on status
uint8_t bmp390_set_fifo_pressure_on (bmp390_handle_t *handle, bmp390_bool_t enable)
 enable or disable the fifo pressure on
uint8_t bmp390_get_fifo_pressure_on (bmp390_handle_t *handle, bmp390_bool_t *enable)
 get the fifo pressure on status
uint8_t bmp390_set_fifo_temperature_on (bmp390_handle_t *handle, bmp390_bool_t enable)
 enable or disable the fifo temperature on
uint8_t bmp390_get_fifo_temperature_on (bmp390_handle_t *handle, bmp390_bool_t *enable)
 get the fifo temperature on status
uint8_t bmp390_set_fifo_subsampling (bmp390_handle_t *handle, uint8_t subsample)
 set the fifo subsampling
uint8_t bmp390_get_fifo_subsampling (bmp390_handle_t *handle, uint8_t *subsample)
 get the fifo subsampling
uint8_t bmp390_set_fifo_data_source (bmp390_handle_t *handle, bmp390_fifo_data_source_t source)
 set the fifo data source
uint8_t bmp390_get_fifo_data_source (bmp390_handle_t *handle, bmp390_fifo_data_source_t *source)
 get the fifo data source
uint8_t bmp390_flush_fifo (bmp390_handle_t *handle)
 flush the fifo
uint8_t bmp390_read_fifo (bmp390_handle_t *handle, uint8_t *buf, uint16_t *len)
 read the fifo
uint8_t bmp390_fifo_parse (bmp390_handle_t *handle, uint8_t *buf, uint16_t buf_len, bmp390_frame_t *frame, uint16_t *frame_len)
 parse the fifo data

Detailed Description

bmp390 fifo driver modules

Function Documentation

◆ bmp390_fifo_parse()

uint8_t bmp390_fifo_parse ( bmp390_handle_t * handle,
uint8_t * buf,
uint16_t buf_len,
bmp390_frame_t * frame,
uint16_t * frame_len )

parse the fifo data

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]*bufpointer to fifo data
[in]buf_lenfifo data length
[out]*framepointer to a frame buffer
[in,out]*frame_lenpointer to a frame length buffer
Returns
status code
  • 0 success
  • 1 fifo parse failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3729 of file driver_bmp390.c.

◆ bmp390_flush_fifo()

uint8_t bmp390_flush_fifo ( bmp390_handle_t * handle)

flush the fifo

Parameters
[in]*handlepointer to a bmp390 handle structure
Returns
status code
  • 0 success
  • 1 flush fifo failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2643 of file driver_bmp390.c.

◆ bmp390_get_fifo()

uint8_t bmp390_get_fifo ( bmp390_handle_t * handle,
bmp390_bool_t * enable )

get the fifo status

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*enablepointer to a bool buffer
Returns
status code
  • 0 success
  • 1 get fifo failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 795 of file driver_bmp390.c.

◆ bmp390_get_fifo_data()

uint8_t bmp390_get_fifo_data ( bmp390_handle_t * handle,
uint8_t * data,
uint16_t length )

get the fifo data

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*datapointer to a data buffer
[in]lengthdata buffer length
Returns
status code
  • 0 success
  • 1 get fifo data failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 640 of file driver_bmp390.c.

◆ bmp390_get_fifo_data_source()

uint8_t bmp390_get_fifo_data_source ( bmp390_handle_t * handle,
bmp390_fifo_data_source_t * source )

get the fifo data source

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*sourcepointer to fifo data source buffer
Returns
status code
  • 0 success
  • 1 get fifo data source failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1293 of file driver_bmp390.c.

◆ bmp390_get_fifo_length()

uint8_t bmp390_get_fifo_length ( bmp390_handle_t * handle,
uint16_t * length )

get the fifo length

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*lengthpointer to a fifo length buffer
Returns
status code
  • 0 success
  • 1 get fifo length failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 602 of file driver_bmp390.c.

◆ bmp390_get_fifo_pressure_on()

uint8_t bmp390_get_fifo_pressure_on ( bmp390_handle_t * handle,
bmp390_bool_t * enable )

get the fifo pressure on status

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*enablepointer to a bool buffer
Returns
status code
  • 0 success
  • 1 get fifo pressure on failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1041 of file driver_bmp390.c.

◆ bmp390_get_fifo_sensortime_on()

uint8_t bmp390_get_fifo_sensortime_on ( bmp390_handle_t * handle,
bmp390_bool_t * enable )

get the fifo sensor time on status

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*enablepointer to a bool buffer
Returns
status code
  • 0 success
  • 1 get fifo sensor time on failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 959 of file driver_bmp390.c.

◆ bmp390_get_fifo_stop_on_full()

uint8_t bmp390_get_fifo_stop_on_full ( bmp390_handle_t * handle,
bmp390_bool_t * enable )

get the fifo stopping on full status

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*enablepointer to a bool buffer
Returns
status code
  • 0 success
  • 1 get fifo stop on full failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 877 of file driver_bmp390.c.

◆ bmp390_get_fifo_subsampling()

uint8_t bmp390_get_fifo_subsampling ( bmp390_handle_t * handle,
uint8_t * subsample )

get the fifo subsampling

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*subsamplepointer to subsample buffer
Returns
status code
  • 0 success
  • 1 get fifo subsampling failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1211 of file driver_bmp390.c.

◆ bmp390_get_fifo_temperature_on()

uint8_t bmp390_get_fifo_temperature_on ( bmp390_handle_t * handle,
bmp390_bool_t * enable )

get the fifo temperature on status

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*enablepointer to a bool buffer
Returns
status code
  • 0 success
  • 1 get fifo temperature on failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1123 of file driver_bmp390.c.

◆ bmp390_get_fifo_watermark()

uint8_t bmp390_get_fifo_watermark ( bmp390_handle_t * handle,
uint16_t * watermark )

get the fifo watermark

Parameters
[in]*handlepointer to a bmp390 handle structure
[out]*watermarkpointer to a fifo watermark buffer
Returns
status code
  • 0 success
  • 1 get fifo watermark failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 713 of file driver_bmp390.c.

◆ bmp390_read_fifo()

uint8_t bmp390_read_fifo ( bmp390_handle_t * handle,
uint8_t * buf,
uint16_t * len )

read the fifo

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]*bufpointer to a data buffer
[in,out]*lenpointer to a data length buffer
Returns
status code
  • 0 success
  • 1 read fifo failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3659 of file driver_bmp390.c.

◆ bmp390_set_fifo()

uint8_t bmp390_set_fifo ( bmp390_handle_t * handle,
bmp390_bool_t enable )

enable or disable the fifo

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set fifo failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 750 of file driver_bmp390.c.

◆ bmp390_set_fifo_data_source()

uint8_t bmp390_set_fifo_data_source ( bmp390_handle_t * handle,
bmp390_fifo_data_source_t source )

set the fifo data source

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]sourcefifo data source
Returns
status code
  • 0 success
  • 1 set fifo data source failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1248 of file driver_bmp390.c.

◆ bmp390_set_fifo_pressure_on()

uint8_t bmp390_set_fifo_pressure_on ( bmp390_handle_t * handle,
bmp390_bool_t enable )

enable or disable the fifo pressure on

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set fifo pressure on failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 996 of file driver_bmp390.c.

◆ bmp390_set_fifo_sensortime_on()

uint8_t bmp390_set_fifo_sensortime_on ( bmp390_handle_t * handle,
bmp390_bool_t enable )

enable or disable the fifo sensor time on

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set fifo sensor time on failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 914 of file driver_bmp390.c.

◆ bmp390_set_fifo_stop_on_full()

uint8_t bmp390_set_fifo_stop_on_full ( bmp390_handle_t * handle,
bmp390_bool_t enable )

enable or disable the fifo stopping on full

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set fifo stop on full failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 832 of file driver_bmp390.c.

◆ bmp390_set_fifo_subsampling()

uint8_t bmp390_set_fifo_subsampling ( bmp390_handle_t * handle,
uint8_t subsample )

set the fifo subsampling

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]subsamplefifo subsample
Returns
status code
  • 0 success
  • 1 set fifo subsampling failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
subsample <= 7

Definition at line 1160 of file driver_bmp390.c.

◆ bmp390_set_fifo_temperature_on()

uint8_t bmp390_set_fifo_temperature_on ( bmp390_handle_t * handle,
bmp390_bool_t enable )

enable or disable the fifo temperature on

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set fifo temperature on failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1078 of file driver_bmp390.c.

◆ bmp390_set_fifo_watermark()

uint8_t bmp390_set_fifo_watermark ( bmp390_handle_t * handle,
uint16_t watermark )

set the fifo watermark

Parameters
[in]*handlepointer to a bmp390 handle structure
[in]watermarkfifo watermark
Returns
status code
  • 0 success
  • 1 set fifo watermark failed
  • 2 handle is NULL
  • 3 handle is not initialize
Note
none

Definition at line 675 of file driver_bmp390.c.