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