-
Notifications
You must be signed in to change notification settings - Fork 0
/
barcode39.h
51 lines (44 loc) · 1.37 KB
/
barcode39.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
W1 W2 W3 W4
+-------+--------------------------+
| | 0100 0010 0001 1000 |
+-------+--------------------------+
B1 | 10001 | 1 A K U |
B2 | 01001 | 2 B L V |
B3 | 11000 | 3 C M W |
B4 | 00101 | 4 D N X |
B5 | 10100 | 5 E O Y |
B6 | 01100 | 6 F P Z |
B7 | 00011 | 7 G Q - |
B8 | 10010 | 8 H R . |
B9 | 01010 | 9 I S |
B10| 00110 | 0 J T * |
+-------+--------------------------+
W5 W6 W7 W8
+-------+--------------------------+
| | 1110 1101 1001 0111 |
+-------+--------------------------+
B11| 11111 | $ / + % |
+-------+--------------------------+
*/
#define BAR_BIT_CNT 5;
#define B39_B1 0b10001;
#define B39_B2 0b01001;
#define B39_B3 0b11000;
#define B39_B4 0b00101;
#define B39_B5 0b10100;
#define B39_B6 0b01100;
#define B39_B7 0b00011;
#define B39_B8 0b10010;
#define B39_B9 0b01010;
#define B39_B10 0b00110;
#define B39_B11 0b11111;
#define WHITE_BIT_CNT 4;
#define B39_W1 0b0100;
#define B39_W2 0b0010;
#define B39_W3 0b0001;
#define B39_W4 0b1000;
#define B39_W5 0b1110;
#define B39_W6 0b1101;
#define B39_W7 0b1001;
#define B39_W8 0b0111;