t_comport Struct Reference

Handle of the comport. More...

#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.


Detailed Description

Handle of the comport.


Field Documentation

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.

t_hcomport t_comport::hcomport

The handle of the serial port itself.

t_cbthr t_comport::hthr

Handle of the background thread reading the serial port.

t_cbsercb t_comport::rdCb

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.


The documentation for this struct was generated from the following file:
Generated on Thu Feb 12 11:09:27 2009 for cb by  doxygen 1.4.7