#ifndef _NVS_USER_H_
#define _NVS_USER_H_

#include "Flash_test.h"
#include "Emulated_EEPROM.h"

typedef enum{

    NVS_READ = 0,   /*NVS读取*/
    NVS_WRITE,      /*NVS写入*/

}NVS_Status_en_t;
typedef struct
{
    uint32_t Flag;
    uint32_t Odo;

}st_Mileage_t;

typedef struct
{
    uint8_t TestByte1[1];
    uint8_t TestByte2[2];
    uint8_t TestByte3[3];
    uint8_t TestByte4[4];
    uint8_t TestByte5[5];
    uint8_t TestByte6[6];
    uint8_t TestByte7[7];
    uint8_t TestByte8[8];

}st_TestNVS_t;

extern st_Mileage_t Data_Mileage;

extern uint8_t CAN_Received;
extern uint32_t testnumhaha;
extern uint32_t LastNum;
extern uint32_t LastLastNum;
extern uint32_t ZhiXingCiShu;
extern uint8_t ErrNum;
extern uint8_t g_NVSTestStatus;
extern uint32_t NVSTestCountRead[1];
extern uint32_t BenCiXieRu[1];

extern void NVS_Init(void);
extern void NVS_Test_Max_Service(void);
extern void NVS_Test_Max_Write(void);
extern void NVS_Test_Max_Read(void);

#endif
