Files
nearby/cpp/platform/impl/windows/generated/winrt/impl/Windows.Devices.I2c.2.h
T
hai007 b1815095dd BEGIN_PUBLIC
Microsoft has updated the winrt library
END_PUBLC

PiperOrigin-RevId: 387168248
2021-07-29 03:27:37 -07:00

58 lines
3.0 KiB
C++

// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
#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);
I2cConnectionSettings(I2cConnectionSettings const&) noexcept = default;
I2cConnectionSettings(I2cConnectionSettings&&) noexcept = default;
I2cConnectionSettings& operator=(I2cConnectionSettings const&) & noexcept = default;
I2cConnectionSettings& operator=(I2cConnectionSettings&&) & noexcept = default;
};
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) {}
I2cController(I2cController const&) noexcept = default;
I2cController(I2cController&&) noexcept = default;
I2cController& operator=(I2cController const&) & noexcept = default;
I2cController& operator=(I2cController&&) & noexcept = default;
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) {}
I2cDevice(I2cDevice const&) noexcept = default;
I2cDevice(I2cDevice&&) noexcept = default;
I2cDevice& operator=(I2cDevice const&) & noexcept = default;
I2cDevice& operator=(I2cDevice&&) & noexcept = default;
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