National Instruments 320682C Musical Toy Instrument User Manual


 
RS-232 Library Chapter 5
LabWindows/CVI Standard Libraries 5-24 © National Instruments Corporation
Return Value
status
integer Refer to error codes in Table 5-6.
Parameter Discussion
The callback function must have the following form.
void CallbackFunctionName (int COMPort, int eventMask, void *callbackData);
The eventMask and callbackData parameters are the same values that were passed to
InstallComCallback.
The events are specified using bits in the eventMask parameter. You can specify multiple event
bits in the eventMask parameter. The valid event bits are listed in the table below.
Bit Hex Value Com Port Event Constant Name
0 0x0001 Any character received.
LWRS_RXCHAR
1 0x0002 Received certain character.
LWRS_RXFLAG
2 0x0004 Transmit Queue empty.
LWRS_TXEMPTY
3 0x0008 CTS changed state.
LWRS_CTS
4 0x0010 DSR changed state.
LWRS_DSR
5 0x0020 RLSD changed state.
LWRS_RLSD
6 0x0040 BREAK received.
LWRS_BREAK
7 0x0080 Line status error occurred.
LWRS_ERR
8 0x0100 Ring signal detected.
LWRS_RING
15 0x8000
notifyCount bytes in inqueue.
LWRS_RECEIVE