My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

binary.h 11KB

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