CCAux  2.20.0.0
CCAux API reference
AuxVersion.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  * Get software versions for firmware and software
13  *
14  * Use the function GetAuxVersion() to get a handle to pass on to the other functions.
15  * Use the method AuxVersion_release(AUXVERSIONHANDLE) to return the handle.
16  *
17  * Example Usage:
18  * @include auxversion_example.cpp
19  *
20  ************************************************/
21 
22 #ifndef CC_VERSION_H_
23 #define CC_VERSION_H_
24 
25 #include "CCAuxErrors.h"
26 #include "CCPlatform.h"
27 
28 #ifdef __cplusplus
29 namespace CrossControl
30 {
31 #endif
32 
33 typedef void *AUXVERSIONHANDLE;
34 
54 EXTERN_C
55 CCAUXDLL_API
57 CCAUXDLL_CALLING_CONV
59 
70 EXTERN_C
71 CCAUXDLL_API
72 void CCAUXDLL_CALLING_CONV AuxVersion_release(AUXVERSIONHANDLE);
73 
89 EXTERN_C
90 CCAUXDLL_API
91 eErr CCAUXDLL_CALLING_CONV AuxVersion_getFPGAVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release,
92  uint8_t *build);
93 
109 EXTERN_C
110 CCAUXDLL_API
111 eErr CCAUXDLL_CALLING_CONV AuxVersion_getSSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release,
112  uint8_t *build);
113 
131 EXTERN_C
132 CCAUXDLL_API
133 eErr CCAUXDLL_CALLING_CONV AuxVersion_getFullSSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
134  uint8_t *release, uint8_t *build, char_t *tag, uint32_t len);
135 
151 EXTERN_C
152 CCAUXDLL_API
153 eErr CCAUXDLL_CALLING_CONV AuxVersion_getFrontVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
154  uint8_t *release, uint8_t *build);
155 
170 EXTERN_C
171 CCAUXDLL_API
172 eErr CCAUXDLL_CALLING_CONV AuxVersion_getDMCUVersion(AUXVERSIONHANDLE, int index, uint8_t *major, uint8_t *minor,
173  uint8_t *release, uint8_t *build);
174 
189 EXTERN_C
190 CCAUXDLL_API
191 eErr CCAUXDLL_CALLING_CONV AuxVersion_getIOMCUVersion(AUXVERSIONHANDLE, int index, uint8_t *major, uint8_t *minor,
192  uint8_t *release, uint8_t *build);
193 
211 EXTERN_C
212 CCAUXDLL_API
213 eErr CCAUXDLL_CALLING_CONV AuxVersion_getCCAuxVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
214  uint8_t *release, uint8_t *build);
215 
231 EXTERN_C
232 CCAUXDLL_API
233 eErr CCAUXDLL_CALLING_CONV AuxVersion_getOSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release,
234  uint8_t *build);
235 
252 EXTERN_C
253 CCAUXDLL_API
254 eErr CCAUXDLL_CALLING_CONV AuxVersion_getCCAuxDrvVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
255  uint8_t *release, uint8_t *build);
256 
272 EXTERN_C
273 CCAUXDLL_API
274 eErr CCAUXDLL_CALLING_CONV AuxVersion_getCanFdMcuVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
275  uint8_t *release, uint8_t *build);
276 
294 EXTERN_C
295 CCAUXDLL_API
297  uint8_t *release, uint8_t *build, int index);
298 
314 EXTERN_C
315 CCAUXDLL_API
316 eErr CCAUXDLL_CALLING_CONV AuxVersion_getCanFdApiVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
317  uint8_t *release, uint8_t *build);
318 
336 EXTERN_C
337 CCAUXDLL_API
338 eErr CCAUXDLL_CALLING_CONV AuxVersion_getFullOSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor,
339  uint8_t *release, uint8_t *build, char_t *tag, uint32_t len);
340 
361 EXTERN_C
362 CCAUXDLL_API
364  uint8_t *release, uint8_t *build, char_t *tag, uint32_t len);
365 
366 #ifdef __cplusplus
367 } /* namespace CrossControl */
368 #endif
369 
370 #endif /* CC_VERSION_H_ */
char char_t
Definition: CCAuxTypes.h:17
unsigned int uint32_t
Definition: CCAuxTypes.h:39
unsigned char uint8_t
Definition: CCAuxTypes.h:37
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getIOMCUVersion(AUXVERSIONHANDLE, int index, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getOSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getFullOSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build, char_t *tag, uint32_t len)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getFrontVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API AUXVERSIONHANDLE CCAUXDLL_CALLING_CONV GetAuxVersion(void)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getFullSSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build, char_t *tag, uint32_t len)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getCanFdApiVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getFPGAVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getCanFdMcuVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getDMCUVersion(AUXVERSIONHANDLE, int index, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV AuxVersion_release(AUXVERSIONHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getCCAuxDrvVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getFullCCAuxVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build, char_t *tag, uint32_t len)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getSSVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getAllCanFdMcuVersions(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build, int index)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV AuxVersion_getCCAuxVersion(AUXVERSIONHANDLE, uint8_t *major, uint8_t *minor, uint8_t *release, uint8_t *build)
Definition: About.h:30
void * AUXVERSIONHANDLE
Definition: AuxVersion.h:33
eErr
Definition: CCAuxTypes.h:162