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