CCAux 2.19.0.0
CCAux API reference
Smart.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: Get S.M.A.R.T. data and information from the
15 * secondary storage device (CF/SD/HDD) where the OS is installed.
16 *
17 ************************************************/
18
19#ifndef CC_SMART_H_
20#define CC_SMART_H_
21
22#include "CCAuxErrors.h"
23#include "CCPlatform.h"
24#include <time.h>
25
26#ifdef __cplusplus
27namespace CrossControl
28{
29#endif
30
31typedef void *SMARTHANDLE;
32
52EXTERN_C
53CCAUXDLL_API
55CCAUXDLL_CALLING_CONV
57
68EXTERN_C
69CCAUXDLL_API
70void CCAUXDLL_CALLING_CONV Smart_release(SMARTHANDLE);
71
84EXTERN_C
85CCAUXDLL_API
86eErr CCAUXDLL_CALLING_CONV Smart_getRemainingLifeTime(SMARTHANDLE, uint8_t *lifetimepercent);
87
102EXTERN_C
103CCAUXDLL_API
104eErr CCAUXDLL_CALLING_CONV Smart_getRemainingLifeTime2(SMARTHANDLE, uint8_t *lifetimepercent);
105
121EXTERN_C
122CCAUXDLL_API
123eErr CCAUXDLL_CALLING_CONV Smart_getDeviceSerial(SMARTHANDLE, char_t *buff, int32_t len);
124
142EXTERN_C
143CCAUXDLL_API
144eErr CCAUXDLL_CALLING_CONV Smart_getDeviceSerial2(SMARTHANDLE, char_t *buff, int32_t len);
145
162EXTERN_C
163CCAUXDLL_API
164eErr CCAUXDLL_CALLING_CONV Smart_getInitialTime(SMARTHANDLE, time_t *time);
165
185EXTERN_C
186CCAUXDLL_API
187eErr CCAUXDLL_CALLING_CONV Smart_getInitialTime2(SMARTHANDLE, time_t *time);
188
190#ifdef __cplusplus
191}
192#endif
193
194#endif /* CC_SMART_H_ */
char char_t
Definition: CCAuxTypes.h:17
signed int int32_t
Definition: CCAuxTypes.h:36
unsigned char uint8_t
Definition: CCAuxTypes.h:37
EXTERN_C CCAUXDLL_API SMARTHANDLE CCAUXDLL_CALLING_CONV GetSmart(void)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV Smart_release(SMARTHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getDeviceSerial(SMARTHANDLE, char_t *buff, int32_t len)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getInitialTime(SMARTHANDLE, time_t *time)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getDeviceSerial2(SMARTHANDLE, char_t *buff, int32_t len)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getRemainingLifeTime(SMARTHANDLE, uint8_t *lifetimepercent)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getInitialTime2(SMARTHANDLE, time_t *time)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Smart_getRemainingLifeTime2(SMARTHANDLE, uint8_t *lifetimepercent)
Definition: About.h:33
void * SMARTHANDLE
Definition: Smart.h:31
eErr
Definition: CCAuxTypes.h:162