29 lines
746 B
C
29 lines
746 B
C
#ifndef HLW8032_H
|
|
#define HLW8032_H
|
|
#include "main.h"
|
|
#include "usart.h"
|
|
#include "stdio.h"
|
|
#include "string.h"
|
|
#include "i2c.h"
|
|
#include "Inf_4G.h"
|
|
// 外部声明,供其他文件使用
|
|
// 在Apphlw8032.h中
|
|
#define UART4_MAX_RECV_LEN 600 // 改为UART4
|
|
#define UART4_MAX_SEND_LEN 600 // 改为UART4
|
|
#define AT24C02_ADDRESS_WRITE 0xA0
|
|
#define AT24C02_ADDRESS_READ 0xA1
|
|
extern uint8_t UART4_RX_BUF[UART4_MAX_RECV_LEN]; // 改为UART4
|
|
extern uint8_t UART4_TX_BUF[UART4_MAX_SEND_LEN]; // 改为UART4
|
|
extern __IO uint16_t UART4_RX_STA; // 改为UART4
|
|
extern uint16_t old_reg,len;
|
|
extern double base_energy;
|
|
extern double V;
|
|
// 函数声明
|
|
void Apphl8032_Init(void);
|
|
void Data_Processing(void);
|
|
|
|
|
|
|
|
#endif
|
|
|