Capsule API Example

Loading...
Searching...
No Matches
CPSDData.h
Go to the documentation of this file.
1// Copyright. 2019 - 2025 PSBD. All rights reserved.
2
3#pragma once
4
5#include "CDefinesPrivate.h"
6#include "CError.h"
7
8#ifdef __cplusplus
9 extern "C" {
10#endif
11
12 CLC_STRUCT_WNN(PSDData, clCPSDData, device);
13
14 typedef enum clCPSDData_Band {
15 clCPSDData_Band_Delta,
16 clCPSDData_Band_Theta,
17 clCPSDData_Band_Alpha,
18 clCPSDData_Band_SMR,
19 clCPSDData_Band_Beta
20} clCPSDData_Band;
21
22 CL_DLL uint64_t clCPSDData_GetTimestampMilli(clCPSDData psdData, clCError* error) NOEXCEPT;
23 CL_DLL int32_t clCPSDData_GetFrequenciesCount(clCPSDData psdData, clCError* error) NOEXCEPT;
24 CL_DLL int32_t clCPSDData_GetChannelsCount(clCPSDData psdData, clCError* error) NOEXCEPT;
25 CL_DLL double clCPSDData_GetFrequency(clCPSDData psdData, int32_t frequencyIndex, clCError* error) NOEXCEPT;
26 CL_DLL double clCPSDData_GetPSD(clCPSDData psdData, int32_t channelIndex, int32_t frequencyIndex, clCError* error) NOEXCEPT;
27 CL_DLL float clCPSDData_GetBandUpper(clCPSDData psdData, clCPSDData_Band band, clCError* error) NOEXCEPT;
28 CL_DLL float clCPSDData_GetBandLower(clCPSDData psdData, clCPSDData_Band band, clCError* error) NOEXCEPT;
29 CL_DLL bool clCPSDData_HasIndividualAlpha(clCPSDData psdData, clCError* error) NOEXCEPT;
30 CL_DLL float clCPSDData_GetIndividualAlphaLower(clCPSDData psdData, clCError* error) NOEXCEPT;
31 CL_DLL float clCPSDData_GetIndividualAlphaUpper(clCPSDData psdData, clCError* error) NOEXCEPT;
32 CL_DLL bool clCPSDData_HasIndividualBeta(clCPSDData psdData, clCError* error) NOEXCEPT;
33 CL_DLL float clCPSDData_GetIndividualBetaLower(clCPSDData psdData, clCError* error) NOEXCEPT;
34 CL_DLL float clCPSDData_GetIndividualBetaUpper(clCPSDData psdData, clCError* error) NOEXCEPT;
35
36#ifdef __cplusplus
37}
38#endif
CDefinesPrivate.h
NOEXCEPT
#define NOEXCEPT
Definition CDefinesPrivate.h:82
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:51
CError.h
clCPSDData_GetIndividualBetaLower
CL_DLL float clCPSDData_GetIndividualBetaLower(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetIndividualAlphaLower
CL_DLL float clCPSDData_GetIndividualAlphaLower(clCPSDData psdData, clCError *error) NOEXCEPT
CLC_STRUCT_WNN
CLC_STRUCT_WNN(PSDData, clCPSDData, device)
clCPSDData_GetIndividualBetaUpper
CL_DLL float clCPSDData_GetIndividualBetaUpper(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetPSD
CL_DLL double clCPSDData_GetPSD(clCPSDData psdData, int32_t channelIndex, int32_t frequencyIndex, clCError *error) NOEXCEPT
clCPSDData_GetFrequenciesCount
CL_DLL int32_t clCPSDData_GetFrequenciesCount(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetIndividualAlphaUpper
CL_DLL float clCPSDData_GetIndividualAlphaUpper(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetChannelsCount
CL_DLL int32_t clCPSDData_GetChannelsCount(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetBandUpper
CL_DLL float clCPSDData_GetBandUpper(clCPSDData psdData, clCPSDData_Band band, clCError *error) NOEXCEPT
clCPSDData_GetBandLower
CL_DLL float clCPSDData_GetBandLower(clCPSDData psdData, clCPSDData_Band band, clCError *error) NOEXCEPT
clCPSDData_HasIndividualBeta
CL_DLL bool clCPSDData_HasIndividualBeta(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetTimestampMilli
CL_DLL uint64_t clCPSDData_GetTimestampMilli(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_HasIndividualAlpha
CL_DLL bool clCPSDData_HasIndividualAlpha(clCPSDData psdData, clCError *error) NOEXCEPT
clCPSDData_GetFrequency
CL_DLL double clCPSDData_GetFrequency(clCPSDData psdData, int32_t frequencyIndex, clCError *error) NOEXCEPT
clCPSDData_Band
clCPSDData_Band
Definition CPSDData.h:14
clCPSDData_Band_Delta
@ clCPSDData_Band_Delta
Definition CPSDData.h:15
clCPSDData_Band_Beta
@ clCPSDData_Band_Beta
Definition CPSDData.h:19
clCPSDData_Band_Alpha
@ clCPSDData_Band_Alpha
Definition CPSDData.h:17
clCPSDData_Band_SMR
@ clCPSDData_Band_SMR
Definition CPSDData.h:18
clCPSDData_Band_Theta
@ clCPSDData_Band_Theta
Definition CPSDData.h:16
clCError
Definition CError.h:28