| 1 |
#[cfg(feature = "Win32_Foundation")] |
| 2 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BuildCommDCBA(lpdef : ::windows_sys::core::PCSTR, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BuildCommDCBAndTimeoutsA(lpdef : ::windows_sys::core::PCSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); |
| 5 |
#[cfg(feature = "Win32_Foundation")] |
| 6 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BuildCommDCBAndTimeoutsW(lpdef : ::windows_sys::core::PCWSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); |
| 7 |
#[cfg(feature = "Win32_Foundation")] |
| 8 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BuildCommDCBW(lpdef : ::windows_sys::core::PCWSTR, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ClearCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); |
| 11 |
#[cfg(feature = "Win32_Foundation")] |
| 12 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ClearCommError(hfile : super::super::Foundation:: HANDLE, lperrors : *mut CLEAR_COMM_ERROR_FLAGS, lpstat : *mut COMSTAT) -> super::super::Foundation:: BOOL); |
| 13 |
#[cfg(feature = "Win32_Foundation")] |
| 14 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CommConfigDialogA(lpszname : ::windows_sys::core::PCSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> super::super::Foundation:: BOOL); |
| 15 |
#[cfg(feature = "Win32_Foundation")] |
| 16 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CommConfigDialogW(lpszname : ::windows_sys::core::PCWSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> super::super::Foundation:: BOOL); |
| 17 |
#[cfg(feature = "Win32_Foundation")] |
| 18 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EscapeCommFunction(hfile : super::super::Foundation:: HANDLE, dwfunc : ESCAPE_COMM_FUNCTION) -> super::super::Foundation:: BOOL); |
| 19 |
#[cfg(feature = "Win32_Foundation")] |
| 20 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); |
| 21 |
#[cfg(feature = "Win32_Foundation")] |
| 22 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCommMask(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); |
| 23 |
#[cfg(feature = "Win32_Foundation")] |
| 24 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCommModemStatus(hfile : super::super::Foundation:: HANDLE, lpmodemstat : *mut MODEM_STATUS_FLAGS) -> super::super::Foundation:: BOOL); |
| 25 |
::windows_targets::link!("api-ms-win-core-comm-l1-1-2.dll" "system" fn GetCommPorts(lpportnumbers : *mut u32, uportnumberscount : u32, puportnumbersfound : *mut u32) -> u32); |
| 26 |
#[cfg(feature = "Win32_Foundation")] |
| 27 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCommProperties(hfile : super::super::Foundation:: HANDLE, lpcommprop : *mut COMMPROP) -> super::super::Foundation:: BOOL); |
| 28 |
#[cfg(feature = "Win32_Foundation")] |
| 29 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); |
| 30 |
#[cfg(feature = "Win32_Foundation")] |
| 31 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); |
| 32 |
#[cfg(feature = "Win32_Foundation")] |
| 33 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetDefaultCommConfigA(lpszname : ::windows_sys::core::PCSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); |
| 34 |
#[cfg(feature = "Win32_Foundation")] |
| 35 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetDefaultCommConfigW(lpszname : ::windows_sys::core::PCWSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); |
| 36 |
#[cfg(feature = "Win32_Foundation")] |
| 37 |
::windows_targets::link!("api-ms-win-core-comm-l1-1-1.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenCommPort(uportnumber : u32, dwdesiredaccess : u32, dwflagsandattributes : u32) -> super::super::Foundation:: HANDLE); |
| 38 |
#[cfg(feature = "Win32_Foundation")] |
| 39 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PurgeComm(hfile : super::super::Foundation:: HANDLE, dwflags : PURGE_COMM_FLAGS) -> super::super::Foundation:: BOOL); |
| 40 |
#[cfg(feature = "Win32_Foundation")] |
| 41 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); |
| 42 |
#[cfg(feature = "Win32_Foundation")] |
| 43 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); |
| 44 |
#[cfg(feature = "Win32_Foundation")] |
| 45 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetCommMask(hfile : super::super::Foundation:: HANDLE, dwevtmask : COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); |
| 46 |
#[cfg(feature = "Win32_Foundation")] |
| 47 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *const DCB) -> super::super::Foundation:: BOOL); |
| 48 |
#[cfg(feature = "Win32_Foundation")] |
| 49 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *const COMMTIMEOUTS) -> super::super::Foundation:: BOOL); |
| 50 |
#[cfg(feature = "Win32_Foundation")] |
| 51 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetDefaultCommConfigA(lpszname : ::windows_sys::core::PCSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); |
| 52 |
#[cfg(feature = "Win32_Foundation")] |
| 53 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetDefaultCommConfigW(lpszname : ::windows_sys::core::PCWSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); |
| 54 |
#[cfg(feature = "Win32_Foundation")] |
| 55 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetupComm(hfile : super::super::Foundation:: HANDLE, dwinqueue : u32, dwoutqueue : u32) -> super::super::Foundation:: BOOL); |
| 56 |
#[cfg(feature = "Win32_Foundation")] |
| 57 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn TransmitCommChar(hfile : super::super::Foundation:: HANDLE, cchar : u8) -> super::super::Foundation:: BOOL); |
| 58 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| 59 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] fn WaitCommEvent(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); |
| 60 |
pub const CE_BREAK: CLEAR_COMM_ERROR_FLAGS = 16u32; |
| 61 |
pub const CE_FRAME: CLEAR_COMM_ERROR_FLAGS = 8u32; |
| 62 |
pub const CE_OVERRUN: CLEAR_COMM_ERROR_FLAGS = 2u32; |
| 63 |
pub const CE_RXOVER: CLEAR_COMM_ERROR_FLAGS = 1u32; |
| 64 |
pub const CE_RXPARITY: CLEAR_COMM_ERROR_FLAGS = 4u32; |
| 65 |
pub const CLRBREAK: ESCAPE_COMM_FUNCTION = 9u32; |
| 66 |
pub const CLRDTR: ESCAPE_COMM_FUNCTION = 6u32; |
| 67 |
pub const CLRRTS: ESCAPE_COMM_FUNCTION = 4u32; |
| 68 |
pub const DIALOPTION_BILLING: MODEMDEVCAPS_DIAL_OPTIONS = 64u32; |
| 69 |
pub const DIALOPTION_DIALTONE: MODEMDEVCAPS_DIAL_OPTIONS = 256u32; |
| 70 |
pub const DIALOPTION_QUIET: MODEMDEVCAPS_DIAL_OPTIONS = 128u32; |
| 71 |
pub const EVENPARITY: DCB_PARITY = 2u8; |
| 72 |
pub const EV_BREAK: COMM_EVENT_MASK = 64u32; |
| 73 |
pub const EV_CTS: COMM_EVENT_MASK = 8u32; |
| 74 |
pub const EV_DSR: COMM_EVENT_MASK = 16u32; |
| 75 |
pub const EV_ERR: COMM_EVENT_MASK = 128u32; |
| 76 |
pub const EV_EVENT1: COMM_EVENT_MASK = 2048u32; |
| 77 |
pub const EV_EVENT2: COMM_EVENT_MASK = 4096u32; |
| 78 |
pub const EV_PERR: COMM_EVENT_MASK = 512u32; |
| 79 |
pub const EV_RING: COMM_EVENT_MASK = 256u32; |
| 80 |
pub const EV_RLSD: COMM_EVENT_MASK = 32u32; |
| 81 |
pub const EV_RX80FULL: COMM_EVENT_MASK = 1024u32; |
| 82 |
pub const EV_RXCHAR: COMM_EVENT_MASK = 1u32; |
| 83 |
pub const EV_RXFLAG: COMM_EVENT_MASK = 2u32; |
| 84 |
pub const EV_TXEMPTY: COMM_EVENT_MASK = 4u32; |
| 85 |
pub const MARKPARITY: DCB_PARITY = 3u8; |
| 86 |
pub const MAXLENGTH_NAI: u32 = 72u32; |
| 87 |
pub const MAXLENGTH_UICCDATASTORE: u32 = 10u32; |
| 88 |
pub const MDMSPKRFLAG_CALLSETUP: MODEMDEVCAPS_SPEAKER_MODE = 8u32; |
| 89 |
pub const MDMSPKRFLAG_DIAL: MODEMDEVCAPS_SPEAKER_MODE = 2u32; |
| 90 |
pub const MDMSPKRFLAG_OFF: MODEMDEVCAPS_SPEAKER_MODE = 1u32; |
| 91 |
pub const MDMSPKRFLAG_ON: MODEMDEVCAPS_SPEAKER_MODE = 4u32; |
| 92 |
pub const MDMSPKR_CALLSETUP: MODEMSETTINGS_SPEAKER_MODE = 8u32; |
| 93 |
pub const MDMSPKR_DIAL: MODEMSETTINGS_SPEAKER_MODE = 2u32; |
| 94 |
pub const MDMSPKR_OFF: MODEMSETTINGS_SPEAKER_MODE = 1u32; |
| 95 |
pub const MDMSPKR_ON: MODEMSETTINGS_SPEAKER_MODE = 4u32; |
| 96 |
pub const MDMVOLFLAG_HIGH: MODEMDEVCAPS_SPEAKER_VOLUME = 4u32; |
| 97 |
pub const MDMVOLFLAG_LOW: MODEMDEVCAPS_SPEAKER_VOLUME = 1u32; |
| 98 |
pub const MDMVOLFLAG_MEDIUM: MODEMDEVCAPS_SPEAKER_VOLUME = 2u32; |
| 99 |
pub const MDMVOL_HIGH: MODEM_SPEAKER_VOLUME = 2u32; |
| 100 |
pub const MDMVOL_LOW: MODEM_SPEAKER_VOLUME = 0u32; |
| 101 |
pub const MDMVOL_MEDIUM: MODEM_SPEAKER_VOLUME = 1u32; |
| 102 |
pub const MDM_ANALOG_RLP_OFF: u32 = 1u32; |
| 103 |
pub const MDM_ANALOG_RLP_ON: u32 = 0u32; |
| 104 |
pub const MDM_ANALOG_V34: u32 = 2u32; |
| 105 |
pub const MDM_AUTO_ML_2: u32 = 2u32; |
| 106 |
pub const MDM_AUTO_ML_DEFAULT: u32 = 0u32; |
| 107 |
pub const MDM_AUTO_ML_NONE: u32 = 1u32; |
| 108 |
pub const MDM_AUTO_SPEED_DEFAULT: u32 = 0u32; |
| 109 |
pub const MDM_BEARERMODE_ANALOG: u32 = 0u32; |
| 110 |
pub const MDM_BEARERMODE_GSM: u32 = 2u32; |
| 111 |
pub const MDM_BEARERMODE_ISDN: u32 = 1u32; |
| 112 |
pub const MDM_BLIND_DIAL: u32 = 512u32; |
| 113 |
pub const MDM_CCITT_OVERRIDE: u32 = 64u32; |
| 114 |
pub const MDM_CELLULAR: u32 = 8u32; |
| 115 |
pub const MDM_COMPRESSION: u32 = 1u32; |
| 116 |
pub const MDM_DIAGNOSTICS: u32 = 2048u32; |
| 117 |
pub const MDM_ERROR_CONTROL: u32 = 2u32; |
| 118 |
pub const MDM_FLOWCONTROL_HARD: u32 = 16u32; |
| 119 |
pub const MDM_FLOWCONTROL_SOFT: u32 = 32u32; |
| 120 |
pub const MDM_FORCED_EC: u32 = 4u32; |
| 121 |
pub const MDM_HDLCPPP_AUTH_CHAP: u32 = 3u32; |
| 122 |
pub const MDM_HDLCPPP_AUTH_DEFAULT: u32 = 0u32; |
| 123 |
pub const MDM_HDLCPPP_AUTH_MSCHAP: u32 = 4u32; |
| 124 |
pub const MDM_HDLCPPP_AUTH_NONE: u32 = 1u32; |
| 125 |
pub const MDM_HDLCPPP_AUTH_PAP: u32 = 2u32; |
| 126 |
pub const MDM_HDLCPPP_ML_2: u32 = 2u32; |
| 127 |
pub const MDM_HDLCPPP_ML_DEFAULT: u32 = 0u32; |
| 128 |
pub const MDM_HDLCPPP_ML_NONE: u32 = 1u32; |
| 129 |
pub const MDM_HDLCPPP_SPEED_56K: u32 = 2u32; |
| 130 |
pub const MDM_HDLCPPP_SPEED_64K: u32 = 1u32; |
| 131 |
pub const MDM_HDLCPPP_SPEED_DEFAULT: u32 = 0u32; |
| 132 |
pub const MDM_MASK_AUTO_SPEED: u32 = 7u32; |
| 133 |
pub const MDM_MASK_BEARERMODE: u32 = 61440u32; |
| 134 |
pub const MDM_MASK_HDLCPPP_SPEED: u32 = 7u32; |
| 135 |
pub const MDM_MASK_PROTOCOLDATA: u32 = 267386880u32; |
| 136 |
pub const MDM_MASK_PROTOCOLID: u32 = 983040u32; |
| 137 |
pub const MDM_MASK_V110_SPEED: u32 = 15u32; |
| 138 |
pub const MDM_MASK_V120_SPEED: u32 = 7u32; |
| 139 |
pub const MDM_MASK_X75_DATA: u32 = 7u32; |
| 140 |
pub const MDM_PIAFS_INCOMING: u32 = 0u32; |
| 141 |
pub const MDM_PIAFS_OUTGOING: u32 = 1u32; |
| 142 |
pub const MDM_PROTOCOLID_ANALOG: u32 = 7u32; |
| 143 |
pub const MDM_PROTOCOLID_AUTO: u32 = 6u32; |
| 144 |
pub const MDM_PROTOCOLID_DEFAULT: u32 = 0u32; |
| 145 |
pub const MDM_PROTOCOLID_GPRS: u32 = 8u32; |
| 146 |
pub const MDM_PROTOCOLID_HDLCPPP: u32 = 1u32; |
| 147 |
pub const MDM_PROTOCOLID_PIAFS: u32 = 9u32; |
| 148 |
pub const MDM_PROTOCOLID_V110: u32 = 4u32; |
| 149 |
pub const MDM_PROTOCOLID_V120: u32 = 5u32; |
| 150 |
pub const MDM_PROTOCOLID_V128: u32 = 2u32; |
| 151 |
pub const MDM_PROTOCOLID_X75: u32 = 3u32; |
| 152 |
pub const MDM_SHIFT_AUTO_ML: u32 = 6u32; |
| 153 |
pub const MDM_SHIFT_AUTO_SPEED: u32 = 0u32; |
| 154 |
pub const MDM_SHIFT_BEARERMODE: u32 = 12u32; |
| 155 |
pub const MDM_SHIFT_EXTENDEDINFO: u32 = 12u32; |
| 156 |
pub const MDM_SHIFT_HDLCPPP_AUTH: u32 = 3u32; |
| 157 |
pub const MDM_SHIFT_HDLCPPP_ML: u32 = 6u32; |
| 158 |
pub const MDM_SHIFT_HDLCPPP_SPEED: u32 = 0u32; |
| 159 |
pub const MDM_SHIFT_PROTOCOLDATA: u32 = 20u32; |
| 160 |
pub const MDM_SHIFT_PROTOCOLID: u32 = 16u32; |
| 161 |
pub const MDM_SHIFT_PROTOCOLINFO: u32 = 16u32; |
| 162 |
pub const MDM_SHIFT_V110_SPEED: u32 = 0u32; |
| 163 |
pub const MDM_SHIFT_V120_ML: u32 = 6u32; |
| 164 |
pub const MDM_SHIFT_V120_SPEED: u32 = 0u32; |
| 165 |
pub const MDM_SHIFT_X75_DATA: u32 = 0u32; |
| 166 |
pub const MDM_SPEED_ADJUST: u32 = 128u32; |
| 167 |
pub const MDM_TONE_DIAL: u32 = 256u32; |
| 168 |
pub const MDM_V110_SPEED_12DOT0K: u32 = 5u32; |
| 169 |
pub const MDM_V110_SPEED_14DOT4K: u32 = 6u32; |
| 170 |
pub const MDM_V110_SPEED_19DOT2K: u32 = 7u32; |
| 171 |
pub const MDM_V110_SPEED_1DOT2K: u32 = 1u32; |
| 172 |
pub const MDM_V110_SPEED_28DOT8K: u32 = 8u32; |
| 173 |
pub const MDM_V110_SPEED_2DOT4K: u32 = 2u32; |
| 174 |
pub const MDM_V110_SPEED_38DOT4K: u32 = 9u32; |
| 175 |
pub const MDM_V110_SPEED_4DOT8K: u32 = 3u32; |
| 176 |
pub const MDM_V110_SPEED_57DOT6K: u32 = 10u32; |
| 177 |
pub const MDM_V110_SPEED_9DOT6K: u32 = 4u32; |
| 178 |
pub const MDM_V110_SPEED_DEFAULT: u32 = 0u32; |
| 179 |
pub const MDM_V120_ML_2: u32 = 2u32; |
| 180 |
pub const MDM_V120_ML_DEFAULT: u32 = 0u32; |
| 181 |
pub const MDM_V120_ML_NONE: u32 = 1u32; |
| 182 |
pub const MDM_V120_SPEED_56K: u32 = 2u32; |
| 183 |
pub const MDM_V120_SPEED_64K: u32 = 1u32; |
| 184 |
pub const MDM_V120_SPEED_DEFAULT: u32 = 0u32; |
| 185 |
pub const MDM_V23_OVERRIDE: u32 = 1024u32; |
| 186 |
pub const MDM_X75_DATA_128K: u32 = 2u32; |
| 187 |
pub const MDM_X75_DATA_64K: u32 = 1u32; |
| 188 |
pub const MDM_X75_DATA_BTX: u32 = 4u32; |
| 189 |
pub const MDM_X75_DATA_DEFAULT: u32 = 0u32; |
| 190 |
pub const MDM_X75_DATA_T_70: u32 = 3u32; |
| 191 |
pub const MS_CTS_ON: MODEM_STATUS_FLAGS = 16u32; |
| 192 |
pub const MS_DSR_ON: MODEM_STATUS_FLAGS = 32u32; |
| 193 |
pub const MS_RING_ON: MODEM_STATUS_FLAGS = 64u32; |
| 194 |
pub const MS_RLSD_ON: MODEM_STATUS_FLAGS = 128u32; |
| 195 |
pub const NOPARITY: DCB_PARITY = 0u8; |
| 196 |
pub const ODDPARITY: DCB_PARITY = 1u8; |
| 197 |
pub const ONE5STOPBITS: DCB_STOP_BITS = 1u8; |
| 198 |
pub const ONESTOPBIT: DCB_STOP_BITS = 0u8; |
| 199 |
pub const PARITY_EVEN: COMMPROP_STOP_PARITY = 1024u16; |
| 200 |
pub const PARITY_MARK: COMMPROP_STOP_PARITY = 2048u16; |
| 201 |
pub const PARITY_NONE: COMMPROP_STOP_PARITY = 256u16; |
| 202 |
pub const PARITY_ODD: COMMPROP_STOP_PARITY = 512u16; |
| 203 |
pub const PARITY_SPACE: COMMPROP_STOP_PARITY = 4096u16; |
| 204 |
pub const PURGE_RXABORT: PURGE_COMM_FLAGS = 2u32; |
| 205 |
pub const PURGE_RXCLEAR: PURGE_COMM_FLAGS = 8u32; |
| 206 |
pub const PURGE_TXABORT: PURGE_COMM_FLAGS = 1u32; |
| 207 |
pub const PURGE_TXCLEAR: PURGE_COMM_FLAGS = 4u32; |
| 208 |
pub const SETBREAK: ESCAPE_COMM_FUNCTION = 8u32; |
| 209 |
pub const SETDTR: ESCAPE_COMM_FUNCTION = 5u32; |
| 210 |
pub const SETRTS: ESCAPE_COMM_FUNCTION = 3u32; |
| 211 |
pub const SETXOFF: ESCAPE_COMM_FUNCTION = 1u32; |
| 212 |
pub const SETXON: ESCAPE_COMM_FUNCTION = 2u32; |
| 213 |
pub const SID_3GPP_SUPSVCMODEL: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd7d08e07_d767_4478_b14a_eecc87ea12f7); |
| 214 |
pub const SPACEPARITY: DCB_PARITY = 4u8; |
| 215 |
pub const STOPBITS_10: COMMPROP_STOP_PARITY = 1u16; |
| 216 |
pub const STOPBITS_15: COMMPROP_STOP_PARITY = 2u16; |
| 217 |
pub const STOPBITS_20: COMMPROP_STOP_PARITY = 4u16; |
| 218 |
pub const TWOSTOPBITS: DCB_STOP_BITS = 2u8; |
| 219 |
pub type CLEAR_COMM_ERROR_FLAGS = u32; |
| 220 |
pub type COMMPROP_STOP_PARITY = u16; |
| 221 |
pub type COMM_EVENT_MASK = u32; |
| 222 |
pub type DCB_PARITY = u8; |
| 223 |
pub type DCB_STOP_BITS = u8; |
| 224 |
pub type ESCAPE_COMM_FUNCTION = u32; |
| 225 |
pub type MODEMDEVCAPS_DIAL_OPTIONS = u32; |
| 226 |
pub type MODEMDEVCAPS_SPEAKER_MODE = u32; |
| 227 |
pub type MODEMDEVCAPS_SPEAKER_VOLUME = u32; |
| 228 |
pub type MODEMSETTINGS_SPEAKER_MODE = u32; |
| 229 |
pub type MODEM_SPEAKER_VOLUME = u32; |
| 230 |
pub type MODEM_STATUS_FLAGS = u32; |
| 231 |
pub type PURGE_COMM_FLAGS = u32; |
| 232 |
#[repr(C)] |
| 233 |
pub struct COMMCONFIG { |
| 234 |
pub dwSize: u32, |
| 235 |
pub wVersion: u16, |
| 236 |
pub wReserved: u16, |
| 237 |
pub dcb: DCB, |
| 238 |
pub dwProviderSubType: u32, |
| 239 |
pub dwProviderOffset: u32, |
| 240 |
pub dwProviderSize: u32, |
| 241 |
pub wcProviderData: [u16; 1], |
| 242 |
} |
| 243 |
impl ::core::marker::Copy for COMMCONFIG {} |
| 244 |
impl ::core::clone::Clone for COMMCONFIG { |
| 245 |
fn clone(&self) -> Self { |
| 246 |
*self |
| 247 |
} |
| 248 |
} |
| 249 |
#[repr(C)] |
| 250 |
pub struct COMMPROP { |
| 251 |
pub wPacketLength: u16, |
| 252 |
pub wPacketVersion: u16, |
| 253 |
pub dwServiceMask: u32, |
| 254 |
pub dwReserved1: u32, |
| 255 |
pub dwMaxTxQueue: u32, |
| 256 |
pub dwMaxRxQueue: u32, |
| 257 |
pub dwMaxBaud: u32, |
| 258 |
pub dwProvSubType: u32, |
| 259 |
pub dwProvCapabilities: u32, |
| 260 |
pub dwSettableParams: u32, |
| 261 |
pub dwSettableBaud: u32, |
| 262 |
pub wSettableData: u16, |
| 263 |
pub wSettableStopParity: COMMPROP_STOP_PARITY, |
| 264 |
pub dwCurrentTxQueue: u32, |
| 265 |
pub dwCurrentRxQueue: u32, |
| 266 |
pub dwProvSpec1: u32, |
| 267 |
pub dwProvSpec2: u32, |
| 268 |
pub wcProvChar: [u16; 1], |
| 269 |
} |
| 270 |
impl ::core::marker::Copy for COMMPROP {} |
| 271 |
impl ::core::clone::Clone for COMMPROP { |
| 272 |
fn clone(&self) -> Self { |
| 273 |
*self |
| 274 |
} |
| 275 |
} |
| 276 |
#[repr(C)] |
| 277 |
pub struct COMMTIMEOUTS { |
| 278 |
pub ReadIntervalTimeout: u32, |
| 279 |
pub ReadTotalTimeoutMultiplier: u32, |
| 280 |
pub ReadTotalTimeoutConstant: u32, |
| 281 |
pub WriteTotalTimeoutMultiplier: u32, |
| 282 |
pub WriteTotalTimeoutConstant: u32, |
| 283 |
} |
| 284 |
impl ::core::marker::Copy for COMMTIMEOUTS {} |
| 285 |
impl ::core::clone::Clone for COMMTIMEOUTS { |
| 286 |
fn clone(&self) -> Self { |
| 287 |
*self |
| 288 |
} |
| 289 |
} |
| 290 |
#[repr(C)] |
| 291 |
pub struct COMSTAT { |
| 292 |
pub _bitfield: u32, |
| 293 |
pub cbInQue: u32, |
| 294 |
pub cbOutQue: u32, |
| 295 |
} |
| 296 |
impl ::core::marker::Copy for COMSTAT {} |
| 297 |
impl ::core::clone::Clone for COMSTAT { |
| 298 |
fn clone(&self) -> Self { |
| 299 |
*self |
| 300 |
} |
| 301 |
} |
| 302 |
#[repr(C)] |
| 303 |
pub struct DCB { |
| 304 |
pub DCBlength: u32, |
| 305 |
pub BaudRate: u32, |
| 306 |
pub _bitfield: u32, |
| 307 |
pub wReserved: u16, |
| 308 |
pub XonLim: u16, |
| 309 |
pub XoffLim: u16, |
| 310 |
pub ByteSize: u8, |
| 311 |
pub Parity: DCB_PARITY, |
| 312 |
pub StopBits: DCB_STOP_BITS, |
| 313 |
pub XonChar: u8, |
| 314 |
pub XoffChar: u8, |
| 315 |
pub ErrorChar: u8, |
| 316 |
pub EofChar: u8, |
| 317 |
pub EvtChar: u8, |
| 318 |
pub wReserved1: u16, |
| 319 |
} |
| 320 |
impl ::core::marker::Copy for DCB {} |
| 321 |
impl ::core::clone::Clone for DCB { |
| 322 |
fn clone(&self) -> Self { |
| 323 |
*self |
| 324 |
} |
| 325 |
} |
| 326 |
#[repr(C)] |
| 327 |
pub struct MODEMDEVCAPS { |
| 328 |
pub dwActualSize: u32, |
| 329 |
pub dwRequiredSize: u32, |
| 330 |
pub dwDevSpecificOffset: u32, |
| 331 |
pub dwDevSpecificSize: u32, |
| 332 |
pub dwModemProviderVersion: u32, |
| 333 |
pub dwModemManufacturerOffset: u32, |
| 334 |
pub dwModemManufacturerSize: u32, |
| 335 |
pub dwModemModelOffset: u32, |
| 336 |
pub dwModemModelSize: u32, |
| 337 |
pub dwModemVersionOffset: u32, |
| 338 |
pub dwModemVersionSize: u32, |
| 339 |
pub dwDialOptions: MODEMDEVCAPS_DIAL_OPTIONS, |
| 340 |
pub dwCallSetupFailTimer: u32, |
| 341 |
pub dwInactivityTimeout: u32, |
| 342 |
pub dwSpeakerVolume: MODEMDEVCAPS_SPEAKER_VOLUME, |
| 343 |
pub dwSpeakerMode: MODEMDEVCAPS_SPEAKER_MODE, |
| 344 |
pub dwModemOptions: u32, |
| 345 |
pub dwMaxDTERate: u32, |
| 346 |
pub dwMaxDCERate: u32, |
| 347 |
pub abVariablePortion: [u8; 1], |
| 348 |
} |
| 349 |
impl ::core::marker::Copy for MODEMDEVCAPS {} |
| 350 |
impl ::core::clone::Clone for MODEMDEVCAPS { |
| 351 |
fn clone(&self) -> Self { |
| 352 |
*self |
| 353 |
} |
| 354 |
} |
| 355 |
#[repr(C)] |
| 356 |
pub struct MODEMSETTINGS { |
| 357 |
pub dwActualSize: u32, |
| 358 |
pub dwRequiredSize: u32, |
| 359 |
pub dwDevSpecificOffset: u32, |
| 360 |
pub dwDevSpecificSize: u32, |
| 361 |
pub dwCallSetupFailTimer: u32, |
| 362 |
pub dwInactivityTimeout: u32, |
| 363 |
pub dwSpeakerVolume: MODEM_SPEAKER_VOLUME, |
| 364 |
pub dwSpeakerMode: MODEMSETTINGS_SPEAKER_MODE, |
| 365 |
pub dwPreferredModemOptions: u32, |
| 366 |
pub dwNegotiatedModemOptions: u32, |
| 367 |
pub dwNegotiatedDCERate: u32, |
| 368 |
pub abVariablePortion: [u8; 1], |
| 369 |
} |
| 370 |
impl ::core::marker::Copy for MODEMSETTINGS {} |
| 371 |
impl ::core::clone::Clone for MODEMSETTINGS { |
| 372 |
fn clone(&self) -> Self { |
| 373 |
*self |
| 374 |
} |
| 375 |
} |