Instructions
322Libraries
© 2013 Conrad Electronic
SR_EVEN_PAR" means 7 bit character length, 2 stop bits and even parity (see Example). An example in
BASIC Syntax: "SR_7BIT Or SR_2STOP Or SR_EVEN_PAR".
The user supplied buffer must be available the whole time the serial interface is working. Since after
leaving a function the local variables are no longer available, it is most times a good idea to provide the
user supplied buffer as a global variable.
Please use Serial_ReadExt() if you work in serial IRQ mode. Serial_Read() only supports polled
mode.
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port, ...)
ramaddr address of the buffer
recvlen size of receive buffer
sendlen size of send buffer
par interface parameter (see par table)
baud baud rate
table par definitions:
Definition
Function
SR_5BIT
5 Bit char length
SR_6BIT
6 Bit char length
SR_7BIT
7 Bit char length
SR_8BIT
8 Bit char length
SR_1STOP
1 stop bit
SR_2STOP
2 stop bit
SR_NO_PAR
no parity
SR_EVEN_PAR
even parity
SR_ODD_PAR
odd parity
5.20.7 Serial_IRQ_Info
Serial Functions
Syntax
byte Serial_IRQ_Info(byte serport, byte info);
Sub Serial_IRQ_Info(serport As Byte, info As Byte) As Byte
Description
In dependency of the info parameter the function returns how many bytes have been received or a written to
the send buffer.