Page 1 of 1
Maximum SER_RX_FIFO_SIZE
Posted: Thu 5. May 2022, 07:48
by damenc
In the example programs, the size of SER_RX_FIFO_SIZE is dfined as 250:
Code: Select all
#define SER_RX_FIFO_SIZE 250
// RX Fifo (soft-fifo write by RX complete interrupt)
static u8_t RxFifo[SER_RX_FIFO_SIZE];
What is the maximum supported size for SER_RX_FIFO_SIZE?
Re: Maximum SER_RX_FIFO_SIZE
Posted: Thu 5. May 2022, 10:12
by PEAK-Support
The MAX Value for the #define SER_TX_FIFO_SIZE and SER_RX_FIFO_SIZE is 255
See Struct of the SERInit_t
Code: Select all
////////////////////////////////////////////////////////////
//! @name structures
//! structures for serial interaction
//! @{
//! @brief
//! structure for serial initialization
typedef struct {
u32_t prescaler; //!< prescaler value for serial port
void *pTxFifo; //!< pointer for TX buffer
void *pRxFifo; //!< pointer for RX buffer
u8_t databits; //!< number of databits ( 5..8)
u8_t stopbits; //!< number of stopbits ( 1..2)
u8_t parity; //!< mode of parity ( see SER_PARITY_..)
u8_t TxFifoSize; //!< size of TX buffer space
u8_t RxFifoSize; //!< size of RX buffer space
u8_t ISRnum; //!< number of VIC channel for ISR routine
} SERInit_t;
If you need a larger Queue build your own in front of the Queue of the LIB.
Re: Maximum SER_RX_FIFO_SIZE
Posted: Fri 20. May 2022, 09:30
by damenc
Thank you!