Function 40 - set the mask for expected events.

The mask for expected events affects function working with events 10, 11, 23 - they notify only about events allowed by this mask.
Parameters: Returned value: Remarks: