nearby sdk refactor

PiperOrigin-RevId: 425434260
This commit is contained in:
hais
2022-02-02 11:56:39 -08:00
committed by hai007
parent 287f0d7174
commit f5fcd35ced
1879 changed files with 2485 additions and 2332 deletions
@@ -0,0 +1,39 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
#pragma once
#ifndef WINRT_Windows_Devices_Spi_2_H
#define WINRT_Windows_Devices_Spi_2_H
#include "winrt/impl/Windows.Devices.Spi.Provider.1.h"
#include "winrt/impl/Windows.Foundation.1.h"
#include "winrt/impl/Windows.Devices.Spi.1.h"
WINRT_EXPORT namespace winrt::Windows::Devices::Spi
{
struct __declspec(empty_bases) SpiBusInfo : winrt::Windows::Devices::Spi::ISpiBusInfo
{
SpiBusInfo(std::nullptr_t) noexcept {}
SpiBusInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Spi::ISpiBusInfo(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) SpiConnectionSettings : winrt::Windows::Devices::Spi::ISpiConnectionSettings
{
SpiConnectionSettings(std::nullptr_t) noexcept {}
SpiConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Spi::ISpiConnectionSettings(ptr, take_ownership_from_abi) {}
explicit SpiConnectionSettings(int32_t chipSelectLine);
};
struct __declspec(empty_bases) SpiController : winrt::Windows::Devices::Spi::ISpiController
{
SpiController(std::nullptr_t) noexcept {}
SpiController(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Spi::ISpiController(ptr, take_ownership_from_abi) {}
static auto GetDefaultAsync();
static auto GetControllersAsync(winrt::Windows::Devices::Spi::Provider::ISpiProvider const& provider);
};
struct __declspec(empty_bases) SpiDevice : winrt::Windows::Devices::Spi::ISpiDevice
{
SpiDevice(std::nullptr_t) noexcept {}
SpiDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Spi::ISpiDevice(ptr, take_ownership_from_abi) {}
static auto GetDeviceSelector();
static auto GetDeviceSelector(param::hstring const& friendlyName);
static auto GetBusInfo(param::hstring const& busId);
static auto FromIdAsync(param::hstring const& busId, winrt::Windows::Devices::Spi::SpiConnectionSettings const& settings);
};
}
#endif