CCAux  2.20.0.0
CCAux API reference
Diagnostic.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:
12  * Access to unit diagnostic data
13  *
14  * Use the function GetDiagnostic() to get a handle to pass on to the other functions.
15  * Use the method Diagnostic_release(DIAGNOSTICHANDLE) to return the handle.
16  *
17  * Example Usage:
18  * @include diagnostic_example.cpp
19  *
20  ************************************************/
21 #ifndef CC_DIAGNOSTIC_H
22 #define CC_DIAGNOSTIC_H
23 
24 #include "CCAuxErrors.h"
25 #include "CCPlatform.h"
26 
27 #ifdef __cplusplus
28 namespace CrossControl
29 {
30 #endif
31 
32 typedef void *DIAGNOSTICHANDLE;
33 
53 EXTERN_C
54 CCAUXDLL_API
56 CCAUXDLL_CALLING_CONV
58 
69 EXTERN_C
70 CCAUXDLL_API
71 void CCAUXDLL_CALLING_CONV Diagnostic_release(DIAGNOSTICHANDLE);
72 
85 EXTERN_C
86 CCAUXDLL_API
87 eErr CCAUXDLL_CALLING_CONV Diagnostic_getSSTemp(DIAGNOSTICHANDLE, int16_t *temperature);
88 
98 EXTERN_C
99 CCAUXDLL_API
100 eErr CCAUXDLL_CALLING_CONV Diagnostic_getPCBTemp(DIAGNOSTICHANDLE, int16_t *temperature);
101 
117 EXTERN_C
118 CCAUXDLL_API
119 eErr CCAUXDLL_CALLING_CONV Diagnostic_getPMTemp(DIAGNOSTICHANDLE, uint8_t index, int16_t *temperature,
120  JidaSensorType *jst);
121 
131 EXTERN_C
132 CCAUXDLL_API
134 
144 EXTERN_C
145 CCAUXDLL_API
147 
158 EXTERN_C
159 CCAUXDLL_API
160 eErr CCAUXDLL_CALLING_CONV Diagnostic_getHardShutDowns(DIAGNOSTICHANDLE, uint16_t *button, uint16_t *powerloss);
161 
172 EXTERN_C
173 CCAUXDLL_API
174 eErr CCAUXDLL_CALLING_CONV Diagnostic_getHwErrorStatus(DIAGNOSTICHANDLE, uint16_t *errorCode);
175 
188 EXTERN_C
189 CCAUXDLL_API
190 eErr CCAUXDLL_CALLING_CONV Diagnostic_getTimer(DIAGNOSTICHANDLE, TimerType *times);
191 
204 EXTERN_C
205 CCAUXDLL_API
207 
221 EXTERN_C
222 CCAUXDLL_API
223 eErr CCAUXDLL_CALLING_CONV Diagnostic_getMinMaxTemp(DIAGNOSTICHANDLE, int16_t *minTemp, int16_t *maxTemp);
224 
234 EXTERN_C
235 CCAUXDLL_API
236 eErr CCAUXDLL_CALLING_CONV Diagnostic_getPowerCycles(DIAGNOSTICHANDLE, uint16_t *powerCycles);
237 
245 EXTERN_C
246 CCAUXDLL_API
248 
250 #ifdef __cplusplus
251 } /* namespace CrossControl */
252 #endif
253 
254 #endif /* CC_DIAGNOSTIC_H */
signed short int16_t
Definition: CCAuxTypes.h:35
unsigned short uint16_t
Definition: CCAuxTypes.h:38
unsigned char uint8_t
Definition: CCAuxTypes.h:37
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getTimer(DIAGNOSTICHANDLE, TimerType *times)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getPowerCycles(DIAGNOSTICHANDLE, uint16_t *powerCycles)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getTimerExt(DIAGNOSTICHANDLE, TimerTypeExt *times)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getMinMaxTemp(DIAGNOSTICHANDLE, int16_t *minTemp, int16_t *maxTemp)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV Diagnostic_release(DIAGNOSTICHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getShutDownReason(DIAGNOSTICHANDLE, uint16_t *reason)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getHardShutDowns(DIAGNOSTICHANDLE, uint16_t *button, uint16_t *powerloss)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getSSTemp(DIAGNOSTICHANDLE, int16_t *temperature)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_clearHwErrorStatus(DIAGNOSTICHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getPMTemp(DIAGNOSTICHANDLE, uint8_t index, int16_t *temperature, JidaSensorType *jst)
EXTERN_C CCAUXDLL_API DIAGNOSTICHANDLE CCAUXDLL_CALLING_CONV GetDiagnostic(void)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getStartupReason(DIAGNOSTICHANDLE, uint16_t *reason)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getPCBTemp(DIAGNOSTICHANDLE, int16_t *temperature)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Diagnostic_getHwErrorStatus(DIAGNOSTICHANDLE, uint16_t *errorCode)
Definition: About.h:30
JidaSensorType
Definition: CCAuxTypes.h:515
void * DIAGNOSTICHANDLE
Definition: Diagnostic.h:32
eErr
Definition: CCAuxTypes.h:162
Definition: CCAuxTypes.h:499
Definition: CCAuxTypes.h:485