]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Win32/Devices/Pwm/mod.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / Devices / Pwm / mod.rs
CommitLineData
5e7ed085 1pub 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 3pub const GUID_DEVINTERFACE_PWM_CONTROLLER_WSZ: &str = "{60824B4C-EED1-4C9C-B49C-1B961461A819}";
04454e1e 4#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 5pub const IOCTL_PWM_CONTROLLER_GET_ACTUAL_PERIOD: u32 = 262148u32;
04454e1e 6#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 7pub const IOCTL_PWM_CONTROLLER_GET_INFO: u32 = 262144u32;
04454e1e 8#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 9pub const IOCTL_PWM_CONTROLLER_SET_DESIRED_PERIOD: u32 = 294920u32;
04454e1e 10#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 11pub const IOCTL_PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 262544u32;
04454e1e 12#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 13pub const IOCTL_PWM_PIN_GET_POLARITY: u32 = 262552u32;
04454e1e 14#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 15pub const IOCTL_PWM_PIN_IS_STARTED: u32 = 262568u32;
04454e1e 16#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 17pub const IOCTL_PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 295316u32;
04454e1e 18#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 19pub const IOCTL_PWM_PIN_SET_POLARITY: u32 = 295324u32;
04454e1e 20#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 21pub const IOCTL_PWM_PIN_START: u32 = 295331u32;
04454e1e 22#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085 23pub const IOCTL_PWM_PIN_STOP: u32 = 295335u32;
487cf647
FG
24#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
25pub const PWM_IOCTL_ID_CONTROLLER_GET_ACTUAL_PERIOD: i32 = 1i32;
26#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
27pub const PWM_IOCTL_ID_CONTROLLER_GET_INFO: i32 = 0i32;
28#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
29pub const PWM_IOCTL_ID_CONTROLLER_SET_DESIRED_PERIOD: i32 = 2i32;
30#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
31pub const PWM_IOCTL_ID_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 100i32;
32#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
33pub const PWM_IOCTL_ID_PIN_GET_POLARITY: i32 = 102i32;
34#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
35pub const PWM_IOCTL_ID_PIN_IS_STARTED: i32 = 106i32;
36#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
37pub const PWM_IOCTL_ID_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 101i32;
38#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
39pub const PWM_IOCTL_ID_PIN_SET_POLARITY: i32 = 103i32;
40#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
41pub const PWM_IOCTL_ID_PIN_START: i32 = 104i32;
42#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
43pub const PWM_IOCTL_ID_PIN_STOP: i32 = 105i32;
44#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
45pub type PWM_POLARITY = i32;
46#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
47pub const PWM_ACTIVE_HIGH: PWM_POLARITY = 0i32;
48#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
49pub const PWM_ACTIVE_LOW: PWM_POLARITY = 1i32;
5e7ed085 50#[repr(C)]
04454e1e 51#[doc = "*Required features: `\"Win32_Devices_Pwm\"`*"]
5e7ed085
FG
52pub struct PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT {
53 pub ActualPeriod: u64,
54}
55impl ::core::marker::Copy for PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT {}
56impl ::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
63pub struct PWM_CONTROLLER_INFO {
64 pub Size: usize,
65 pub PinCount: u32,
66 pub MinimumPeriod: u64,
67 pub MaximumPeriod: u64,
68}
69impl ::core::marker::Copy for PWM_CONTROLLER_INFO {}
70impl ::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
77pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT {
78 pub DesiredPeriod: u64,
79}
80impl ::core::marker::Copy for PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT {}
81impl ::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
88pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT {
89 pub ActualPeriod: u64,
90}
91impl ::core::marker::Copy for PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT {}
92impl ::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
99pub struct PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT {
100 pub Percentage: u64,
101}
102impl ::core::marker::Copy for PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT {}
103impl ::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
110pub struct PWM_PIN_GET_POLARITY_OUTPUT {
111 pub Polarity: PWM_POLARITY,
112}
113impl ::core::marker::Copy for PWM_PIN_GET_POLARITY_OUTPUT {}
114impl ::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")]
122pub struct PWM_PIN_IS_STARTED_OUTPUT {
123 pub IsStarted: super::super::Foundation::BOOLEAN,
124}
125#[cfg(feature = "Win32_Foundation")]
126impl ::core::marker::Copy for PWM_PIN_IS_STARTED_OUTPUT {}
127#[cfg(feature = "Win32_Foundation")]
128impl ::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
135pub struct PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT {
136 pub Percentage: u64,
137}
138impl ::core::marker::Copy for PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT {}
139impl ::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
146pub struct PWM_PIN_SET_POLARITY_INPUT {
147 pub Polarity: PWM_POLARITY,
148}
149impl ::core::marker::Copy for PWM_PIN_SET_POLARITY_INPUT {}
150impl ::core::clone::Clone for PWM_PIN_SET_POLARITY_INPUT {
151 fn clone(&self) -> Self {
152 *self
153 }
154}