CCAux 3.0.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
28namespace CrossControl
29{
30#endif
31
32typedef void *DIAGNOSTICHANDLE;
33
53EXTERN_C
54CCAUXDLL_API
56CCAUXDLL_CALLING_CONV
58
69EXTERN_C
70CCAUXDLL_API
71void CCAUXDLL_CALLING_CONV Diagnostic_release(DIAGNOSTICHANDLE);
72
85EXTERN_C
86CCAUXDLL_API
87eErr CCAUXDLL_CALLING_CONV Diagnostic_getSSTemp(DIAGNOSTICHANDLE, int16_t *temperature);
88
98EXTERN_C
99CCAUXDLL_API
100eErr CCAUXDLL_CALLING_CONV Diagnostic_getPCBTemp(DIAGNOSTICHANDLE, int16_t *temperature);
101
117EXTERN_C
118CCAUXDLL_API
119eErr CCAUXDLL_CALLING_CONV Diagnostic_getPMTemp(DIAGNOSTICHANDLE, uint8_t index, int16_t *temperature,
120 JidaSensorType *jst);
121
131EXTERN_C
132CCAUXDLL_API
134
144EXTERN_C
145CCAUXDLL_API
147
158EXTERN_C
159CCAUXDLL_API
160eErr CCAUXDLL_CALLING_CONV Diagnostic_getHardShutDowns(DIAGNOSTICHANDLE, uint16_t *button, uint16_t *powerloss);
161
172EXTERN_C
173CCAUXDLL_API
175
188EXTERN_C
189CCAUXDLL_API
190eErr CCAUXDLL_CALLING_CONV Diagnostic_getTimer(DIAGNOSTICHANDLE, TimerType *times);
191
204EXTERN_C
205CCAUXDLL_API
207
221EXTERN_C
222CCAUXDLL_API
223eErr CCAUXDLL_CALLING_CONV Diagnostic_getMinMaxTemp(DIAGNOSTICHANDLE, int16_t *minTemp, int16_t *maxTemp);
224
234EXTERN_C
235CCAUXDLL_API
236eErr CCAUXDLL_CALLING_CONV Diagnostic_getPowerCycles(DIAGNOSTICHANDLE, uint16_t *powerCycles);
237
245EXTERN_C
246CCAUXDLL_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