blob: 03b5bb790ea3f104131e7b2a077019af62bfa720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
#pragma once
#ifndef WINRT_Windows_Devices_I2c_2_H
#define WINRT_Windows_Devices_I2c_2_H
#include "winrt/impl/Windows.Devices.I2c.Provider.2.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Devices.I2c.1.h"
WINRT_EXPORT namespace winrt::Windows::Devices::I2c
{
struct I2cTransferResult
{
winrt::Windows::Devices::I2c::I2cTransferStatus Status;
uint32_t BytesTransferred;
};
inline bool operator==(I2cTransferResult const& left, I2cTransferResult const& right) noexcept
{
return left.Status == right.Status && left.BytesTransferred == right.BytesTransferred;
}
inline bool operator!=(I2cTransferResult const& left, I2cTransferResult const& right) noexcept
{
return !(left == right);
}
struct __declspec(empty_bases) I2cConnectionSettings : winrt::Windows::Devices::I2c::II2cConnectionSettings
{
I2cConnectionSettings(std::nullptr_t) noexcept {}
I2cConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::I2c::II2cConnectionSettings(ptr, take_ownership_from_abi) {}
explicit I2cConnectionSettings(int32_t slaveAddress);
};
struct __declspec(empty_bases) I2cController : winrt::Windows::Devices::I2c::II2cController
{
I2cController(std::nullptr_t) noexcept {}
I2cController(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::I2c::II2cController(ptr, take_ownership_from_abi) {}
static auto GetControllersAsync(winrt::Windows::Devices::I2c::Provider::II2cProvider const& provider);
static auto GetDefaultAsync();
};
struct __declspec(empty_bases) I2cDevice : winrt::Windows::Devices::I2c::II2cDevice
{
I2cDevice(std::nullptr_t) noexcept {}
I2cDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::I2c::II2cDevice(ptr, take_ownership_from_abi) {}
static auto GetDeviceSelector();
static auto GetDeviceSelector(param::hstring const& friendlyName);
static auto FromIdAsync(param::hstring const& deviceId, winrt::Windows::Devices::I2c::I2cConnectionSettings const& settings);
};
}
#endif
|