diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
commit | 5363f350887b1e5b5dd21a86f88c8af9d7fea6da (patch) | |
tree | 35ca005eb6e0e9a1ba3bb5dbc033209ad445dc17 /vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio | |
parent | Adding debian version 1.66.0+dfsg1-1. (diff) | |
download | rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.tar.xz rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.zip |
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio')
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/Provider/mod.rs | 61 | ||||
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/mod.rs | 120 |
2 files changed, 0 insertions, 181 deletions
diff --git a/vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/Provider/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/Provider/mod.rs deleted file mode 100644 index 06d03346e..000000000 --- a/vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/Provider/mod.rs +++ /dev/null @@ -1,61 +0,0 @@ -#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] -#[link(name = "windows")] -extern "system" {} -pub type GpioPinProviderValueChangedEventArgs = *mut ::core::ffi::c_void; -pub type IGpioControllerProvider = *mut ::core::ffi::c_void; -pub type IGpioPinProvider = *mut ::core::ffi::c_void; -pub type IGpioProvider = *mut ::core::ffi::c_void; -#[repr(transparent)] -pub struct ProviderGpioPinDriveMode(pub i32); -impl ProviderGpioPinDriveMode { - pub const Input: Self = Self(0i32); - pub const Output: Self = Self(1i32); - pub const InputPullUp: Self = Self(2i32); - pub const InputPullDown: Self = Self(3i32); - pub const OutputOpenDrain: Self = Self(4i32); - pub const OutputOpenDrainPullUp: Self = Self(5i32); - pub const OutputOpenSource: Self = Self(6i32); - pub const OutputOpenSourcePullDown: Self = Self(7i32); -} -impl ::core::marker::Copy for ProviderGpioPinDriveMode {} -impl ::core::clone::Clone for ProviderGpioPinDriveMode { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct ProviderGpioPinEdge(pub i32); -impl ProviderGpioPinEdge { - pub const FallingEdge: Self = Self(0i32); - pub const RisingEdge: Self = Self(1i32); -} -impl ::core::marker::Copy for ProviderGpioPinEdge {} -impl ::core::clone::Clone for ProviderGpioPinEdge { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct ProviderGpioPinValue(pub i32); -impl ProviderGpioPinValue { - pub const Low: Self = Self(0i32); - pub const High: Self = Self(1i32); -} -impl ::core::marker::Copy for ProviderGpioPinValue {} -impl ::core::clone::Clone for ProviderGpioPinValue { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct ProviderGpioSharingMode(pub i32); -impl ProviderGpioSharingMode { - pub const Exclusive: Self = Self(0i32); - pub const SharedReadOnly: Self = Self(1i32); -} -impl ::core::marker::Copy for ProviderGpioSharingMode {} -impl ::core::clone::Clone for ProviderGpioSharingMode { - fn clone(&self) -> Self { - *self - } -} diff --git a/vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/mod.rs deleted file mode 100644 index 7aa81f990..000000000 --- a/vendor/windows-sys-0.28.0/src/Windows/Devices/Gpio/mod.rs +++ /dev/null @@ -1,120 +0,0 @@ -#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] -#[cfg(feature = "Devices_Gpio_Provider")] -pub mod Provider; -#[link(name = "windows")] -extern "system" {} -#[repr(C)] -#[cfg(feature = "Foundation")] -pub struct GpioChangeCount { - pub Count: u64, - pub RelativeTime: super::super::Foundation::TimeSpan, -} -#[cfg(feature = "Foundation")] -impl ::core::marker::Copy for GpioChangeCount {} -#[cfg(feature = "Foundation")] -impl ::core::clone::Clone for GpioChangeCount { - fn clone(&self) -> Self { - *self - } -} -pub type GpioChangeCounter = *mut ::core::ffi::c_void; -#[repr(transparent)] -pub struct GpioChangePolarity(pub i32); -impl GpioChangePolarity { - pub const Falling: Self = Self(0i32); - pub const Rising: Self = Self(1i32); - pub const Both: Self = Self(2i32); -} -impl ::core::marker::Copy for GpioChangePolarity {} -impl ::core::clone::Clone for GpioChangePolarity { - fn clone(&self) -> Self { - *self - } -} -pub type GpioChangeReader = *mut ::core::ffi::c_void; -#[repr(C)] -#[cfg(feature = "Foundation")] -pub struct GpioChangeRecord { - pub RelativeTime: super::super::Foundation::TimeSpan, - pub Edge: GpioPinEdge, -} -#[cfg(feature = "Foundation")] -impl ::core::marker::Copy for GpioChangeRecord {} -#[cfg(feature = "Foundation")] -impl ::core::clone::Clone for GpioChangeRecord { - fn clone(&self) -> Self { - *self - } -} -pub type GpioController = *mut ::core::ffi::c_void; -#[repr(transparent)] -pub struct GpioOpenStatus(pub i32); -impl GpioOpenStatus { - pub const PinOpened: Self = Self(0i32); - pub const PinUnavailable: Self = Self(1i32); - pub const SharingViolation: Self = Self(2i32); - pub const MuxingConflict: Self = Self(3i32); - pub const UnknownError: Self = Self(4i32); -} -impl ::core::marker::Copy for GpioOpenStatus {} -impl ::core::clone::Clone for GpioOpenStatus { - fn clone(&self) -> Self { - *self - } -} -pub type GpioPin = *mut ::core::ffi::c_void; -#[repr(transparent)] -pub struct GpioPinDriveMode(pub i32); -impl GpioPinDriveMode { - pub const Input: Self = Self(0i32); - pub const Output: Self = Self(1i32); - pub const InputPullUp: Self = Self(2i32); - pub const InputPullDown: Self = Self(3i32); - pub const OutputOpenDrain: Self = Self(4i32); - pub const OutputOpenDrainPullUp: Self = Self(5i32); - pub const OutputOpenSource: Self = Self(6i32); - pub const OutputOpenSourcePullDown: Self = Self(7i32); -} -impl ::core::marker::Copy for GpioPinDriveMode {} -impl ::core::clone::Clone for GpioPinDriveMode { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct GpioPinEdge(pub i32); -impl GpioPinEdge { - pub const FallingEdge: Self = Self(0i32); - pub const RisingEdge: Self = Self(1i32); -} -impl ::core::marker::Copy for GpioPinEdge {} -impl ::core::clone::Clone for GpioPinEdge { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct GpioPinValue(pub i32); -impl GpioPinValue { - pub const Low: Self = Self(0i32); - pub const High: Self = Self(1i32); -} -impl ::core::marker::Copy for GpioPinValue {} -impl ::core::clone::Clone for GpioPinValue { - fn clone(&self) -> Self { - *self - } -} -pub type GpioPinValueChangedEventArgs = *mut ::core::ffi::c_void; -#[repr(transparent)] -pub struct GpioSharingMode(pub i32); -impl GpioSharingMode { - pub const Exclusive: Self = Self(0i32); - pub const SharedReadOnly: Self = Self(1i32); -} -impl ::core::marker::Copy for GpioSharingMode {} -impl ::core::clone::Clone for GpioSharingMode { - fn clone(&self) -> Self { - *self - } -} |