1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 pub type GpioPinProviderValueChangedEventArgs
= *mut ::core
::ffi
::c_void
;
3 pub type IGpioControllerProvider
= *mut ::core
::ffi
::c_void
;
4 pub type IGpioPinProvider
= *mut ::core
::ffi
::c_void
;
5 pub type IGpioProvider
= *mut ::core
::ffi
::c_void
;
6 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
8 pub struct ProviderGpioPinDriveMode(pub i32);
9 impl ProviderGpioPinDriveMode
{
10 pub const Input
: Self = Self(0i32);
11 pub const Output
: Self = Self(1i32);
12 pub const InputPullUp
: Self = Self(2i32);
13 pub const InputPullDown
: Self = Self(3i32);
14 pub const OutputOpenDrain
: Self = Self(4i32);
15 pub const OutputOpenDrainPullUp
: Self = Self(5i32);
16 pub const OutputOpenSource
: Self = Self(6i32);
17 pub const OutputOpenSourcePullDown
: Self = Self(7i32);
19 impl ::core
::marker
::Copy
for ProviderGpioPinDriveMode {}
20 impl ::core
::clone
::Clone
for ProviderGpioPinDriveMode
{
21 fn clone(&self) -> Self {
25 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
27 pub struct ProviderGpioPinEdge(pub i32);
28 impl ProviderGpioPinEdge
{
29 pub const FallingEdge
: Self = Self(0i32);
30 pub const RisingEdge
: Self = Self(1i32);
32 impl ::core
::marker
::Copy
for ProviderGpioPinEdge {}
33 impl ::core
::clone
::Clone
for ProviderGpioPinEdge
{
34 fn clone(&self) -> Self {
38 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
40 pub struct ProviderGpioPinValue(pub i32);
41 impl ProviderGpioPinValue
{
42 pub const Low
: Self = Self(0i32);
43 pub const High
: Self = Self(1i32);
45 impl ::core
::marker
::Copy
for ProviderGpioPinValue {}
46 impl ::core
::clone
::Clone
for ProviderGpioPinValue
{
47 fn clone(&self) -> Self {
51 #[doc = "*Required features: 'Devices_Gpio_Provider'*"]
53 pub struct ProviderGpioSharingMode(pub i32);
54 impl ProviderGpioSharingMode
{
55 pub const Exclusive
: Self = Self(0i32);
56 pub const SharedReadOnly
: Self = Self(1i32);
58 impl ::core
::marker
::Copy
for ProviderGpioSharingMode {}
59 impl ::core
::clone
::Clone
for ProviderGpioSharingMode
{
60 fn clone(&self) -> Self {