mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 04:58:17 +08:00
20 lines
349 B
C
20 lines
349 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;
|
|
extern float real_time_power;
|
|
|
|
char* GetPowerRecord(int idx);
|
|
void PowerInit(void);
|
|
void SetPowerRecord(PowerRecord* pr, uint32_t pw);
|
|
|
|
#endif
|