Download D2XX Programmer`s Guide
Transcript
Document Reference No.: FT_000071 D2XX Programmer's Guide Version 1.3 Clearance No.: FTDI# 170 If the function is successful, the return value is nonzero. If the function is unsuccessful, the return value is zero. Remarks This function returns events currently being monitored by the device. Event monitoring for these events is enabled by the FT_W32_SetCommMask function. Example FT_HANDLE ftHandle; // setup by FT_W32_CreateFile DWORD dwMask; if (!FT_W32_GetCommMask(ftHandle,&dwMask)) ; // FT_W32_GetCommMask failed else ; // FT_W32_GetCommMask OK 6.17 FT_W32_WaitCommEvent Supported Operating Systems Linux Mac OS X (10.4 and later) Windows (2000 and later) Windows CE (4.2 and later) Summary This function waits for an event to occur. Definition BOOL FT_W32_SetupComm (FT_HANDLE ftHandle, LPDWORD lpdwEvent, LPOVERLAPPED lpOverlapped) Parameters ftHandle Handle of the device. lpdwEvent Pointer to a location that receives a mask that contains the events that occurred. lpOverlapped Pointer to an overlapped structure. 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 supports both non-overlapped and overlapped I/O, except under Windows CE and Linux where only non-overlapped IO is supported. Copyright © 2011 Future Technology Devices International Limited 90