Files
zTC1/TC1/user_power.h
2019-11-02 01:02:08 +08:00

19 lines
318 B
C

#ifndef __USER_POWER_H_
#define __USER_POWER_H_
#define PW_NUM 100
typedef struct
{
int idx;
uint32_t powers[PW_NUM];
} PowerRecord;
extern PowerRecord power_record;
extern uint32_t p_count;
char* GetPowerRecord(int idx);
void PowerInit(void);
void SetPowerRecord(PowerRecord* pr, uint32_t pw);
#endif