summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys/src/Windows/Devices/Spi
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /vendor/windows-sys/src/Windows/Devices/Spi
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Devices/Spi')
-rw-r--r--vendor/windows-sys/src/Windows/Devices/Spi/Provider/mod.rs32
-rw-r--r--vendor/windows-sys/src/Windows/Devices/Spi/mod.rs35
2 files changed, 67 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Devices/Spi/Provider/mod.rs b/vendor/windows-sys/src/Windows/Devices/Spi/Provider/mod.rs
new file mode 100644
index 000000000..d1d28e99f
--- /dev/null
+++ b/vendor/windows-sys/src/Windows/Devices/Spi/Provider/mod.rs
@@ -0,0 +1,32 @@
+pub type ISpiControllerProvider = *mut ::core::ffi::c_void;
+pub type ISpiDeviceProvider = *mut ::core::ffi::c_void;
+pub type ISpiProvider = *mut ::core::ffi::c_void;
+pub type ProviderSpiConnectionSettings = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"Devices_Spi_Provider\"`*"]
+#[repr(transparent)]
+pub struct ProviderSpiMode(pub i32);
+impl ProviderSpiMode {
+ pub const Mode0: Self = Self(0i32);
+ pub const Mode1: Self = Self(1i32);
+ pub const Mode2: Self = Self(2i32);
+ pub const Mode3: Self = Self(3i32);
+}
+impl ::core::marker::Copy for ProviderSpiMode {}
+impl ::core::clone::Clone for ProviderSpiMode {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[doc = "*Required features: `\"Devices_Spi_Provider\"`*"]
+#[repr(transparent)]
+pub struct ProviderSpiSharingMode(pub i32);
+impl ProviderSpiSharingMode {
+ pub const Exclusive: Self = Self(0i32);
+ pub const Shared: Self = Self(1i32);
+}
+impl ::core::marker::Copy for ProviderSpiSharingMode {}
+impl ::core::clone::Clone for ProviderSpiSharingMode {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
diff --git a/vendor/windows-sys/src/Windows/Devices/Spi/mod.rs b/vendor/windows-sys/src/Windows/Devices/Spi/mod.rs
new file mode 100644
index 000000000..772c9e75e
--- /dev/null
+++ b/vendor/windows-sys/src/Windows/Devices/Spi/mod.rs
@@ -0,0 +1,35 @@
+#[cfg(feature = "Devices_Spi_Provider")]
+pub mod Provider;
+pub type ISpiDeviceStatics = *mut ::core::ffi::c_void;
+pub type SpiBusInfo = *mut ::core::ffi::c_void;
+pub type SpiConnectionSettings = *mut ::core::ffi::c_void;
+pub type SpiController = *mut ::core::ffi::c_void;
+pub type SpiDevice = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"Devices_Spi\"`*"]
+#[repr(transparent)]
+pub struct SpiMode(pub i32);
+impl SpiMode {
+ pub const Mode0: Self = Self(0i32);
+ pub const Mode1: Self = Self(1i32);
+ pub const Mode2: Self = Self(2i32);
+ pub const Mode3: Self = Self(3i32);
+}
+impl ::core::marker::Copy for SpiMode {}
+impl ::core::clone::Clone for SpiMode {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[doc = "*Required features: `\"Devices_Spi\"`*"]
+#[repr(transparent)]
+pub struct SpiSharingMode(pub i32);
+impl SpiSharingMode {
+ pub const Exclusive: Self = Self(0i32);
+ pub const Shared: Self = Self(1i32);
+}
+impl ::core::marker::Copy for SpiSharingMode {}
+impl ::core::clone::Clone for SpiSharingMode {
+ fn clone(&self) -> Self {
+ *self
+ }
+}