CCAux 2.19.0.0
CCAux API reference
DiagnosticCodes.h
Go to the documentation of this file.
1
2/*
3 * Copyright (C) 2010-2022 CrossControl AB - All rights reserved
4 *
5 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 *
7 * This source code is licensed under the proprietary CrossControl software
8 * license v 1.0.Please refer to the software license text for details or
9 * contact info@crosscontrol.com for more info.
10 *
11 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 */
13/*
14 * File description: Diagnostic code handling
15 * String access functions for codes used in the diagnostic functions
16 *
17 ************************************************/
18
19#ifndef CC_DIAGCODES_H_
20#define CC_DIAGCODES_H_
21
22#include "CCPlatform.h"
23#include "CCAuxTypes.h"
24
25#ifdef __cplusplus
26namespace CrossControl
27{
28#endif
29
32{
39 0x003c,
41 0x00c3,
44 0x00e1,
48 0x00d1,
50 0x00d2,
52 0x00d3,
54 0x00d4,
56 0x00AB,
57};
58
61{
63 0x001F
64};
65
68{
69 errCodeNoErr = 0
70};
71
81EXTERN_C
82CCAUXDLL_API
83char_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringA(uint16_t errCode);
84
94EXTERN_C
95CCAUXDLL_API
96wchar_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringW(uint16_t errCode);
97
107EXTERN_C
108CCAUXDLL_API
109char_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringA(uint16_t code);
110
120EXTERN_C
121CCAUXDLL_API
122wchar_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringW(uint16_t code);
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif /* CC_DIAGCODES_H_ */
unsigned short uint16_t
Definition: CCAuxTypes.h:38
char char_t
Definition: CCAuxTypes.h:17
Definition: About.h:33
EXTERN_C CCAUXDLL_API char_t const *CCAUXDLL_CALLING_CONV GetStartupReasonStringA(uint16_t code)
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)
shutDownReasonCodes
Definition: DiagnosticCodes.h:61
@ shutdownReasonCodeNoError
Definition: DiagnosticCodes.h:62
hwErrorStatusCodes
Definition: DiagnosticCodes.h:68
@ errCodeNoErr
Definition: DiagnosticCodes.h:69
startupReasonCodes
Definition: DiagnosticCodes.h:32
@ startupReasonCodeUndefined
Definition: DiagnosticCodes.h:33
@ startupReasonCodeCIActivity
Definition: DiagnosticCodes.h:40
@ startupReasonCodeMPRestart
Definition: DiagnosticCodes.h:36
@ startupReasonCodePowerOnStartup
Definition: DiagnosticCodes.h:37
@ startupReasonCodeIO2Activity
Definition: DiagnosticCodes.h:49
@ startupReasonCodePreIgnition
Definition: DiagnosticCodes.h:55
@ startupReasonAlwaysStart
Definition: DiagnosticCodes.h:43
@ startupReasonUnknownTrigger
Definition: DiagnosticCodes.h:45
@ startupReasonCodeIO4Activity
Definition: DiagnosticCodes.h:53
@ startupReasonCodeCanActivity
Definition: DiagnosticCodes.h:38
@ startupReasonCodeIO1Activity
Definition: DiagnosticCodes.h:47
@ startupReasonCodeETHActivity
Definition: DiagnosticCodes.h:42
@ startupReasonCodeIO3Activity
Definition: DiagnosticCodes.h:51
@ startupReasonCodeButtonPress
Definition: DiagnosticCodes.h:34
@ startupReasonCodeExtCtrl
Definition: DiagnosticCodes.h:35
EXTERN_C CCAUXDLL_API wchar_t const *CCAUXDLL_CALLING_CONV GetHwErrorStatusStringW(uint16_t errCode)