Serial_Irq_Info - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

SR_1STOP
SR_2STOP
SR_NO_PAR
SR_EVEN_PAR
SR_ODD_PAR

6.15.5 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.
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port )
info values:
RS232_FIFO_RECV (0)
RS232_FIFO_Send (1)
Return Parameter
result in bytes
6.15.6 Serial_Read
Serial Functions
Syntax
byte Serial_Read(byte serport);
Sub Serial_Read(serport As Byte) As Byte
Description
Reads one byte from the serial interface. If is there is no byte available in the serial interface, the function
© 2008 Conrad Electronic
SR_8BIT
number of bytes received
number of bytes written to he send buffer
8 Bit char length
1 stop bit
2 stop bit
no parity
even parity
odd parity
Libraries
180

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents