Appiko
S2LP_Fifo.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __S2LP_FIFO_H
30 #define __S2LP_FIFO_H
31 
32 
33 /* Includes ------------------------------------------------------------------*/
34 #include "S2LP_Regs.h"
35 #include "S2LP_Types.h"
36 
37 
38 #ifdef __cplusplus
39  extern "C" {
40 #endif
41 
42 
93 uint8_t S2LPFifoReadNumberBytesRxFifo(void);
94 uint8_t S2LPFifoReadNumberBytesTxFifo(void);
95 void S2LPFifoSetAlmostFullThresholdRx(uint8_t cThrRxFifo);
97 void S2LPFifoSetAlmostEmptyThresholdRx(uint8_t cThrRxFifo);
99 void S2LPFifoSetAlmostFullThresholdTx(uint8_t cThrTxFifo);
101 void S2LPFifoSetAlmostEmptyThresholdTx(uint8_t cThrTxFifo);
104 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif
123 
124 /******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/
void S2LPFifoMuxRxFifoIrqEnable(SFunctionalState xNewState)
Enable the Mux for the Rx FIFO IRQ. To be enabled when RX FIFO THRESHOLD is used.
Definition: S2LP_Fifo.c:292
SFunctionalState
S2LP Functional state. Used to enable or disable a specific option.
Definition: S2LP_Types.h:67
uint8_t S2LPFifoReadNumberBytesTxFifo(void)
Return the number of elements in the Tx FIFO.
Definition: S2LP_Fifo.c:116
void S2LPFifoSetAlmostEmptyThresholdRx(uint8_t cThrRxFifo)
Set the almost empty threshold for the Rx FIFO. When the number of elements in RX FIFO reaches this v...
Definition: S2LP_Fifo.c:173
void S2LPFifoSetAlmostFullThresholdTx(uint8_t cThrTxFifo)
Set the almost full threshold for the Tx FIFO. When the number of elements in TX FIFO reaches this va...
Definition: S2LP_Fifo.c:213
uint8_t S2LPFifoGetAlmostFullThresholdTx(void)
Return the almost full threshold for Tx FIFO.
Definition: S2LP_Fifo.c:236
This file contains all the registers address and masks.
uint8_t S2LPFifoGetAlmostFullThresholdRx(void)
Return the almost full threshold for RX FIFO.
Definition: S2LP_Fifo.c:156
uint8_t S2LPFifoReadNumberBytesRxFifo(void)
Return the number of elements in the Rx FIFO.
Definition: S2LP_Fifo.c:102
uint8_t S2LPFifoGetAlmostEmptyThresholdRx(void)
Return the almost empty threshold for Rx FIFO.
Definition: S2LP_Fifo.c:194
void S2LPFifoSetAlmostFullThresholdRx(uint8_t cThrRxFifo)
Set the almost full threshold for the Rx FIFO. When the number of elements in RX FIFO reaches this va...
Definition: S2LP_Fifo.c:133
Header file for S2-LP types.
uint8_t S2LPFifoGetAlmostEmptyThresholdTx(void)
Return the almost empty threshold for Tx FIFO.
Definition: S2LP_Fifo.c:276
void S2LPFifoSetAlmostEmptyThresholdTx(uint8_t cThrTxFifo)
Set the almost empty threshold for the Tx FIFO. When the number of elements in Tx FIFO reaches this v...
Definition: S2LP_Fifo.c:253