Added support for the WNC M14A2A Cellular LTE Data Module.

Dependencies:   WNC14A2AInterface

Embed: (wiki syntax)

« Back to documentation index

Linear FIFO Private Functions

Linear FIFO Private Functions
[SPIRIT_LinearFifo]

Functions

uint8_t SpiritLinearFifoReadNumElementsRxFifo (void)
 Returns the number of elements in the Rx FIFO.
uint8_t SpiritLinearFifoReadNumElementsTxFifo (void)
 Returns the number of elements in the Tx FIFO.
void SpiritLinearFifoSetAlmostFullThresholdRx (uint8_t cThrRxFifo)
 Sets the almost full threshold for the Rx FIFO.
uint8_t SpiritLinearFifoGetAlmostFullThresholdRx (void)
 Returns the almost full threshold for RX FIFO.
void SpiritLinearFifoSetAlmostEmptyThresholdRx (uint8_t cThrRxFifo)
 Sets the almost empty threshold for the Rx FIFO.
uint8_t SpiritLinearFifoGetAlmostEmptyThresholdRx (void)
 Returns the almost empty threshold for Rx FIFO.
void SpiritLinearFifoSetAlmostFullThresholdTx (uint8_t cThrTxFifo)
 Sets the almost full threshold for the Tx FIFO.
uint8_t SpiritLinearFifoGetAlmostFullThresholdTx (void)
 Returns the almost full threshold for Tx FIFO.
void SpiritLinearFifoSetAlmostEmptyThresholdTx (uint8_t cThrTxFifo)
 Sets the almost empty threshold for the Tx FIFO.
uint8_t SpiritLinearFifoGetAlmostEmptyThresholdTx (void)
 Returns the almost empty threshold for Tx FIFO.

Function Documentation

uint8_t SpiritLinearFifoGetAlmostEmptyThresholdRx ( void   )

Returns the almost empty threshold for Rx FIFO.

Parameters:
None.
Return values:
uint8_tAlmost empty threshold for Rx FIFO.

Definition at line 217 of file SPIRIT_LinearFifo.c.

uint8_t SpiritLinearFifoGetAlmostEmptyThresholdTx ( void   )

Returns the almost empty threshold for Tx FIFO.

Parameters:
None.
Return values:
uint8_tAlmost empty threshold for Tx FIFO.

Definition at line 309 of file SPIRIT_LinearFifo.c.

uint8_t SpiritLinearFifoGetAlmostFullThresholdRx ( void   )

Returns the almost full threshold for RX FIFO.

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 96-7 = 89.
Parameters:
None.
Return values:
uint8_tAlmost full threshold for Rx FIFO.

Definition at line 177 of file SPIRIT_LinearFifo.c.

uint8_t SpiritLinearFifoGetAlmostFullThresholdTx ( void   )

Returns the almost full threshold for Tx FIFO.

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 96-7 = 89.
Parameters:
None.
Return values:
uint8_tAlmost full threshold for Tx FIFO.

Definition at line 265 of file SPIRIT_LinearFifo.c.

uint8_t SpiritLinearFifoReadNumElementsRxFifo ( void   )

Returns the number of elements in the Rx FIFO.

Parameters:
None.
Return values:
uint8_tNumber of elements in the Rx FIFO.

Definition at line 116 of file SPIRIT_LinearFifo.c.

uint8_t SpiritLinearFifoReadNumElementsTxFifo ( void   )

Returns the number of elements in the Tx FIFO.

Parameters:
None.
Return values:
uint8_tNumber of elements in the Tx FIFO.

Definition at line 134 of file SPIRIT_LinearFifo.c.

void SpiritLinearFifoSetAlmostEmptyThresholdRx ( uint8_t  cThrRxFifo )

Sets 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.

Parameters:
cThrRxFifoalmost empty threshold. This parameter is an uint8_t.
Return values:
None.

Definition at line 196 of file SPIRIT_LinearFifo.c.

void SpiritLinearFifoSetAlmostEmptyThresholdTx ( uint8_t  cThrTxFifo )

Sets 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.

Parameters:
cThrTxFifo,:almost empty threshold. This parameter is an uint8_t.
Return values:
None.

Definition at line 284 of file SPIRIT_LinearFifo.c.

void SpiritLinearFifoSetAlmostFullThresholdRx ( uint8_t  cThrRxFifo )

Sets 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.

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 96-7 = 89.
Parameters:
cThrRxFifoalmost full threshold. This parameter is an uint8_t.
Return values:
None.

Definition at line 154 of file SPIRIT_LinearFifo.c.

void SpiritLinearFifoSetAlmostFullThresholdTx ( uint8_t  cThrTxFifo )

Sets 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.

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 96-7 = 89.
Parameters:
cThrTxFifoalmost full threshold. This parameter is an uint8_t.
Return values:
None.

Definition at line 238 of file SPIRIT_LinearFifo.c.