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;
26 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
27 pub struct PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT
{
28 pub ActualPeriod
: u64,
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 {
37 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
38 pub struct PWM_CONTROLLER_INFO
{
41 pub MinimumPeriod
: u64,
42 pub MaximumPeriod
: u64,
44 impl ::core
::marker
::Copy
for PWM_CONTROLLER_INFO {}
45 impl ::core
::clone
::Clone
for PWM_CONTROLLER_INFO
{
46 fn clone(&self) -> Self {
51 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
52 pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT
{
53 pub DesiredPeriod
: u64,
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 {
62 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
63 pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT
{
64 pub ActualPeriod
: u64,
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 {
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;
93 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
94 pub struct PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT
{
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 {
104 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
105 pub struct PWM_PIN_GET_POLARITY_OUTPUT
{
106 pub Polarity
: PWM_POLARITY
,
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 {
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
,
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 {
129 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
130 pub struct PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT
{
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 {
140 #[doc = "*Required features: 'Win32_Devices_Pwm'*"]
141 pub struct PWM_PIN_SET_POLARITY_INPUT
{
142 pub Polarity
: PWM_POLARITY
,
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 {
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;