BOOL
|
FT_W32_SetCommMask
|
(FT_HANDLE ftHandle, DWORD dwMask)
|
Parameters
ftHandle
|
Handle of the device.
| ||||||||
dwMask
|
Mask containing aevents that the device has to monitor. This can be a combination of the following:
| ||||||||
|
| ||||||||
|
| ||||||||
|
| ||||||||
|
| ||||||||
|
| ||||||||
|
| ||||||||
|
| ||||||||
|
| ||||||||
|
|
Return Value
If the function is successful, the return value is nonzero.
If the function is unsuccessful, the return value is zero.
Remarks
This function specifies the events that the device should monitor. An application can call the function FT_W32_WaitCommEvent to wait for an event to occur.
Example
This example shows how to monitor changes in the modem status lines DSR and CTS.
FT_HANDLE ftHandle; // setup by FT_W32_CreateFile
DWORD dwMask = EV_CTS | EV_DSR;
if (!FT_W32_SetCommMAsk(ftHandle,dwMask))
; // FT_W32_SetCommMask failed
else
; // FT_W32_SetCommMask OK