Casio IT-2000W User Manual

Page 120

Advertising
background image

120

GetCommEventMask

UNIT GetCommEventMask(idComDev, fnEvtClear)

int idComDev;

/* Communication device ID */

int fnEvtClear;

/* Event to be cleared in the event word */

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.

Advertising