36 lines
686 B
C++
36 lines
686 B
C++
#ifndef TJD_UI_APP_CHARGER_MODEL_H
|
|
#define TJD_UI_APP_CHARGER_MODEL_H
|
|
|
|
#include "cmsis_os2.h"
|
|
#include <string>
|
|
#include "rtc_api.h"
|
|
#include "service_gsensor.h"
|
|
|
|
namespace TJD {
|
|
typedef struct{
|
|
int16_t x;
|
|
int16_t y;
|
|
int16_t z;
|
|
}GsensorData;
|
|
|
|
class TjdUiAppChargerModel
|
|
{
|
|
public:
|
|
static TjdUiAppChargerModel &GetInstance(void)
|
|
{
|
|
static TjdUiAppChargerModel instance;
|
|
return instance;
|
|
};
|
|
int8_t GetChargerValue();
|
|
rtc_time GetRtcTime();
|
|
bool IsShowBedSideClockView();
|
|
GsensorData &GetGsensorInfo();
|
|
private:
|
|
TjdUiAppChargerModel() {};
|
|
~TjdUiAppChargerModel() {};
|
|
GsensorData gsensorData_;
|
|
};
|
|
|
|
} // namespace TJD
|
|
|
|
#endif |