CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API DIAGNOSTICHANDLE CCAUXDLL_CALLING_CONV | GetDiagnostic (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | Diagnostic_release (DIAGNOSTICHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Diagnostic_getSSTemp (DIAGNOSTICHANDLE, int16_t *temperature) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Diagnostic_getPCBTemp (DIAGNOSTICHANDLE, int16_t *temperature) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Diagnostic_getPMTemp (DIAGNOSTICHANDLE, uint8_t index, int16_t *temperature, JidaSensorType *jst) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Diagnostic_getStartupReason (DIAGNOSTICHANDLE, uint16_t *reason) |
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_getHwErrorStatus (DIAGNOSTICHANDLE, uint16_t *errorCode) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Diagnostic_getTimer (DIAGNOSTICHANDLE, TimerType *times) |
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 eErr CCAUXDLL_CALLING_CONV | Diagnostic_getPowerCycles (DIAGNOSTICHANDLE, uint16_t *powerCycles) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Diagnostic_clearHwErrorStatus (DIAGNOSTICHANDLE) |
Functions in the Diagnostic class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_clearHwErrorStatus | ( | DIAGNOSTICHANDLE | ) |
Clear the HW error status (this function is used by the CrossControl service/daemon to log any hardware errors)
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getHardShutDowns | ( | DIAGNOSTICHANDLE | , |
uint16_t * | button, | ||
uint16_t * | powerloss | ||
) |
Get number of detected hard shutdown events
Supported Platform(s): Yukon, V510, V710, V1000, V1200, X1200
button | Hard shutdowns by button. |
powerloss | Hard shutdowns by powerloss |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getHwErrorStatus | ( | DIAGNOSTICHANDLE | , |
uint16_t * | errorCode | ||
) |
Get hardware error code. If hardware errors are found or other problems are discovered by the SS, they are reported here. See DiagnosticCodes.h for error codes.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
errorCode | Error code. Zero means no error. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getMinMaxTemp | ( | DIAGNOSTICHANDLE | , |
int16_t * | minTemp, | ||
int16_t * | maxTemp | ||
) |
Get diagnostic temperature interval of the unit.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
minTemp | Minimum measured PCB temperature. |
maxTemp | Maximum measured PCB temperature. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getPCBTemp | ( | DIAGNOSTICHANDLE | , |
int16_t * | temperature | ||
) |
Get PCB temperature.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
temperature | PCB Temperature in degrees Celsius. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getPMTemp | ( | DIAGNOSTICHANDLE | , |
uint8_t | index, | ||
int16_t * | temperature, | ||
JidaSensorType * | jst | ||
) |
Get Processor Module temperature. This temperature is read from the Kontron JIDA API or Congatec CGOS API. These API's also has a number of other functions, please see the JIDA/CGOS documentation for how to use them separately.
index | Zero-based index of the temperature sensor. Different boards may have different number of sensors. CCpilot XM and XL currently has 2 sensors, board and cpu. An error is returned if the index is not supported. CCpliot XM 2.0 supports only one sensor, CPU temperature. |
Supported Platform(s): XL, XL5, XM, XM9
temperature | Temperature in degrees Celsius. |
jst | The type of sensor that is being read. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getPowerCycles | ( | DIAGNOSTICHANDLE | , |
uint16_t * | powerCycles | ||
) |
Get number of power cycles.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
powerCycles | Total number of power cycles. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getShutDownReason | ( | DIAGNOSTICHANDLE | , |
uint16_t * | reason | ||
) |
Get shutdown reason.
Supported Platform(s): XL, XL5, XM, XM9
reason | See DiagnosticCodes.h for shutdown codes. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getSSTemp | ( | DIAGNOSTICHANDLE | , |
int16_t * | temperature | ||
) |
Get System Supervisor temperature.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
temperature | System Supervisor temperature in degrees Celsius. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getStartupReason | ( | DIAGNOSTICHANDLE | , |
uint16_t * | reason | ||
) |
Get startup reason.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
reason | See DiagnosticCodes.h for startup codes. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getTimer | ( | DIAGNOSTICHANDLE | , |
TimerType * | times | ||
) |
Get diagnostic timer.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
times | Get a struct with the current diagnostic times. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_getTimerExt | ( | DIAGNOSTICHANDLE | , |
TimerTypeExt * | times | ||
) |
Get extended diagnostic timer.
Supported Platform(s): Yukon, V510, V710, V1000, V1200, X1200
times | Get a struct with the current diagnostic times. |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::Diagnostic_release | ( | DIAGNOSTICHANDLE | ) |
Delete the Diagnostic object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage:
EXTERN_C CCAUXDLL_API DIAGNOSTICHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetDiagnostic | ( | void | ) |
Factory function that creates instances of the Diagnostic object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage: