Capsule API Example

Loading...
Searching...
No Matches
CResistances.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "CDefinesPrivate.h"
6
7#ifdef __cplusplus
8 extern "C" {
9#endif
10
16 CLC_STRUCT_WNN(Resistances, clCResistance, device);
17
24 CL_DLL int32_t clCResistance_GetCount(clCResistance resistance) NOEXCEPT;
32 CL_DLL const char* clCResistance_GetChannelName(clCResistance resistance, int32_t index) NOEXCEPT;
40 CL_DLL float clCResistance_GetValue(clCResistance resistance, int32_t index) NOEXCEPT;
41
42#ifdef __cplusplus
43}
44#endif
CDefinesPrivate.h
NOEXCEPT
#define NOEXCEPT
Definition CDefinesPrivate.h:82
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:51
clCResistance_GetCount
CL_DLL int32_t clCResistance_GetCount(clCResistance resistance) NOEXCEPT
Get total number of resistance channels.
clCResistance_GetChannelName
CL_DLL const char * clCResistance_GetChannelName(clCResistance resistance, int32_t index) NOEXCEPT
Get channel name by index.
clCResistance_GetValue
CL_DLL float clCResistance_GetValue(clCResistance resistance, int32_t index) NOEXCEPT
Get channel resistance by index.
CLC_STRUCT_WNN
CLC_STRUCT_WNN(Resistances, clCResistance, device)
Used to receive channel resistances from Capsule.