CCAux  2.20.0.0
CCAux API reference
DiagnosticCodes.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 2023 CrossControl AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; with
8  * version 2.1 of the License.
9  */
10 /*
11  * File description: Diagnostic code handling
12  * String access functions for codes used in the diagnostic functions
13  *
14  ************************************************/
15 
16 #ifndef CC_DIAGCODES_H_
17 #define CC_DIAGCODES_H_
18 
19 #include "CCPlatform.h"
20 #include "CCAuxTypes.h"
21 
22 #ifdef __cplusplus
23 namespace CrossControl
24 {
25 #endif
26 
29 {
36  0x003c,
38  0x00c3,
41  0x00e1,
45  0x00d1,
47  0x00d2,
49  0x00d3,
51  0x00d4,
53  0x00AB,
54 };
55 
58 {
60  0x001F
61 };
62 
65 {
66  errCodeNoErr = 0
67 };
68 
78 EXTERN_C
79 CCAUXDLL_API
80 char_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringA(uint16_t errCode);
81 
91 EXTERN_C
92 CCAUXDLL_API
93 wchar_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringW(uint16_t errCode);
94 
104 EXTERN_C
105 CCAUXDLL_API
106 char_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringA(uint16_t code);
107 
117 EXTERN_C
118 CCAUXDLL_API
119 wchar_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringW(uint16_t code);
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* CC_DIAGCODES_H_ */
unsigned short uint16_t
Definition: CCAuxTypes.h:38
char char_t
Definition: CCAuxTypes.h:17
Definition: About.h:30
EXTERN_C CCAUXDLL_API char_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringA(uint16_t code)
EXTERN_C CCAUXDLL_API wchar_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringW(uint16_t errCode)
shutDownReasonCodes
Definition: DiagnosticCodes.h:58
@ shutdownReasonCodeNoError
Definition: DiagnosticCodes.h:59
hwErrorStatusCodes
Definition: DiagnosticCodes.h:65
@ errCodeNoErr
Definition: DiagnosticCodes.h:66
startupReasonCodes
Definition: DiagnosticCodes.h:29
@ startupReasonCodeUndefined
Definition: DiagnosticCodes.h:30
@ startupReasonCodeCIActivity
Definition: DiagnosticCodes.h:37
@ startupReasonCodeMPRestart
Definition: DiagnosticCodes.h:33
@ startupReasonCodePowerOnStartup
Definition: DiagnosticCodes.h:34
@ startupReasonCodeIO2Activity
Definition: DiagnosticCodes.h:46
@ startupReasonCodePreIgnition
Definition: DiagnosticCodes.h:52
@ startupReasonAlwaysStart
Definition: DiagnosticCodes.h:40
@ startupReasonUnknownTrigger
Definition: DiagnosticCodes.h:42
@ startupReasonCodeIO4Activity
Definition: DiagnosticCodes.h:50
@ startupReasonCodeCanActivity
Definition: DiagnosticCodes.h:35
@ startupReasonCodeIO1Activity
Definition: DiagnosticCodes.h:44
@ startupReasonCodeETHActivity
Definition: DiagnosticCodes.h:39
@ startupReasonCodeIO3Activity
Definition: DiagnosticCodes.h:48
@ startupReasonCodeButtonPress
Definition: DiagnosticCodes.h:31
@ startupReasonCodeExtCtrl
Definition: DiagnosticCodes.h:32
EXTERN_C CCAUXDLL_API wchar_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringW(uint16_t code)
EXTERN_C CCAUXDLL_API char_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringA(uint16_t errCode)