181
C-Control Pro Mega Series
waits until a byte has been received.
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 )
Return Parameter
received byte from the serial interface
6.15.7 Serial_ReadExt
Serial Functions
Syntax
word Serial_ReadExt(byte serport);
Sub Serial_ReadExt(serport As Byte) As Word
Description
Reads one byte from the serial interface. In opposite to Serial_Read() Serial_ReadExt() returns
immediately even if there is no byte available in the serial port. In this case
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 )
Return Parameter
received byte from the serial interface
256
(0x100) if there was no byte available
6.15.8 Serial_Write
Serial Functions
Syntax
void Serial_Write(byte serport, byte val);
Sub Serial_Write(serport As Byte, val As Byte)
Description
Example
256
(0x100) is returned.
© 2008 Conrad Electronic
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers