]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Devices/I2c/Provider/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Devices / I2c / Provider / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {}
4 pub type II2cControllerProvider = *mut ::core::ffi::c_void;
5 pub type II2cDeviceProvider = *mut ::core::ffi::c_void;
6 pub type II2cProvider = *mut ::core::ffi::c_void;
7 #[repr(transparent)]
8 pub struct ProviderI2cBusSpeed(pub i32);
9 impl ProviderI2cBusSpeed {
10 pub const StandardMode: Self = Self(0i32);
11 pub const FastMode: Self = Self(1i32);
12 }
13 impl ::core::marker::Copy for ProviderI2cBusSpeed {}
14 impl ::core::clone::Clone for ProviderI2cBusSpeed {
15 fn clone(&self) -> Self {
16 *self
17 }
18 }
19 pub type ProviderI2cConnectionSettings = *mut ::core::ffi::c_void;
20 #[repr(transparent)]
21 pub struct ProviderI2cSharingMode(pub i32);
22 impl ProviderI2cSharingMode {
23 pub const Exclusive: Self = Self(0i32);
24 pub const Shared: Self = Self(1i32);
25 }
26 impl ::core::marker::Copy for ProviderI2cSharingMode {}
27 impl ::core::clone::Clone for ProviderI2cSharingMode {
28 fn clone(&self) -> Self {
29 *self
30 }
31 }
32 #[repr(C)]
33 pub struct ProviderI2cTransferResult {
34 pub Status: ProviderI2cTransferStatus,
35 pub BytesTransferred: u32,
36 }
37 impl ::core::marker::Copy for ProviderI2cTransferResult {}
38 impl ::core::clone::Clone for ProviderI2cTransferResult {
39 fn clone(&self) -> Self {
40 *self
41 }
42 }
43 #[repr(transparent)]
44 pub struct ProviderI2cTransferStatus(pub i32);
45 impl ProviderI2cTransferStatus {
46 pub const FullTransfer: Self = Self(0i32);
47 pub const PartialTransfer: Self = Self(1i32);
48 pub const SlaveAddressNotAcknowledged: Self = Self(2i32);
49 }
50 impl ::core::marker::Copy for ProviderI2cTransferStatus {}
51 impl ::core::clone::Clone for ProviderI2cTransferStatus {
52 fn clone(&self) -> Self {
53 *self
54 }
55 }