LibDriver BMP384
Loading...
Searching...
No Matches
bmp384 fifo driver function

bmp384 fifo driver modules More...

Collaboration diagram for bmp384 fifo driver function:

Functions

uint8_t bmp384_get_fifo_length (bmp384_handle_t *handle, uint16_t *length)
 get the fifo length
uint8_t bmp384_get_fifo_data (bmp384_handle_t *handle, uint8_t *data, uint16_t length)
 get the fifo data
uint8_t bmp384_set_fifo_watermark (bmp384_handle_t *handle, uint16_t watermark)
 set the fifo watermark
uint8_t bmp384_get_fifo_watermark (bmp384_handle_t *handle, uint16_t *watermark)
 get the fifo watermark
uint8_t bmp384_set_fifo (bmp384_handle_t *handle, bmp384_bool_t enable)
 enable or disable the fifo
uint8_t bmp384_get_fifo (bmp384_handle_t *handle, bmp384_bool_t *enable)
 get the fifo status
uint8_t bmp384_set_fifo_stop_on_full (bmp384_handle_t *handle, bmp384_bool_t enable)
 enable or disable the fifo stopping on full
uint8_t bmp384_get_fifo_stop_on_full (bmp384_handle_t *handle, bmp384_bool_t *enable)
 get the fifo stopping on full status
uint8_t bmp384_set_fifo_sensortime_on (bmp384_handle_t *handle, bmp384_bool_t enable)
 enable or disable the fifo sensor time on
uint8_t bmp384_get_fifo_sensortime_on (bmp384_handle_t *handle, bmp384_bool_t *enable)
 get the fifo sensor time on status
uint8_t bmp384_set_fifo_pressure_on (bmp384_handle_t *handle, bmp384_bool_t enable)
 enable or disable the fifo pressure on
uint8_t bmp384_get_fifo_pressure_on (bmp384_handle_t *handle, bmp384_bool_t *enable)
 get the fifo pressure on status
uint8_t bmp384_set_fifo_temperature_on (bmp384_handle_t *handle, bmp384_bool_t enable)
 enable or disable the fifo temperature on
uint8_t bmp384_get_fifo_temperature_on (bmp384_handle_t *handle, bmp384_bool_t *enable)
 get the fifo temperature on status
uint8_t bmp384_set_fifo_subsampling (bmp384_handle_t *handle, uint8_t subsample)
 set the fifo subsampling
uint8_t bmp384_get_fifo_subsampling (bmp384_handle_t *handle, uint8_t *subsample)
 get the fifo subsampling
uint8_t bmp384_set_fifo_data_source (bmp384_handle_t *handle, bmp384_fifo_data_source_t source)
 set the fifo data source
uint8_t bmp384_get_fifo_data_source (bmp384_handle_t *handle, bmp384_fifo_data_source_t *source)
 get the fifo data source
uint8_t bmp384_flush_fifo (bmp384_handle_t *handle)
 flush the fifo
uint8_t bmp384_read_fifo (bmp384_handle_t *handle, uint8_t *buf, uint16_t *len)
 read the fifo
uint8_t bmp384_fifo_parse (bmp384_handle_t *handle, uint8_t *buf, uint16_t buf_len, bmp384_frame_t *frame, uint16_t *frame_len)
 parse the fifo data

Detailed Description

bmp384 fifo driver modules

Function Documentation

◆ bmp384_fifo_parse()

uint8_t bmp384_fifo_parse ( bmp384_handle_t * handle,
uint8_t * buf,
uint16_t buf_len,
bmp384_frame_t * frame,
uint16_t * frame_len )

parse the fifo data

Parameters
[in]*handlepointer to a bmp384 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_bmp384.c.

◆ bmp384_flush_fifo()

uint8_t bmp384_flush_fifo ( bmp384_handle_t * handle)

flush the fifo

Parameters
[in]*handlepointer to a bmp384 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 2607 of file driver_bmp384.c.

◆ bmp384_get_fifo()

uint8_t bmp384_get_fifo ( bmp384_handle_t * handle,
bmp384_bool_t * enable )

get the fifo status

Parameters
[in]*handlepointer to a bmp384 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 759 of file driver_bmp384.c.

◆ bmp384_get_fifo_data()

uint8_t bmp384_get_fifo_data ( bmp384_handle_t * handle,
uint8_t * data,
uint16_t length )

get the fifo data

Parameters
[in]*handlepointer to a bmp384 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 604 of file driver_bmp384.c.

◆ bmp384_get_fifo_data_source()

uint8_t bmp384_get_fifo_data_source ( bmp384_handle_t * handle,
bmp384_fifo_data_source_t * source )

get the fifo data source

Parameters
[in]*handlepointer to a bmp384 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 1257 of file driver_bmp384.c.

◆ bmp384_get_fifo_length()

uint8_t bmp384_get_fifo_length ( bmp384_handle_t * handle,
uint16_t * length )

get the fifo length

Parameters
[in]*handlepointer to a bmp384 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 566 of file driver_bmp384.c.

◆ bmp384_get_fifo_pressure_on()

uint8_t bmp384_get_fifo_pressure_on ( bmp384_handle_t * handle,
bmp384_bool_t * enable )

get the fifo pressure on status

Parameters
[in]*handlepointer to a bmp384 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 1005 of file driver_bmp384.c.

◆ bmp384_get_fifo_sensortime_on()

uint8_t bmp384_get_fifo_sensortime_on ( bmp384_handle_t * handle,
bmp384_bool_t * enable )

get the fifo sensor time on status

Parameters
[in]*handlepointer to a bmp384 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 923 of file driver_bmp384.c.

◆ bmp384_get_fifo_stop_on_full()

uint8_t bmp384_get_fifo_stop_on_full ( bmp384_handle_t * handle,
bmp384_bool_t * enable )

get the fifo stopping on full status

Parameters
[in]*handlepointer to a bmp384 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 841 of file driver_bmp384.c.

◆ bmp384_get_fifo_subsampling()

uint8_t bmp384_get_fifo_subsampling ( bmp384_handle_t * handle,
uint8_t * subsample )

get the fifo subsampling

Parameters
[in]*handlepointer to a bmp384 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 1175 of file driver_bmp384.c.

◆ bmp384_get_fifo_temperature_on()

uint8_t bmp384_get_fifo_temperature_on ( bmp384_handle_t * handle,
bmp384_bool_t * enable )

get the fifo temperature on status

Parameters
[in]*handlepointer to a bmp384 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 1087 of file driver_bmp384.c.

◆ bmp384_get_fifo_watermark()

uint8_t bmp384_get_fifo_watermark ( bmp384_handle_t * handle,
uint16_t * watermark )

get the fifo watermark

Parameters
[in]*handlepointer to a bmp384 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 677 of file driver_bmp384.c.

◆ bmp384_read_fifo()

uint8_t bmp384_read_fifo ( bmp384_handle_t * handle,
uint8_t * buf,
uint16_t * len )

read the fifo

Parameters
[in]*handlepointer to a bmp384 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_bmp384.c.

◆ bmp384_set_fifo()

uint8_t bmp384_set_fifo ( bmp384_handle_t * handle,
bmp384_bool_t enable )

enable or disable the fifo

Parameters
[in]*handlepointer to a bmp384 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 714 of file driver_bmp384.c.

◆ bmp384_set_fifo_data_source()

uint8_t bmp384_set_fifo_data_source ( bmp384_handle_t * handle,
bmp384_fifo_data_source_t source )

set the fifo data source

Parameters
[in]*handlepointer to a bmp384 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 1212 of file driver_bmp384.c.

◆ bmp384_set_fifo_pressure_on()

uint8_t bmp384_set_fifo_pressure_on ( bmp384_handle_t * handle,
bmp384_bool_t enable )

enable or disable the fifo pressure on

Parameters
[in]*handlepointer to a bmp384 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 960 of file driver_bmp384.c.

◆ bmp384_set_fifo_sensortime_on()

uint8_t bmp384_set_fifo_sensortime_on ( bmp384_handle_t * handle,
bmp384_bool_t enable )

enable or disable the fifo sensor time on

Parameters
[in]*handlepointer to a bmp384 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 878 of file driver_bmp384.c.

◆ bmp384_set_fifo_stop_on_full()

uint8_t bmp384_set_fifo_stop_on_full ( bmp384_handle_t * handle,
bmp384_bool_t enable )

enable or disable the fifo stopping on full

Parameters
[in]*handlepointer to a bmp384 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 796 of file driver_bmp384.c.

◆ bmp384_set_fifo_subsampling()

uint8_t bmp384_set_fifo_subsampling ( bmp384_handle_t * handle,
uint8_t subsample )

set the fifo subsampling

Parameters
[in]*handlepointer to a bmp384 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 1124 of file driver_bmp384.c.

◆ bmp384_set_fifo_temperature_on()

uint8_t bmp384_set_fifo_temperature_on ( bmp384_handle_t * handle,
bmp384_bool_t enable )

enable or disable the fifo temperature on

Parameters
[in]*handlepointer to a bmp384 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 1042 of file driver_bmp384.c.

◆ bmp384_set_fifo_watermark()

uint8_t bmp384_set_fifo_watermark ( bmp384_handle_t * handle,
uint16_t watermark )

set the fifo watermark

Parameters
[in]*handlepointer to a bmp384 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 639 of file driver_bmp384.c.