1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
| #ifndef __AT_CMD_H__
| #define __AT_CMD_H__
|
| #include "stm32f10x.h"
|
| #define MAX_FRAME_LEN 50
| #define PWTAG_MAXGROUPNUM 20
| #define MAX_REGTAGNUM 10
| void UsartParseDataHandler(uint8_t data);
| struct pwtag_structure
| {
| uint8_t groupnum,remain_time,index;
| uint16_t groupid[PWTAG_MAXGROUPNUM][2],group_interval[PWTAG_MAXGROUPNUM];
| };
| struct regtag_structure
| {
| uint8_t index,remain_time[PWTAG_MAXGROUPNUM];
| uint16_t tagid[MAX_REGTAGNUM],tag_frequency[MAX_REGTAGNUM],tag_slotpos[MAX_REGTAGNUM];
| };
| extern struct regtag_structure regtag_map;
| extern struct pwtag_structure pwtag;
| void SendComMap(uint8_t data_length, uint8_t index);
| #endif
|
|