CCAux 2.19.0.0
CCAux API reference
Diagnostic.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:
15 * Access to unit diagnostic data
16 *
17 * Use the function GetDiagnostic() to get a handle to pass on to the other functions.
18 * Use the method Diagnostic_release(DIAGNOSTICHANDLE) to return the handle.
19 *
20 * Example Usage:
21 * @include diagnostic_example.cpp
22 *
23 ************************************************/
24#ifndef CC_DIAGNOSTIC_H
25#define CC_DIAGNOSTIC_H
26
27#include "CCAuxErrors.h"
28#include "CCPlatform.h"
29
30#ifdef __cplusplus
31namespace CrossControl
32{
33#endif
34
35typedef void *DIAGNOSTICHANDLE;
36
56EXTERN_C
57CCAUXDLL_API
59CCAUXDLL_CALLING_CONV
61
72EXTERN_C
73CCAUXDLL_API
74void CCAUXDLL_CALLING_CONV Diagnostic_release(DIAGNOSTICHANDLE);
75
88EXTERN_C
89CCAUXDLL_API
90eErr CCAUXDLL_CALLING_CONV Diagnostic_getSSTemp(DIAGNOSTICHANDLE, int16_t *temperature);
91
101EXTERN_C
102CCAUXDLL_API
103eErr CCAUXDLL_CALLING_CONV Diagnostic_getPCBTemp(DIAGNOSTICHANDLE, int16_t *temperature);
104
120EXTERN_C
121CCAUXDLL_API
122eErr CCAUXDLL_CALLING_CONV Diagnostic_getPMTemp(DIAGNOSTICHANDLE, uint8_t index, int16_t *temperature,
123 JidaSensorType *jst);
124
134EXTERN_C
135CCAUXDLL_API
137
147EXTERN_C
148CCAUXDLL_API
150
161EXTERN_C
162CCAUXDLL_API
163eErr CCAUXDLL_CALLING_CONV Diagnostic_getHardShutDowns(DIAGNOSTICHANDLE, uint16_t *button, uint16_t *powerloss);
164
175EXTERN_C
176CCAUXDLL_API
178
191EXTERN_C
192CCAUXDLL_API
193eErr CCAUXDLL_CALLING_CONV Diagnostic_getTimer(DIAGNOSTICHANDLE, TimerType *times);
194
207EXTERN_C
208CCAUXDLL_API
210
224EXTERN_C
225CCAUXDLL_API
226eErr CCAUXDLL_CALLING_CONV Diagnostic_getMinMaxTemp(DIAGNOSTICHANDLE, int16_t *minTemp, int16_t *maxTemp);
227
237EXTERN_C
238CCAUXDLL_API
239eErr CCAUXDLL_CALLING_CONV Diagnostic_getPowerCycles(DIAGNOSTICHANDLE, uint16_t *powerCycles);
240
248EXTERN_C
249CCAUXDLL_API
251
253#ifdef __cplusplus
254} /* namespace CrossControl */
255#endif
256
257#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:33
JidaSensorType
Definition: CCAuxTypes.h:515
void * DIAGNOSTICHANDLE
Definition: Diagnostic.h:35
eErr
Definition: CCAuxTypes.h:162
Definition: CCAuxTypes.h:499
Definition: CCAuxTypes.h:485