#include <cbser.h>
Data Fields | |
t_cbthr | hthr |
Handle of the background thread reading the serial port. | |
t_hcomport | hcomport |
The handle of the serial port itself. | |
t_cbsercb | rdCb |
Callback function for lines of text read from the serial port. | |
void * | ctx |
Context passed as 3rd parameter to rdCb. | |
short | goon |
Activity flag for the serial port. |
void* t_comport::ctx |
Context passed as 3rd parameter to rdCb.
short t_comport::goon |
Activity flag for the serial port.
Set to != 0, while the reading operation from the serial port is still active. Set to 0, if the reading operation has to be or if it already has been stopped. Generally an internal meaning only and the value of this flag should not be changed by the user.
The handle of the serial port itself.
Handle of the background thread reading the serial port.
Callback function for lines of text read from the serial port.
The lines of text are assumed to be separated either by carriage returns or new lines. The callback function gets a pointer to the buffer containing the received text, zero terminated and the length of the text. The pointer to the callback function may be also NULL, in this case the information is read from the serial port and dicarded afterwards. Generally this field is used internally and it should not be modified by the user.