Ejemplo n.º 1
0
 def w32CreateFile(name,
                   access=GENERIC_READ | GENERIC_WRITE,
                   flags=OPEN_BY_SERIAL_NUMBER):
     return FTD2XX(
         _ft.FT_W32_CreateFile(_ft.STRING(name), _ft.DWORD(access),
                               _ft.DWORD(0), None, _ft.DWORD(OPEN_EXISTING),
                               _ft.DWORD(flags), _ft.HANDLE(0)))
Ejemplo n.º 2
0
 def setEventNotification(self, evtmask, evthandle):
     call_ft(_ft.FT_SetEventNotification, self.handle, _ft.DWORD(evtmask),
             _ft.HANDLE(evthandle))
     return None