Capsule API Example

Loading...
Searching...
No Matches
CError.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
8 typedef enum clCError_Code {
9 clCError_OK = 0,
10 clCError_FailedToConnect,
11 clCError_FailedToInitConnection,
12 clCError_FailedToInitialize,
13 clCError_DeviceError,
14 clCError_IndividualNFBNotCalibrated,
15 clCError_NotReceived,
16 clCError_NullPointer,
17 clCError_ModuleAlreadyExists,
18 clCError_ModuleIsNotSupported,
19 clCError_FailedToSendData,
20 clCError_IndexOutOfRange,
21 clCError_EmptyCollection,
22 clCError_NotFound,
23 clCError_SizeMismatch,
24 clCError_UnknownEnum,
25 clCError_Unknown = 255
26} clCError_Code;
27
28 typedef struct clCError {
29 char message[256];
30 bool success;
31 clCError_Code code;
32} clCError;
clCError
struct clCError clCError
clCError_Code
clCError_Code
Capsule error.
Definition CError.h:8
clCError_OK
@ clCError_OK
Definition CError.h:9
clCError_DeviceError
@ clCError_DeviceError
Definition CError.h:13
clCError_ModuleAlreadyExists
@ clCError_ModuleAlreadyExists
Definition CError.h:17
clCError_UnknownEnum
@ clCError_UnknownEnum
Definition CError.h:24
clCError_NotFound
@ clCError_NotFound
Definition CError.h:22
clCError_NotReceived
@ clCError_NotReceived
Definition CError.h:15
clCError_EmptyCollection
@ clCError_EmptyCollection
Definition CError.h:21
clCError_FailedToSendData
@ clCError_FailedToSendData
Definition CError.h:19
clCError_ModuleIsNotSupported
@ clCError_ModuleIsNotSupported
Definition CError.h:18
clCError_FailedToInitConnection
@ clCError_FailedToInitConnection
Definition CError.h:11
clCError_Unknown
@ clCError_Unknown
Definition CError.h:25
clCError_IndividualNFBNotCalibrated
@ clCError_IndividualNFBNotCalibrated
Definition CError.h:14
clCError_FailedToConnect
@ clCError_FailedToConnect
Definition CError.h:10
clCError_SizeMismatch
@ clCError_SizeMismatch
Definition CError.h:23
clCError_NullPointer
@ clCError_NullPointer
Definition CError.h:16
clCError_FailedToInitialize
@ clCError_FailedToInitialize
Definition CError.h:12
clCError_IndexOutOfRange
@ clCError_IndexOutOfRange
Definition CError.h:20
clCError
Definition CError.h:28
clCError::message
char message[256]
Definition CError.h:29
clCError::success
bool success
Definition CError.h:30
clCError::code
clCError_Code code
Definition CError.h:31