mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
82 lines
4.7 KiB
C++
82 lines
4.7 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Windows_Devices_Adc_Provider_0_H
|
|
#define WINRT_Windows_Devices_Adc_Provider_0_H
|
|
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
|
|
{
|
|
template <typename T> struct __declspec(empty_bases) IVectorView;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Devices::Adc::Provider
|
|
{
|
|
enum class ProviderAdcChannelMode : int32_t
|
|
{
|
|
SingleEnded = 0,
|
|
Differential = 1,
|
|
};
|
|
struct IAdcControllerProvider;
|
|
struct IAdcProvider;
|
|
}
|
|
namespace winrt::impl
|
|
{
|
|
template <> struct category<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Adc::Provider::IAdcProvider>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>{ using type = enum_category; };
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode> = L"Windows.Devices.Adc.Provider.ProviderAdcChannelMode";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider> = L"Windows.Devices.Adc.Provider.IAdcControllerProvider";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Adc::Provider::IAdcProvider> = L"Windows.Devices.Adc.Provider.IAdcProvider";
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>{ 0xBE545828,0x816D,0x4DE5,{ 0xA0,0x48,0xAB,0xA0,0x69,0x58,0xAA,0xA8 } }; // BE545828-816D-4DE5-A048-ABA06958AAA8
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Adc::Provider::IAdcProvider>{ 0x28953668,0x9359,0x4C57,{ 0xBC,0x88,0xE2,0x75,0xE8,0x16,0x38,0xC9 } }; // 28953668-9359-4C57-BC88-E275E81638C9
|
|
template <> struct abi<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_ChannelCount(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_ResolutionInBits(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_MinValue(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_MaxValue(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_ChannelMode(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_ChannelMode(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall IsChannelModeSupported(int32_t, bool*) noexcept = 0;
|
|
virtual int32_t __stdcall AcquireChannel(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall ReleaseChannel(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall ReadValue(int32_t, int32_t*) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Devices::Adc::Provider::IAdcProvider>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall GetControllers(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Adc_Provider_IAdcControllerProvider
|
|
{
|
|
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) ChannelCount() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) ResolutionInBits() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) MinValue() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) MaxValue() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode) ChannelMode() const;
|
|
WINRT_IMPL_AUTO(void) ChannelMode(winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode const& value) const;
|
|
WINRT_IMPL_AUTO(bool) IsChannelModeSupported(winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode const& channelMode) const;
|
|
WINRT_IMPL_AUTO(void) AcquireChannel(int32_t channel) const;
|
|
WINRT_IMPL_AUTO(void) ReleaseChannel(int32_t channel) const;
|
|
WINRT_IMPL_AUTO(int32_t) ReadValue(int32_t channelNumber) const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Adc_Provider_IAdcControllerProvider<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Adc_Provider_IAdcProvider
|
|
{
|
|
WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>) GetControllers() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Adc::Provider::IAdcProvider>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Adc_Provider_IAdcProvider<D>;
|
|
};
|
|
}
|
|
#endif
|