root / Version 1.3 / RS232_MUX.X / frame_definitions.h @ master
Historique | Voir | Annoter | Télécharger (431 octets)
1 | f4f84cf1 | Enzo Niro | #ifndef FRAME_DEFINITIONS
|
---|---|---|---|
2 | #define FRAME_DEFINITIONS
|
||
3 | |||
4 | //Frame structure
|
||
5 | // STX ADDR(n + FRAME_ADDR) DATA CR_CHAR LF_CHAR
|
||
6 | |||
7 | #define STX 0x02 |
||
8 | #define CR_CHAR 0x0D |
||
9 | #define LF_CHAR 0x0A |
||
10 | #define FRAME_ADDR_1 '$' |
||
11 | #define FRAME_ADDR_2 '$' |
||
12 | |||
13 | |||
14 | #define CESAR_SHIFT 65 //Identifier will be A B C D [65 66 67 68] then we must move them to 0 1 2 3 |
||
15 | |||
16 | #endif /* XC_HEADER_TEMPLATE_H */ |