#ifndef __APP_SERVICE_H__
#define __APP_SERVICE_H__

#define SERVICE_REMAINDER_OFF 0
#define SERVICE_REMAINDER_VALID_KM 1
#define SERVICE_REMAINDER_VALID_TIME 2
#define SERVICE_REMAINDER_VALID_ALL 3

typedef struct
{
    int32_t         RemainKm;
    int16_t         RemainDay;
    int32_t         RemainSeconds;
    uint32_t        SetSaveKm;
    uint8_t         SetSaveKmUnit;
    uint8_t         SetSaveMonth;
    uint8_t         Flag;           //0,En  1,mode
    uint8_t         SetNum;     //设定时的数字
    uint8_t         SetBit;     //设定的是哪一位
    uint32_t        SetTempKm;
    uint8_t         SetTempMonth;
    uint8_t         Flag_OK;
    uint8_t         Flag_Cancel;
    uint8_t         Flag_Confirm;
    uint8_t         ServiceType;
    uint8_t         ServiceValid;
    uint8_t         EEServiceValid;
    uint8_t         ServiceTips;
    int32_t         EERemainKm;
    int16_t         EERemainDay;
}SERVICE;

extern SERVICE ServicePara;

extern void USMServiceIntervalSettingFunc(uint8_t Key);
extern void USMServiceResetFunc(uint8_t Key);

#endif