Casio IT-2000W Technical Reference Manual page 120

Casio pda technical reference manual
Table of Contents

Advertisement

GetCommEventMask
UNIT GetCommEventMask(idComDev, fnEvtClear)
int idComDev;
int fnEvtClear;
The GetCommEventMask function will acquire the bit specified by the fnEvtClear mask in the event
word, then clear it.
< Parameter >
idComDev : Specifies the communication device for which the event word is to be checked.
The OpenComm function returns this value.
fnEvtClear: Specifies the event to be cleared in the event word. For a list of event values refer
to the description about the SetCommEventMask function.
< Return value >
Returns a value that indicates the current event word of the specified communication device if the
function is terminated normally. Each bit of the event word represents whether the specified event
occurred. If the event actually occurred, the corresponding bit is set to 1.
Note:
The application must enable the event using the SetCommEventMask function before the
GetCommEventMask function records the occurrence of an event. If the communication device
event shows a line status error, the application should call the GetCommError function after
calling the GetCommEventMask function.
Note on IrDA:
Some of the events are not supported at present. refer to the description of the SetCommEventMask
function.
/* Communication device ID */
/* Event to be cleared in the event word */
120

Advertisement

Table of Contents
loading

Table of Contents