Prusa MINI Firmware overview
binary.h
Go to the documentation of this file.
1 /*
2  binary.h - Definitions for binary constants
3  Copyright (c) 2006 David A. Mellis. All right reserved.
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #ifndef Binary_h
21 #define Binary_h
22 
23 #define B0 0
24 #define B00 0
25 #define B000 0
26 #define B0000 0
27 #define B00000 0
28 #define B000000 0
29 #define B0000000 0
30 #define B00000000 0
31 #define B1 1
32 #define B01 1
33 #define B001 1
34 #define B0001 1
35 #define B00001 1
36 #define B000001 1
37 #define B0000001 1
38 #define B00000001 1
39 #define B10 2
40 #define B010 2
41 #define B0010 2
42 #define B00010 2
43 #define B000010 2
44 #define B0000010 2
45 #define B00000010 2
46 #define B11 3
47 #define B011 3
48 #define B0011 3
49 #define B00011 3
50 #define B000011 3
51 #define B0000011 3
52 #define B00000011 3
53 #define B100 4
54 #define B0100 4
55 #define B00100 4
56 #define B000100 4
57 #define B0000100 4
58 #define B00000100 4
59 #define B101 5
60 #define B0101 5
61 #define B00101 5
62 #define B000101 5
63 #define B0000101 5
64 #define B00000101 5
65 #define B110 6
66 #define B0110 6
67 #define B00110 6
68 #define B000110 6
69 #define B0000110 6
70 #define B00000110 6
71 #define B111 7
72 #define B0111 7
73 #define B00111 7
74 #define B000111 7
75 #define B0000111 7
76 #define B00000111 7
77 #define B1000 8
78 #define B01000 8
79 #define B001000 8
80 #define B0001000 8
81 #define B00001000 8
82 #define B1001 9
83 #define B01001 9
84 #define B001001 9
85 #define B0001001 9
86 #define B00001001 9
87 #define B1010 10
88 #define B01010 10
89 #define B001010 10
90 #define B0001010 10
91 #define B00001010 10
92 #define B1011 11
93 #define B01011 11
94 #define B001011 11
95 #define B0001011 11
96 #define B00001011 11
97 #define B1100 12
98 #define B01100 12
99 #define B001100 12
100 #define B0001100 12
101 #define B00001100 12
102 #define B1101 13
103 #define B01101 13
104 #define B001101 13
105 #define B0001101 13
106 #define B00001101 13
107 #define B1110 14
108 #define B01110 14
109 #define B001110 14
110 #define B0001110 14
111 #define B00001110 14
112 #define B1111 15
113 #define B01111 15
114 #define B001111 15
115 #define B0001111 15
116 #define B00001111 15
117 #define B10000 16
118 #define B010000 16
119 #define B0010000 16
120 #define B00010000 16
121 #define B10001 17
122 #define B010001 17
123 #define B0010001 17
124 #define B00010001 17
125 #define B10010 18
126 #define B010010 18
127 #define B0010010 18
128 #define B00010010 18
129 #define B10011 19
130 #define B010011 19
131 #define B0010011 19
132 #define B00010011 19
133 #define B10100 20
134 #define B010100 20
135 #define B0010100 20
136 #define B00010100 20
137 #define B10101 21
138 #define B010101 21
139 #define B0010101 21
140 #define B00010101 21
141 #define B10110 22
142 #define B010110 22
143 #define B0010110 22
144 #define B00010110 22
145 #define B10111 23
146 #define B010111 23
147 #define B0010111 23
148 #define B00010111 23
149 #define B11000 24
150 #define B011000 24
151 #define B0011000 24
152 #define B00011000 24
153 #define B11001 25
154 #define B011001 25
155 #define B0011001 25
156 #define B00011001 25
157 #define B11010 26
158 #define B011010 26
159 #define B0011010 26
160 #define B00011010 26
161 #define B11011 27
162 #define B011011 27
163 #define B0011011 27
164 #define B00011011 27
165 #define B11100 28
166 #define B011100 28
167 #define B0011100 28
168 #define B00011100 28
169 #define B11101 29
170 #define B011101 29
171 #define B0011101 29
172 #define B00011101 29
173 #define B11110 30
174 #define B011110 30
175 #define B0011110 30
176 #define B00011110 30
177 #define B11111 31
178 #define B011111 31
179 #define B0011111 31
180 #define B00011111 31
181 #define B100000 32
182 #define B0100000 32
183 #define B00100000 32
184 #define B100001 33
185 #define B0100001 33
186 #define B00100001 33
187 #define B100010 34
188 #define B0100010 34
189 #define B00100010 34
190 #define B100011 35
191 #define B0100011 35
192 #define B00100011 35
193 #define B100100 36
194 #define B0100100 36
195 #define B00100100 36
196 #define B100101 37
197 #define B0100101 37
198 #define B00100101 37
199 #define B100110 38
200 #define B0100110 38
201 #define B00100110 38
202 #define B100111 39
203 #define B0100111 39
204 #define B00100111 39
205 #define B101000 40
206 #define B0101000 40
207 #define B00101000 40
208 #define B101001 41
209 #define B0101001 41
210 #define B00101001 41
211 #define B101010 42
212 #define B0101010 42
213 #define B00101010 42
214 #define B101011 43
215 #define B0101011 43
216 #define B00101011 43
217 #define B101100 44
218 #define B0101100 44
219 #define B00101100 44
220 #define B101101 45
221 #define B0101101 45
222 #define B00101101 45
223 #define B101110 46
224 #define B0101110 46
225 #define B00101110 46
226 #define B101111 47
227 #define B0101111 47
228 #define B00101111 47
229 #define B110000 48
230 #define B0110000 48
231 #define B00110000 48
232 #define B110001 49
233 #define B0110001 49
234 #define B00110001 49
235 #define B110010 50
236 #define B0110010 50
237 #define B00110010 50
238 #define B110011 51
239 #define B0110011 51
240 #define B00110011 51
241 #define B110100 52
242 #define B0110100 52
243 #define B00110100 52
244 #define B110101 53
245 #define B0110101 53
246 #define B00110101 53
247 #define B110110 54
248 #define B0110110 54
249 #define B00110110 54
250 #define B110111 55
251 #define B0110111 55
252 #define B00110111 55
253 #define B111000 56
254 #define B0111000 56
255 #define B00111000 56
256 #define B111001 57
257 #define B0111001 57
258 #define B00111001 57
259 #define B111010 58
260 #define B0111010 58
261 #define B00111010 58
262 #define B111011 59
263 #define B0111011 59
264 #define B00111011 59
265 #define B111100 60
266 #define B0111100 60
267 #define B00111100 60
268 #define B111101 61
269 #define B0111101 61
270 #define B00111101 61
271 #define B111110 62
272 #define B0111110 62
273 #define B00111110 62
274 #define B111111 63
275 #define B0111111 63
276 #define B00111111 63
277 #define B1000000 64
278 #define B01000000 64
279 #define B1000001 65
280 #define B01000001 65
281 #define B1000010 66
282 #define B01000010 66
283 #define B1000011 67
284 #define B01000011 67
285 #define B1000100 68
286 #define B01000100 68
287 #define B1000101 69
288 #define B01000101 69
289 #define B1000110 70
290 #define B01000110 70
291 #define B1000111 71
292 #define B01000111 71
293 #define B1001000 72
294 #define B01001000 72
295 #define B1001001 73
296 #define B01001001 73
297 #define B1001010 74
298 #define B01001010 74
299 #define B1001011 75
300 #define B01001011 75
301 #define B1001100 76
302 #define B01001100 76
303 #define B1001101 77
304 #define B01001101 77
305 #define B1001110 78
306 #define B01001110 78
307 #define B1001111 79
308 #define B01001111 79
309 #define B1010000 80
310 #define B01010000 80
311 #define B1010001 81
312 #define B01010001 81
313 #define B1010010 82
314 #define B01010010 82
315 #define B1010011 83
316 #define B01010011 83
317 #define B1010100 84
318 #define B01010100 84
319 #define B1010101 85
320 #define B01010101 85
321 #define B1010110 86
322 #define B01010110 86
323 #define B1010111 87
324 #define B01010111 87
325 #define B1011000 88
326 #define B01011000 88
327 #define B1011001 89
328 #define B01011001 89
329 #define B1011010 90
330 #define B01011010 90
331 #define B1011011 91
332 #define B01011011 91
333 #define B1011100 92
334 #define B01011100 92
335 #define B1011101 93
336 #define B01011101 93
337 #define B1011110 94
338 #define B01011110 94
339 #define B1011111 95
340 #define B01011111 95
341 #define B1100000 96
342 #define B01100000 96
343 #define B1100001 97
344 #define B01100001 97
345 #define B1100010 98
346 #define B01100010 98
347 #define B1100011 99
348 #define B01100011 99
349 #define B1100100 100
350 #define B01100100 100
351 #define B1100101 101
352 #define B01100101 101
353 #define B1100110 102
354 #define B01100110 102
355 #define B1100111 103
356 #define B01100111 103
357 #define B1101000 104
358 #define B01101000 104
359 #define B1101001 105
360 #define B01101001 105
361 #define B1101010 106
362 #define B01101010 106
363 #define B1101011 107
364 #define B01101011 107
365 #define B1101100 108
366 #define B01101100 108
367 #define B1101101 109
368 #define B01101101 109
369 #define B1101110 110
370 #define B01101110 110
371 #define B1101111 111
372 #define B01101111 111
373 #define B1110000 112
374 #define B01110000 112
375 #define B1110001 113
376 #define B01110001 113
377 #define B1110010 114
378 #define B01110010 114
379 #define B1110011 115
380 #define B01110011 115
381 #define B1110100 116
382 #define B01110100 116
383 #define B1110101 117
384 #define B01110101 117
385 #define B1110110 118
386 #define B01110110 118
387 #define B1110111 119
388 #define B01110111 119
389 #define B1111000 120
390 #define B01111000 120
391 #define B1111001 121
392 #define B01111001 121
393 #define B1111010 122
394 #define B01111010 122
395 #define B1111011 123
396 #define B01111011 123
397 #define B1111100 124
398 #define B01111100 124
399 #define B1111101 125
400 #define B01111101 125
401 #define B1111110 126
402 #define B01111110 126
403 #define B1111111 127
404 #define B01111111 127
405 #define B10000000 128
406 #define B10000001 129
407 #define B10000010 130
408 #define B10000011 131
409 #define B10000100 132
410 #define B10000101 133
411 #define B10000110 134
412 #define B10000111 135
413 #define B10001000 136
414 #define B10001001 137
415 #define B10001010 138
416 #define B10001011 139
417 #define B10001100 140
418 #define B10001101 141
419 #define B10001110 142
420 #define B10001111 143
421 #define B10010000 144
422 #define B10010001 145
423 #define B10010010 146
424 #define B10010011 147
425 #define B10010100 148
426 #define B10010101 149
427 #define B10010110 150
428 #define B10010111 151
429 #define B10011000 152
430 #define B10011001 153
431 #define B10011010 154
432 #define B10011011 155
433 #define B10011100 156
434 #define B10011101 157
435 #define B10011110 158
436 #define B10011111 159
437 #define B10100000 160
438 #define B10100001 161
439 #define B10100010 162
440 #define B10100011 163
441 #define B10100100 164
442 #define B10100101 165
443 #define B10100110 166
444 #define B10100111 167
445 #define B10101000 168
446 #define B10101001 169
447 #define B10101010 170
448 #define B10101011 171
449 #define B10101100 172
450 #define B10101101 173
451 #define B10101110 174
452 #define B10101111 175
453 #define B10110000 176
454 #define B10110001 177
455 #define B10110010 178
456 #define B10110011 179
457 #define B10110100 180
458 #define B10110101 181
459 #define B10110110 182
460 #define B10110111 183
461 #define B10111000 184
462 #define B10111001 185
463 #define B10111010 186
464 #define B10111011 187
465 #define B10111100 188
466 #define B10111101 189
467 #define B10111110 190
468 #define B10111111 191
469 #define B11000000 192
470 #define B11000001 193
471 #define B11000010 194
472 #define B11000011 195
473 #define B11000100 196
474 #define B11000101 197
475 #define B11000110 198
476 #define B11000111 199
477 #define B11001000 200
478 #define B11001001 201
479 #define B11001010 202
480 #define B11001011 203
481 #define B11001100 204
482 #define B11001101 205
483 #define B11001110 206
484 #define B11001111 207
485 #define B11010000 208
486 #define B11010001 209
487 #define B11010010 210
488 #define B11010011 211
489 #define B11010100 212
490 #define B11010101 213
491 #define B11010110 214
492 #define B11010111 215
493 #define B11011000 216
494 #define B11011001 217
495 #define B11011010 218
496 #define B11011011 219
497 #define B11011100 220
498 #define B11011101 221
499 #define B11011110 222
500 #define B11011111 223
501 #define B11100000 224
502 #define B11100001 225
503 #define B11100010 226
504 #define B11100011 227
505 #define B11100100 228
506 #define B11100101 229
507 #define B11100110 230
508 #define B11100111 231
509 #define B11101000 232
510 #define B11101001 233
511 #define B11101010 234
512 #define B11101011 235
513 #define B11101100 236
514 #define B11101101 237
515 #define B11101110 238
516 #define B11101111 239
517 #define B11110000 240
518 #define B11110001 241
519 #define B11110010 242
520 #define B11110011 243
521 #define B11110100 244
522 #define B11110101 245
523 #define B11110110 246
524 #define B11110111 247
525 #define B11111000 248
526 #define B11111001 249
527 #define B11111010 250
528 #define B11111011 251
529 #define B11111100 252
530 #define B11111101 253
531 #define B11111110 254
532 #define B11111111 255
533 
534 #endif