diff options
author | NJDFan <rob.gaddi@gmail.com> | 2019-06-20 16:04:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 16:04:55 -0700 |
commit | 3215eb3088a4ca55c5217c2e99da5584c3ee02c1 (patch) | |
tree | c64894a3b91f219add4a296db8376d9b3b9bdcef /serial/win32.py | |
parent | 5c021d4bdab2297602b4459f75bef2e00e5ec9ab (diff) | |
parent | acab9d2c0efb63323faebfd5e3405d77cd4b5617 (diff) | |
download | pyserial-git-3215eb3088a4ca55c5217c2e99da5584c3ee02c1.tar.gz |
Merge pull request #1 from pyserial/master
Catch up to the main fork
Diffstat (limited to 'serial/win32.py')
-rw-r--r-- | serial/win32.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/serial/win32.py b/serial/win32.py index 905ce0f..157f470 100644 --- a/serial/win32.py +++ b/serial/win32.py @@ -9,6 +9,8 @@ # pylint: disable=invalid-name,too-few-public-methods,protected-access,too-many-instance-attributes +from __future__ import absolute_import + from ctypes import c_ulong, c_void_p, c_int64, c_char, \ WinDLL, sizeof, Structure, Union, POINTER from ctypes.wintypes import HANDLE @@ -179,6 +181,10 @@ WaitForSingleObject = _stdcall_libraries['kernel32'].WaitForSingleObject WaitForSingleObject.restype = DWORD WaitForSingleObject.argtypes = [HANDLE, DWORD] +WaitCommEvent = _stdcall_libraries['kernel32'].WaitCommEvent +WaitCommEvent.restype = BOOL +WaitCommEvent.argtypes = [HANDLE, LPDWORD, LPOVERLAPPED] + CancelIoEx = _stdcall_libraries['kernel32'].CancelIoEx CancelIoEx.restype = BOOL CancelIoEx.argtypes = [HANDLE, LPOVERLAPPED] @@ -245,6 +251,12 @@ EV_BREAK = 64 # Variable c_int PURGE_RXCLEAR = 8 # Variable c_int INFINITE = 0xFFFFFFFF +CE_RXOVER = 0x0001 +CE_OVERRUN = 0x0002 +CE_RXPARITY = 0x0004 +CE_FRAME = 0x0008 +CE_BREAK = 0x0010 + class N11_OVERLAPPED4DOLLAR_48E(Union): pass |