Appiko
Functions
FIFO Exported Functions

Functions

uint8_t S2LPFifoReadNumberBytesRxFifo (void)
 Return the number of elements in the Rx FIFO. More...
 
uint8_t S2LPFifoReadNumberBytesTxFifo (void)
 Return the number of elements in the Tx FIFO. More...
 
void S2LPFifoSetAlmostFullThresholdRx (uint8_t cThrRxFifo)
 Set the almost full threshold for the Rx FIFO. When the number of elements in RX FIFO reaches this value an interrupt can be generated to the MCU. More...
 
uint8_t S2LPFifoGetAlmostFullThresholdRx (void)
 Return the almost full threshold for RX FIFO. More...
 
void S2LPFifoSetAlmostEmptyThresholdRx (uint8_t cThrRxFifo)
 Set the almost empty threshold for the Rx FIFO. When the number of elements in RX FIFO reaches this value an interrupt can be generated to the MCU. More...
 
uint8_t S2LPFifoGetAlmostEmptyThresholdRx (void)
 Return the almost empty threshold for Rx FIFO. More...
 
void S2LPFifoSetAlmostFullThresholdTx (uint8_t cThrTxFifo)
 Set the almost full threshold for the Tx FIFO. When the number of elements in TX FIFO reaches this value an interrupt can be generated to the MCU. More...
 
uint8_t S2LPFifoGetAlmostFullThresholdTx (void)
 Return the almost full threshold for Tx FIFO. More...
 
void S2LPFifoSetAlmostEmptyThresholdTx (uint8_t cThrTxFifo)
 Set the almost empty threshold for the Tx FIFO. When the number of elements in Tx FIFO reaches this value an interrupt can can be generated to the MCU. More...
 
uint8_t S2LPFifoGetAlmostEmptyThresholdTx (void)
 Return the almost empty threshold for Tx FIFO. More...
 
void S2LPFifoMuxRxFifoIrqEnable (SFunctionalState xNewState)
 Enable the Mux for the Rx FIFO IRQ. To be enabled when RX FIFO THRESHOLD is used. More...
 

Detailed Description

Function Documentation

◆ S2LPFifoGetAlmostEmptyThresholdRx()

uint8_t S2LPFifoGetAlmostEmptyThresholdRx ( void  )
Parameters
None.
Return values
uint8_tAlmost empty threshold for Rx FIFO.

Definition at line 194 of file S2LP_Fifo.c.

References g_xStatus.

◆ S2LPFifoGetAlmostEmptyThresholdTx()

uint8_t S2LPFifoGetAlmostEmptyThresholdTx ( void  )
Parameters
None.
Return values
uint8_tAlmost empty threshold for Tx FIFO.

Definition at line 276 of file S2LP_Fifo.c.

References g_xStatus.

◆ S2LPFifoGetAlmostFullThresholdRx()

uint8_t S2LPFifoGetAlmostFullThresholdRx ( void  )
Note
The almost full threshold is encountered from the top of the FIFO. For example, if it is 7 the almost full FIFO irq will be raised when the number of elements is equals to 128-7 = 121.
Parameters
None.
Return values
uint8_tAlmost full threshold for Rx FIFO.

Definition at line 156 of file S2LP_Fifo.c.

References g_xStatus.

◆ S2LPFifoGetAlmostFullThresholdTx()

uint8_t S2LPFifoGetAlmostFullThresholdTx ( void  )
Note
The almost full threshold is encountered from the top of the FIFO. For example, if it is set to 7 the almost full FIFO irq will be raised when the number of elements is equals to 128-7 = 121.
Parameters
None.
Return values
uint8_tAlmost full threshold for Tx FIFO.

Definition at line 236 of file S2LP_Fifo.c.

References g_xStatus.

◆ S2LPFifoMuxRxFifoIrqEnable()

void S2LPFifoMuxRxFifoIrqEnable ( SFunctionalState  xNewState)
Parameters
xNewState.
Return values
None.

Definition at line 292 of file S2LP_Fifo.c.

◆ S2LPFifoReadNumberBytesRxFifo()

uint8_t S2LPFifoReadNumberBytesRxFifo ( void  )
Parameters
None.
Return values
uint8_tNumber of elements in the Rx FIFO.

Definition at line 102 of file S2LP_Fifo.c.

References g_xStatus.

◆ S2LPFifoReadNumberBytesTxFifo()

uint8_t S2LPFifoReadNumberBytesTxFifo ( void  )
Parameters
None.
Return values
uint8_tNumber of elements in the Tx FIFO.

Definition at line 116 of file S2LP_Fifo.c.

References g_xStatus.

◆ S2LPFifoSetAlmostEmptyThresholdRx()

void S2LPFifoSetAlmostEmptyThresholdRx ( uint8_t  cThrRxFifo)
Parameters
cThrRxFifoalmost empty threshold. This parameter is an uint8_t.
Return values
None.

Definition at line 173 of file S2LP_Fifo.c.

◆ S2LPFifoSetAlmostEmptyThresholdTx()

void S2LPFifoSetAlmostEmptyThresholdTx ( uint8_t  cThrTxFifo)
Parameters
cThrTxFifoalmost empty threshold. This parameter is an uint8_t.
Return values
None.

Definition at line 253 of file S2LP_Fifo.c.

◆ S2LPFifoSetAlmostFullThresholdRx()

void S2LPFifoSetAlmostFullThresholdRx ( uint8_t  cThrRxFifo)
Note
The almost full threshold is encountered from the top of the FIFO. For example, if it is set to 7 the almost full FIFO irq will be raised when the number of elements is equals to 128-7 = 121.
Parameters
cThrRxFifoalmost full threshold. This parameter is an uint8_t.
Return values
None.

Definition at line 133 of file S2LP_Fifo.c.

◆ S2LPFifoSetAlmostFullThresholdTx()

void S2LPFifoSetAlmostFullThresholdTx ( uint8_t  cThrTxFifo)
Note
The almost full threshold is encountered from the top of the FIFO. For example, if it is set to 7 the almost full FIFO irq will be raised when the number of elements is equals to 128-7 = 121.
Parameters
cThrTxFifoalmost full threshold. This parameter is an uint8_t.
Return values
None.

Definition at line 213 of file S2LP_Fifo.c.