68 lines
1014 B
C++
68 lines
1014 B
C++
#ifndef __SYSTEM_INFOS_MODEL_H
|
|
#define __SYSTEM_INFOS_MODEL_H
|
|
|
|
#include "Common/DataProc/DataProc.h"
|
|
|
|
|
|
namespace Page
|
|
{
|
|
|
|
class SystemInfosModel
|
|
{
|
|
public:
|
|
void Init();
|
|
void Deinit();
|
|
|
|
void GetSportInfo(
|
|
float* trip,
|
|
char* time, uint32_t len,
|
|
float* maxSpd
|
|
);
|
|
|
|
void GetGPSInfo(
|
|
float* lat,
|
|
float* lng,
|
|
float* alt,
|
|
char* utc, uint32_t len,
|
|
float* course,
|
|
float* speed
|
|
);
|
|
|
|
void GetMAGInfo(
|
|
char* info, uint32_t len
|
|
);
|
|
|
|
void GetIMUInfo(
|
|
int* step,
|
|
char* info, uint32_t len
|
|
);
|
|
|
|
void GetRTCInfo(
|
|
char* dateTime, uint32_t len
|
|
);
|
|
|
|
void GetBatteryInfo(
|
|
char* info,
|
|
uint32_t len
|
|
);
|
|
|
|
void GetStorageInfo(
|
|
bool* detect,
|
|
const char** type,
|
|
const char** name,
|
|
char* size, uint32_t len
|
|
);
|
|
|
|
void SetStatusBarStyle(DataProc::StatusBar_Style_t style);
|
|
|
|
private:
|
|
Account* account;
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|