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