]>
Commit | Line | Data |
---|---|---|
5e7ed085 | 1 | pub const GUID_DEVINTERFACE_PWM_CONTROLLER: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1619151692, data2: 61137, data3: 19612, data4: [180, 156, 27, 150, 20, 97, 168, 25] }; |
04454e1e | 2 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
923072b8 | 3 | pub const GUID_DEVINTERFACE_PWM_CONTROLLER_WSZ: &str = "{60824B4C-EED1-4C9C-B49C-1B961461A819}"; |
04454e1e | 4 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 5 | pub const IOCTL_PWM_CONTROLLER_GET_ACTUAL_PERIOD: u32 = 262148u32; |
04454e1e | 6 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 7 | pub const IOCTL_PWM_CONTROLLER_GET_INFO: u32 = 262144u32; |
04454e1e | 8 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 9 | pub const IOCTL_PWM_CONTROLLER_SET_DESIRED_PERIOD: u32 = 294920u32; |
04454e1e | 10 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 11 | pub const IOCTL_PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 262544u32; |
04454e1e | 12 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 13 | pub const IOCTL_PWM_PIN_GET_POLARITY: u32 = 262552u32; |
04454e1e | 14 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 15 | pub const IOCTL_PWM_PIN_IS_STARTED: u32 = 262568u32; |
04454e1e | 16 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 17 | pub const IOCTL_PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 295316u32; |
04454e1e | 18 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 19 | pub const IOCTL_PWM_PIN_SET_POLARITY: u32 = 295324u32; |
04454e1e | 20 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 21 | pub const IOCTL_PWM_PIN_START: u32 = 295331u32; |
04454e1e | 22 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 | 23 | pub const IOCTL_PWM_PIN_STOP: u32 = 295335u32; |
487cf647 FG |
24 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
25 | pub const PWM_IOCTL_ID_CONTROLLER_GET_ACTUAL_PERIOD: i32 = 1i32; | |
26 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
27 | pub const PWM_IOCTL_ID_CONTROLLER_GET_INFO: i32 = 0i32; | |
28 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
29 | pub const PWM_IOCTL_ID_CONTROLLER_SET_DESIRED_PERIOD: i32 = 2i32; | |
30 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
31 | pub const PWM_IOCTL_ID_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 100i32; | |
32 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
33 | pub const PWM_IOCTL_ID_PIN_GET_POLARITY: i32 = 102i32; | |
34 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
35 | pub const PWM_IOCTL_ID_PIN_IS_STARTED: i32 = 106i32; | |
36 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
37 | pub const PWM_IOCTL_ID_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 101i32; | |
38 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
39 | pub const PWM_IOCTL_ID_PIN_SET_POLARITY: i32 = 103i32; | |
40 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
41 | pub const PWM_IOCTL_ID_PIN_START: i32 = 104i32; | |
42 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
43 | pub const PWM_IOCTL_ID_PIN_STOP: i32 = 105i32; | |
44 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
45 | pub type PWM_POLARITY = i32; | |
46 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
47 | pub const PWM_ACTIVE_HIGH: PWM_POLARITY = 0i32; | |
48 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] | |
49 | pub const PWM_ACTIVE_LOW: PWM_POLARITY = 1i32; | |
5e7ed085 | 50 | #[repr(C)] |
04454e1e | 51 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
52 | pub struct PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT { |
53 | pub ActualPeriod: u64, | |
54 | } | |
55 | impl ::core::marker::Copy for PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT {} | |
56 | impl ::core::clone::Clone for PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT { | |
57 | fn clone(&self) -> Self { | |
58 | *self | |
59 | } | |
60 | } | |
61 | #[repr(C)] | |
04454e1e | 62 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
63 | pub struct PWM_CONTROLLER_INFO { |
64 | pub Size: usize, | |
65 | pub PinCount: u32, | |
66 | pub MinimumPeriod: u64, | |
67 | pub MaximumPeriod: u64, | |
68 | } | |
69 | impl ::core::marker::Copy for PWM_CONTROLLER_INFO {} | |
70 | impl ::core::clone::Clone for PWM_CONTROLLER_INFO { | |
71 | fn clone(&self) -> Self { | |
72 | *self | |
73 | } | |
74 | } | |
75 | #[repr(C)] | |
04454e1e | 76 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
77 | pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT { |
78 | pub DesiredPeriod: u64, | |
79 | } | |
80 | impl ::core::marker::Copy for PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT {} | |
81 | impl ::core::clone::Clone for PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT { | |
82 | fn clone(&self) -> Self { | |
83 | *self | |
84 | } | |
85 | } | |
86 | #[repr(C)] | |
04454e1e | 87 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
88 | pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT { |
89 | pub ActualPeriod: u64, | |
90 | } | |
91 | impl ::core::marker::Copy for PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT {} | |
92 | impl ::core::clone::Clone for PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT { | |
93 | fn clone(&self) -> Self { | |
94 | *self | |
95 | } | |
96 | } | |
5e7ed085 | 97 | #[repr(C)] |
04454e1e | 98 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
99 | pub struct PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT { |
100 | pub Percentage: u64, | |
101 | } | |
102 | impl ::core::marker::Copy for PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT {} | |
103 | impl ::core::clone::Clone for PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT { | |
104 | fn clone(&self) -> Self { | |
105 | *self | |
106 | } | |
107 | } | |
108 | #[repr(C)] | |
04454e1e | 109 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
110 | pub struct PWM_PIN_GET_POLARITY_OUTPUT { |
111 | pub Polarity: PWM_POLARITY, | |
112 | } | |
113 | impl ::core::marker::Copy for PWM_PIN_GET_POLARITY_OUTPUT {} | |
114 | impl ::core::clone::Clone for PWM_PIN_GET_POLARITY_OUTPUT { | |
115 | fn clone(&self) -> Self { | |
116 | *self | |
117 | } | |
118 | } | |
119 | #[repr(C)] | |
04454e1e | 120 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
121 | #[cfg(feature = "Win32_Foundation")] |
122 | pub struct PWM_PIN_IS_STARTED_OUTPUT { | |
123 | pub IsStarted: super::super::Foundation::BOOLEAN, | |
124 | } | |
125 | #[cfg(feature = "Win32_Foundation")] | |
126 | impl ::core::marker::Copy for PWM_PIN_IS_STARTED_OUTPUT {} | |
127 | #[cfg(feature = "Win32_Foundation")] | |
128 | impl ::core::clone::Clone for PWM_PIN_IS_STARTED_OUTPUT { | |
129 | fn clone(&self) -> Self { | |
130 | *self | |
131 | } | |
132 | } | |
133 | #[repr(C)] | |
04454e1e | 134 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
135 | pub struct PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT { |
136 | pub Percentage: u64, | |
137 | } | |
138 | impl ::core::marker::Copy for PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT {} | |
139 | impl ::core::clone::Clone for PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT { | |
140 | fn clone(&self) -> Self { | |
141 | *self | |
142 | } | |
143 | } | |
144 | #[repr(C)] | |
04454e1e | 145 | #[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"] |
5e7ed085 FG |
146 | pub struct PWM_PIN_SET_POLARITY_INPUT { |
147 | pub Polarity: PWM_POLARITY, | |
148 | } | |
149 | impl ::core::marker::Copy for PWM_PIN_SET_POLARITY_INPUT {} | |
150 | impl ::core::clone::Clone for PWM_PIN_SET_POLARITY_INPUT { | |
151 | fn clone(&self) -> Self { | |
152 | *self | |
153 | } | |
154 | } |