Maximum SER_RX_FIFO_SIZE

Programmable Converter for RS-232 to CAN
Post Reply
damenc
Posts: 2
Joined: Thu 5. May 2022, 07:38

Maximum SER_RX_FIFO_SIZE

Post by damenc » Thu 5. May 2022, 07:48

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?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Maximum SER_RX_FIFO_SIZE

Post by PEAK-Support » Thu 5. May 2022, 10:12

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.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

damenc
Posts: 2
Joined: Thu 5. May 2022, 07:38

Re: Maximum SER_RX_FIFO_SIZE

Post by damenc » Fri 20. May 2022, 09:30

Thank you!

Post Reply