LibDriver L3GD20H
Loading...
Searching...
No Matches
l3gd20h fifo driver function

l3gd20h fifo driver modules More...

Collaboration diagram for l3gd20h fifo driver function:

Enumerations

enum  l3gd20h_fifo_mode_t {
  L3GD20H_FIFO_MODE_BYPASS = 0x00 , L3GD20H_FIFO_MODE_FIFO = 0x01 , L3GD20H_FIFO_MODE_STREAM = 0x02 , L3GD20H_FIFO_MODE_STREAM_TO_FIFO = 0x03 ,
  L3GD20H_FIFO_MODE_BYPASS_TO_STREAM = 0x04 , L3GD20H_FIFO_MODE_DYNAMIC_STREAM = 0x06 , L3GD20H_FIFO_MODE_BYPASS_TO_FIFO = 0x07
}
 l3gd20h fifo mode enumeration definition More...

Functions

uint8_t l3gd20h_set_fifo (l3gd20h_handle_t *handle, l3gd20h_bool_t enable)
 enable or disable the fifo
uint8_t l3gd20h_get_fifo (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable)
 get the fifo status
uint8_t l3gd20h_set_stop_on_fifo_threshold (l3gd20h_handle_t *handle, l3gd20h_bool_t enable)
 enable or disable stop on fifo threshold
uint8_t l3gd20h_get_stop_on_fifo_threshold (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable)
 get stop on fifo threshold status
uint8_t l3gd20h_set_fifo_mode (l3gd20h_handle_t *handle, l3gd20h_fifo_mode_t fifo_mode)
 set the fifo mode
uint8_t l3gd20h_get_fifo_mode (l3gd20h_handle_t *handle, l3gd20h_fifo_mode_t *fifo_mode)
 get the fifo mode
uint8_t l3gd20h_set_fifo_threshold (l3gd20h_handle_t *handle, uint8_t threshold)
 set the fifo threshold
uint8_t l3gd20h_get_fifo_threshold (l3gd20h_handle_t *handle, uint8_t *threshold)
 get the fifo threshold
uint8_t l3gd20h_get_fifo_level (l3gd20h_handle_t *handle, uint8_t *level)
 get the fifo level

Detailed Description

l3gd20h fifo driver modules

Enumeration Type Documentation

◆ l3gd20h_fifo_mode_t

l3gd20h fifo mode enumeration definition

Enumerator
L3GD20H_FIFO_MODE_BYPASS 

bypass mode

L3GD20H_FIFO_MODE_FIFO 

fifo mode

L3GD20H_FIFO_MODE_STREAM 

stream mode

L3GD20H_FIFO_MODE_STREAM_TO_FIFO 

stream to fifo mode

L3GD20H_FIFO_MODE_BYPASS_TO_STREAM 

bypass to stream mode

L3GD20H_FIFO_MODE_DYNAMIC_STREAM 

dynamic stream mode

L3GD20H_FIFO_MODE_BYPASS_TO_FIFO 

bypass to fifo mode

Definition at line 342 of file driver_l3gd20h.h.

Function Documentation

◆ l3gd20h_get_fifo()

uint8_t l3gd20h_get_fifo ( l3gd20h_handle_t * handle,
l3gd20h_bool_t * enable )

get the fifo status

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

Definition at line 1991 of file driver_l3gd20h.c.

◆ l3gd20h_get_fifo_level()

uint8_t l3gd20h_get_fifo_level ( l3gd20h_handle_t * handle,
uint8_t * level )

get the fifo level

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

Definition at line 2591 of file driver_l3gd20h.c.

◆ l3gd20h_get_fifo_mode()

uint8_t l3gd20h_get_fifo_mode ( l3gd20h_handle_t * handle,
l3gd20h_fifo_mode_t * fifo_mode )

get the fifo mode

Parameters
[in]*handlepointer to an l3gd20h handle structure
[out]*fifo_modepointer to a chip fifo working mode buffer
Returns
status code
  • 0 success
  • 1 get fifo mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2473 of file driver_l3gd20h.c.

◆ l3gd20h_get_fifo_threshold()

uint8_t l3gd20h_get_fifo_threshold ( l3gd20h_handle_t * handle,
uint8_t * threshold )

get the fifo threshold

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

Definition at line 2554 of file driver_l3gd20h.c.

◆ l3gd20h_get_stop_on_fifo_threshold()

uint8_t l3gd20h_get_stop_on_fifo_threshold ( l3gd20h_handle_t * handle,
l3gd20h_bool_t * enable )

get stop on fifo threshold status

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

Definition at line 2065 of file driver_l3gd20h.c.

◆ l3gd20h_set_fifo()

uint8_t l3gd20h_set_fifo ( l3gd20h_handle_t * handle,
l3gd20h_bool_t enable )

enable or disable the fifo

Parameters
[in]*handlepointer to an l3gd20h 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 1954 of file driver_l3gd20h.c.

◆ l3gd20h_set_fifo_mode()

uint8_t l3gd20h_set_fifo_mode ( l3gd20h_handle_t * handle,
l3gd20h_fifo_mode_t fifo_mode )

set the fifo mode

Parameters
[in]*handlepointer to an l3gd20h handle structure
[in]fifo_modechip fifo working mode
Returns
status code
  • 0 success
  • 1 set fifo mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2436 of file driver_l3gd20h.c.

◆ l3gd20h_set_fifo_threshold()

uint8_t l3gd20h_set_fifo_threshold ( l3gd20h_handle_t * handle,
uint8_t threshold )

set the fifo threshold

Parameters
[in]*handlepointer to an l3gd20h handle structure
[in]thresholdfifo threshold
Returns
status code
  • 0 success
  • 1 set fifo threshold failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 threshold is invalid
Note
threshold <= 31

Definition at line 2511 of file driver_l3gd20h.c.

◆ l3gd20h_set_stop_on_fifo_threshold()

uint8_t l3gd20h_set_stop_on_fifo_threshold ( l3gd20h_handle_t * handle,
l3gd20h_bool_t enable )

enable or disable stop on fifo threshold

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

Definition at line 2028 of file driver_l3gd20h.c.