CCAux  2.15.2.0
CCAux API reference
Smart.h
Go to the documentation of this file.
1 /************************************************
2  *
3  * CROSSCONTROL AUX API
4  *
5  * Smart.h
6  *
7  * Version 2.15.2.0, 2020-07-08
8  *
9  * (c) CrossControl 2010-2020
10  *
11 
12  * File description: Get S.M.A.R.T. data and information from the
13  * secondary storage device (CF/SD/HDD) where the OS is installed.
14  *
15  ************************************************/
16 
17 #ifndef CC_SMART_H_
18 #define CC_SMART_H_
19 
20 #include "CCAuxErrors.h"
21 #include "CCPlatform.h"
22 #include <time.h>
23 
24 #ifdef __cplusplus
25 namespace CrossControl
26 {
27 #endif
28 
29  typedef void* SMARTHANDLE;
30 
44  EXTERN_C
45  CCAUXDLL_API
47  CCAUXDLL_CALLING_CONV
48  GetSmart(void);
49 
60  EXTERN_C
61  CCAUXDLL_API
62  void
63  CCAUXDLL_CALLING_CONV
65 
78  EXTERN_C
79  CCAUXDLL_API
80  eErr
81  CCAUXDLL_CALLING_CONV
83 
98  EXTERN_C
99  CCAUXDLL_API
100  eErr
101  CCAUXDLL_CALLING_CONV
102  Smart_getRemainingLifeTime2 (SMARTHANDLE, uint8_t* lifetimepercent);
103 
119  EXTERN_C
120  CCAUXDLL_API
121  eErr
122  CCAUXDLL_CALLING_CONV
124 
142  EXTERN_C
143  CCAUXDLL_API
144  eErr
145  CCAUXDLL_CALLING_CONV
147 
164  EXTERN_C
165  CCAUXDLL_API
166  eErr
167  CCAUXDLL_CALLING_CONV
168  Smart_getInitialTime (SMARTHANDLE, time_t* time);
169 
189  EXTERN_C
190  CCAUXDLL_API
191  eErr
192  CCAUXDLL_CALLING_CONV
193  Smart_getInitialTime2 (SMARTHANDLE, time_t* time);
194 
195 #ifdef __cplusplus
196 }
197 #endif
198 
199 #endif /* CC_SMART_H_ */
200 
void * SMARTHANDLE
Definition: Smart.h:29
eErr
Definition: CCAuxTypes.h:159
Definition: About.h:30
EXTERN_C CCAUXDLL_API SMARTHANDLE CCAUXDLL_CALLING_CONV GetSmart(void)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV Smart_release(SMARTHANDLE)
unsigned char uint8_t
Definition: CCAuxTypes.h:47
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getDeviceSerial2(SMARTHANDLE, char_t *buff, int32_t len)
signed int int32_t
Definition: CCAuxTypes.h:46
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getInitialTime2(SMARTHANDLE, time_t *time)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getRemainingLifeTime(SMARTHANDLE, uint8_t *lifetimepercent)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getRemainingLifeTime2(SMARTHANDLE, uint8_t *lifetimepercent)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getInitialTime(SMARTHANDLE, time_t *time)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getDeviceSerial(SMARTHANDLE, char_t *buff, int32_t len)
char char_t
Definition: CCAuxTypes.h:27