]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Devices/Gpio/Provider/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Devices / Gpio / Provider / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 pub type GpioPinProviderValueChangedEventArgs = *mut ::core::ffi::c_void;
3 pub type IGpioControllerProvider = *mut ::core::ffi::c_void;
4 pub type IGpioPinProvider = *mut ::core::ffi::c_void;
5 pub type IGpioProvider = *mut ::core::ffi::c_void;
6 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
7 #[repr(transparent)]
8 pub struct ProviderGpioPinDriveMode(pub i32);
9 impl ProviderGpioPinDriveMode {
10 pub const Input: Self = Self(0i32);
11 pub const Output: Self = Self(1i32);
12 pub const InputPullUp: Self = Self(2i32);
13 pub const InputPullDown: Self = Self(3i32);
14 pub const OutputOpenDrain: Self = Self(4i32);
15 pub const OutputOpenDrainPullUp: Self = Self(5i32);
16 pub const OutputOpenSource: Self = Self(6i32);
17 pub const OutputOpenSourcePullDown: Self = Self(7i32);
18 }
19 impl ::core::marker::Copy for ProviderGpioPinDriveMode {}
20 impl ::core::clone::Clone for ProviderGpioPinDriveMode {
21 fn clone(&self) -> Self {
22 *self
23 }
24 }
25 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
26 #[repr(transparent)]
27 pub struct ProviderGpioPinEdge(pub i32);
28 impl ProviderGpioPinEdge {
29 pub const FallingEdge: Self = Self(0i32);
30 pub const RisingEdge: Self = Self(1i32);
31 }
32 impl ::core::marker::Copy for ProviderGpioPinEdge {}
33 impl ::core::clone::Clone for ProviderGpioPinEdge {
34 fn clone(&self) -> Self {
35 *self
36 }
37 }
38 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
39 #[repr(transparent)]
40 pub struct ProviderGpioPinValue(pub i32);
41 impl ProviderGpioPinValue {
42 pub const Low: Self = Self(0i32);
43 pub const High: Self = Self(1i32);
44 }
45 impl ::core::marker::Copy for ProviderGpioPinValue {}
46 impl ::core::clone::Clone for ProviderGpioPinValue {
47 fn clone(&self) -> Self {
48 *self
49 }
50 }
51 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
52 #[repr(transparent)]
53 pub struct ProviderGpioSharingMode(pub i32);
54 impl ProviderGpioSharingMode {
55 pub const Exclusive: Self = Self(0i32);
56 pub const SharedReadOnly: Self = Self(1i32);
57 }
58 impl ::core::marker::Copy for ProviderGpioSharingMode {}
59 impl ::core::clone::Clone for ProviderGpioSharingMode {
60 fn clone(&self) -> Self {
61 *self
62 }
63 }