mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
47 lines
2.2 KiB
C++
47 lines
2.2 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
|
|
|
|
#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
|