LibDriver ADXL345
Loading...
Searching...
No Matches
adxl345 fifo driver function

adxl345 fifo driver modules More...

Collaboration diagram for adxl345 fifo driver function:

Functions

uint8_t adxl345_set_watermark (adxl345_handle_t *handle, uint8_t level)
 set the fifo watermark
uint8_t adxl345_get_watermark (adxl345_handle_t *handle, uint8_t *level)
 get the fifo watermark
uint8_t adxl345_get_watermark_level (adxl345_handle_t *handle, uint8_t *level)
 get the current fifo watermark level

Detailed Description

adxl345 fifo driver modules

Function Documentation

◆ adxl345_get_watermark()

uint8_t adxl345_get_watermark ( adxl345_handle_t * handle,
uint8_t * level )

get the fifo watermark

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

Definition at line 2637 of file driver_adxl345.c.

◆ adxl345_get_watermark_level()

uint8_t adxl345_get_watermark_level ( adxl345_handle_t * handle,
uint8_t * level )

get the current fifo watermark level

Parameters
[in]*handlepointer to an adxl345 handle structure
[out]*levelpointer to a current watermark level buffer
Returns
status code
  • 0 success
  • 1 get watermark level failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2674 of file driver_adxl345.c.

◆ adxl345_set_watermark()

uint8_t adxl345_set_watermark ( adxl345_handle_t * handle,
uint8_t level )

set the fifo watermark

Parameters
[in]*handlepointer to an adxl345 handle structure
[in]levelwatermark level
Returns
status code
  • 0 success
  • 1 set watermark failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
level <= 0x1F

Definition at line 2600 of file driver_adxl345.c.