| 1 |
pub const GUID_DEVINTERFACE_PWM_CONTROLLER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x60824b4c_eed1_4c9c_b49c_1b961461a819); |
| 2 |
pub const GUID_DEVINTERFACE_PWM_CONTROLLER_WSZ: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("{60824B4C-EED1-4C9C-B49C-1B961461A819}"); |
| 3 |
pub const IOCTL_PWM_CONTROLLER_GET_ACTUAL_PERIOD: u32 = 262148u32; |
| 4 |
pub const IOCTL_PWM_CONTROLLER_GET_INFO: u32 = 262144u32; |
| 5 |
pub const IOCTL_PWM_CONTROLLER_SET_DESIRED_PERIOD: u32 = 294920u32; |
| 6 |
pub const IOCTL_PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 262544u32; |
| 7 |
pub const IOCTL_PWM_PIN_GET_POLARITY: u32 = 262552u32; |
| 8 |
pub const IOCTL_PWM_PIN_IS_STARTED: u32 = 262568u32; |
| 9 |
pub const IOCTL_PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 295316u32; |
| 10 |
pub const IOCTL_PWM_PIN_SET_POLARITY: u32 = 295324u32; |
| 11 |
pub const IOCTL_PWM_PIN_START: u32 = 295331u32; |
| 12 |
pub const IOCTL_PWM_PIN_STOP: u32 = 295335u32; |
| 13 |
pub const PWM_ACTIVE_HIGH: PWM_POLARITY = 0i32; |
| 14 |
pub const PWM_ACTIVE_LOW: PWM_POLARITY = 1i32; |
| 15 |
pub const PWM_IOCTL_ID_CONTROLLER_GET_ACTUAL_PERIOD: i32 = 1i32; |
| 16 |
pub const PWM_IOCTL_ID_CONTROLLER_GET_INFO: i32 = 0i32; |
| 17 |
pub const PWM_IOCTL_ID_CONTROLLER_SET_DESIRED_PERIOD: i32 = 2i32; |
| 18 |
pub const PWM_IOCTL_ID_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 100i32; |
| 19 |
pub const PWM_IOCTL_ID_PIN_GET_POLARITY: i32 = 102i32; |
| 20 |
pub const PWM_IOCTL_ID_PIN_IS_STARTED: i32 = 106i32; |
| 21 |
pub const PWM_IOCTL_ID_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 101i32; |
| 22 |
pub const PWM_IOCTL_ID_PIN_SET_POLARITY: i32 = 103i32; |
| 23 |
pub const PWM_IOCTL_ID_PIN_START: i32 = 104i32; |
| 24 |
pub const PWM_IOCTL_ID_PIN_STOP: i32 = 105i32; |
| 25 |
pub type PWM_POLARITY = i32; |
| 26 |
#[repr(C)] |
| 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 |
pub struct PWM_CONTROLLER_INFO { |
| 38 |
pub Size: usize, |
| 39 |
pub PinCount: u32, |
| 40 |
pub MinimumPeriod: u64, |
| 41 |
pub MaximumPeriod: u64, |
| 42 |
} |
| 43 |
impl ::core::marker::Copy for PWM_CONTROLLER_INFO {} |
| 44 |
impl ::core::clone::Clone for PWM_CONTROLLER_INFO { |
| 45 |
fn clone(&self) -> Self { |
| 46 |
*self |
| 47 |
} |
| 48 |
} |
| 49 |
#[repr(C)] |
| 50 |
pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT { |
| 51 |
pub DesiredPeriod: u64, |
| 52 |
} |
| 53 |
impl ::core::marker::Copy for PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT {} |
| 54 |
impl ::core::clone::Clone for PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT { |
| 55 |
fn clone(&self) -> Self { |
| 56 |
*self |
| 57 |
} |
| 58 |
} |
| 59 |
#[repr(C)] |
| 60 |
pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT { |
| 61 |
pub ActualPeriod: u64, |
| 62 |
} |
| 63 |
impl ::core::marker::Copy for PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT {} |
| 64 |
impl ::core::clone::Clone for PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT { |
| 65 |
fn clone(&self) -> Self { |
| 66 |
*self |
| 67 |
} |
| 68 |
} |
| 69 |
#[repr(C)] |
| 70 |
pub struct PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT { |
| 71 |
pub Percentage: u64, |
| 72 |
} |
| 73 |
impl ::core::marker::Copy for PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT {} |
| 74 |
impl ::core::clone::Clone for PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT { |
| 75 |
fn clone(&self) -> Self { |
| 76 |
*self |
| 77 |
} |
| 78 |
} |
| 79 |
#[repr(C)] |
| 80 |
pub struct PWM_PIN_GET_POLARITY_OUTPUT { |
| 81 |
pub Polarity: PWM_POLARITY, |
| 82 |
} |
| 83 |
impl ::core::marker::Copy for PWM_PIN_GET_POLARITY_OUTPUT {} |
| 84 |
impl ::core::clone::Clone for PWM_PIN_GET_POLARITY_OUTPUT { |
| 85 |
fn clone(&self) -> Self { |
| 86 |
*self |
| 87 |
} |
| 88 |
} |
| 89 |
#[repr(C)] |
| 90 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 91 |
#[cfg(feature = "Win32_Foundation")] |
| 92 |
pub struct PWM_PIN_IS_STARTED_OUTPUT { |
| 93 |
pub IsStarted: super::super::Foundation::BOOLEAN, |
| 94 |
} |
| 95 |
#[cfg(feature = "Win32_Foundation")] |
| 96 |
impl ::core::marker::Copy for PWM_PIN_IS_STARTED_OUTPUT {} |
| 97 |
#[cfg(feature = "Win32_Foundation")] |
| 98 |
impl ::core::clone::Clone for PWM_PIN_IS_STARTED_OUTPUT { |
| 99 |
fn clone(&self) -> Self { |
| 100 |
*self |
| 101 |
} |
| 102 |
} |
| 103 |
#[repr(C)] |
| 104 |
pub struct PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT { |
| 105 |
pub Percentage: u64, |
| 106 |
} |
| 107 |
impl ::core::marker::Copy for PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT {} |
| 108 |
impl ::core::clone::Clone for PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT { |
| 109 |
fn clone(&self) -> Self { |
| 110 |
*self |
| 111 |
} |
| 112 |
} |
| 113 |
#[repr(C)] |
| 114 |
pub struct PWM_PIN_SET_POLARITY_INPUT { |
| 115 |
pub Polarity: PWM_POLARITY, |
| 116 |
} |
| 117 |
impl ::core::marker::Copy for PWM_PIN_SET_POLARITY_INPUT {} |
| 118 |
impl ::core::clone::Clone for PWM_PIN_SET_POLARITY_INPUT { |
| 119 |
fn clone(&self) -> Self { |
| 120 |
*self |
| 121 |
} |
| 122 |
} |