このライブラリーはテストに作ったものです。近いうちに他の関数を加えた形でアップデートするつもりです。 read_8(int reg)、read_16(int reg) で レジスターregの値を8bit、16bitで読み込み、そのまま返します。受け取り側の変数をint8_t、int16_t で定義すれば正負に分かれた値を得られます。 write_8(int reg,int data)、write_16(int reg,int data)で レジスターregに8bit、16bit 書き込み、成功したら0、失敗したら1を返します。確認はread_8、read_16を用いています。 conect() でデバイスが使用可能かを調べ、見つかれば0、なければ1を返します。 reg_reset() で全てのレジスタの値を0にします。成功したら0、失敗したらその時点で処理を停止し、失敗したレジスタを返します。 レジスタは公式のデータシートに書いてあるものと文字は同じです。 もしかしたらうまく行かない関数があるかもしれません。次のアプデのときに修正予定です。

Dependents:   Nucleo_L3GD20_MMA7361_Kalman

Committer:
hirokimineshita
Date:
Wed Sep 28 11:11:52 2016 +0000
Revision:
1:354deb9168c0
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hirokimineshita 1:354deb9168c0 1 #ifndef _BINARY_H_20150129_1716_
hirokimineshita 1:354deb9168c0 2 #define _BINARY_H_20150129_1716_
hirokimineshita 1:354deb9168c0 3
hirokimineshita 1:354deb9168c0 4 #define b00000000 0
hirokimineshita 1:354deb9168c0 5 #define b00000001 1
hirokimineshita 1:354deb9168c0 6 #define b00000010 2
hirokimineshita 1:354deb9168c0 7 #define b00000011 3
hirokimineshita 1:354deb9168c0 8 #define b00000100 4
hirokimineshita 1:354deb9168c0 9 #define b00000101 5
hirokimineshita 1:354deb9168c0 10 #define b00000110 6
hirokimineshita 1:354deb9168c0 11 #define b00000111 7
hirokimineshita 1:354deb9168c0 12 #define b00001000 8
hirokimineshita 1:354deb9168c0 13 #define b00001001 9
hirokimineshita 1:354deb9168c0 14 #define b00001010 10
hirokimineshita 1:354deb9168c0 15 #define b00001011 11
hirokimineshita 1:354deb9168c0 16 #define b00001100 12
hirokimineshita 1:354deb9168c0 17 #define b00001101 13
hirokimineshita 1:354deb9168c0 18 #define b00001110 14
hirokimineshita 1:354deb9168c0 19 #define b00001111 15
hirokimineshita 1:354deb9168c0 20 #define b00010000 16
hirokimineshita 1:354deb9168c0 21 #define b00010001 17
hirokimineshita 1:354deb9168c0 22 #define b00010010 18
hirokimineshita 1:354deb9168c0 23 #define b00010011 19
hirokimineshita 1:354deb9168c0 24 #define b00010100 20
hirokimineshita 1:354deb9168c0 25 #define b00010101 21
hirokimineshita 1:354deb9168c0 26 #define b00010110 22
hirokimineshita 1:354deb9168c0 27 #define b00010111 23
hirokimineshita 1:354deb9168c0 28 #define b00011000 24
hirokimineshita 1:354deb9168c0 29 #define b00011001 25
hirokimineshita 1:354deb9168c0 30 #define b00011010 26
hirokimineshita 1:354deb9168c0 31 #define b00011011 27
hirokimineshita 1:354deb9168c0 32 #define b00011100 28
hirokimineshita 1:354deb9168c0 33 #define b00011101 29
hirokimineshita 1:354deb9168c0 34 #define b00011110 30
hirokimineshita 1:354deb9168c0 35 #define b00011111 31
hirokimineshita 1:354deb9168c0 36 #define b00100000 32
hirokimineshita 1:354deb9168c0 37 #define b00100001 33
hirokimineshita 1:354deb9168c0 38 #define b00100010 34
hirokimineshita 1:354deb9168c0 39 #define b00100011 35
hirokimineshita 1:354deb9168c0 40 #define b00100100 36
hirokimineshita 1:354deb9168c0 41 #define b00100101 37
hirokimineshita 1:354deb9168c0 42 #define b00100110 38
hirokimineshita 1:354deb9168c0 43 #define b00100111 39
hirokimineshita 1:354deb9168c0 44 #define b00101000 40
hirokimineshita 1:354deb9168c0 45 #define b00101001 41
hirokimineshita 1:354deb9168c0 46 #define b00101010 42
hirokimineshita 1:354deb9168c0 47 #define b00101011 43
hirokimineshita 1:354deb9168c0 48 #define b00101100 44
hirokimineshita 1:354deb9168c0 49 #define b00101101 45
hirokimineshita 1:354deb9168c0 50 #define b00101110 46
hirokimineshita 1:354deb9168c0 51 #define b00101111 47
hirokimineshita 1:354deb9168c0 52 #define b00110000 48
hirokimineshita 1:354deb9168c0 53 #define b00110001 49
hirokimineshita 1:354deb9168c0 54 #define b00110010 50
hirokimineshita 1:354deb9168c0 55 #define b00110011 51
hirokimineshita 1:354deb9168c0 56 #define b00110100 52
hirokimineshita 1:354deb9168c0 57 #define b00110101 53
hirokimineshita 1:354deb9168c0 58 #define b00110110 54
hirokimineshita 1:354deb9168c0 59 #define b00110111 55
hirokimineshita 1:354deb9168c0 60 #define b00111000 56
hirokimineshita 1:354deb9168c0 61 #define b00111001 57
hirokimineshita 1:354deb9168c0 62 #define b00111010 58
hirokimineshita 1:354deb9168c0 63 #define b00111011 59
hirokimineshita 1:354deb9168c0 64 #define b00111100 60
hirokimineshita 1:354deb9168c0 65 #define b00111101 61
hirokimineshita 1:354deb9168c0 66 #define b00111110 62
hirokimineshita 1:354deb9168c0 67 #define b00111111 63
hirokimineshita 1:354deb9168c0 68 #define b01000000 64
hirokimineshita 1:354deb9168c0 69 #define b01000001 65
hirokimineshita 1:354deb9168c0 70 #define b01000010 66
hirokimineshita 1:354deb9168c0 71 #define b01000011 67
hirokimineshita 1:354deb9168c0 72 #define b01000100 68
hirokimineshita 1:354deb9168c0 73 #define b01000101 69
hirokimineshita 1:354deb9168c0 74 #define b01000110 70
hirokimineshita 1:354deb9168c0 75 #define b01000111 71
hirokimineshita 1:354deb9168c0 76 #define b01001000 72
hirokimineshita 1:354deb9168c0 77 #define b01001001 73
hirokimineshita 1:354deb9168c0 78 #define b01001010 74
hirokimineshita 1:354deb9168c0 79 #define b01001011 75
hirokimineshita 1:354deb9168c0 80 #define b01001100 76
hirokimineshita 1:354deb9168c0 81 #define b01001101 77
hirokimineshita 1:354deb9168c0 82 #define b01001110 78
hirokimineshita 1:354deb9168c0 83 #define b01001111 79
hirokimineshita 1:354deb9168c0 84 #define b01010000 80
hirokimineshita 1:354deb9168c0 85 #define b01010001 81
hirokimineshita 1:354deb9168c0 86 #define b01010010 82
hirokimineshita 1:354deb9168c0 87 #define b01010011 83
hirokimineshita 1:354deb9168c0 88 #define b01010100 84
hirokimineshita 1:354deb9168c0 89 #define b01010101 85
hirokimineshita 1:354deb9168c0 90 #define b01010110 86
hirokimineshita 1:354deb9168c0 91 #define b01010111 87
hirokimineshita 1:354deb9168c0 92 #define b01011000 88
hirokimineshita 1:354deb9168c0 93 #define b01011001 89
hirokimineshita 1:354deb9168c0 94 #define b01011010 90
hirokimineshita 1:354deb9168c0 95 #define b01011011 91
hirokimineshita 1:354deb9168c0 96 #define b01011100 92
hirokimineshita 1:354deb9168c0 97 #define b01011101 93
hirokimineshita 1:354deb9168c0 98 #define b01011110 94
hirokimineshita 1:354deb9168c0 99 #define b01011111 95
hirokimineshita 1:354deb9168c0 100 #define b01100000 96
hirokimineshita 1:354deb9168c0 101 #define b01100001 97
hirokimineshita 1:354deb9168c0 102 #define b01100010 98
hirokimineshita 1:354deb9168c0 103 #define b01100011 99
hirokimineshita 1:354deb9168c0 104 #define b01100100 100
hirokimineshita 1:354deb9168c0 105 #define b01100101 101
hirokimineshita 1:354deb9168c0 106 #define b01100110 102
hirokimineshita 1:354deb9168c0 107 #define b01100111 103
hirokimineshita 1:354deb9168c0 108 #define b01101000 104
hirokimineshita 1:354deb9168c0 109 #define b01101001 105
hirokimineshita 1:354deb9168c0 110 #define b01101010 106
hirokimineshita 1:354deb9168c0 111 #define b01101011 107
hirokimineshita 1:354deb9168c0 112 #define b01101100 108
hirokimineshita 1:354deb9168c0 113 #define b01101101 109
hirokimineshita 1:354deb9168c0 114 #define b01101110 110
hirokimineshita 1:354deb9168c0 115 #define b01101111 111
hirokimineshita 1:354deb9168c0 116 #define b01110000 112
hirokimineshita 1:354deb9168c0 117 #define b01110001 113
hirokimineshita 1:354deb9168c0 118 #define b01110010 114
hirokimineshita 1:354deb9168c0 119 #define b01110011 115
hirokimineshita 1:354deb9168c0 120 #define b01110100 116
hirokimineshita 1:354deb9168c0 121 #define b01110101 117
hirokimineshita 1:354deb9168c0 122 #define b01110110 118
hirokimineshita 1:354deb9168c0 123 #define b01110111 119
hirokimineshita 1:354deb9168c0 124 #define b01111000 120
hirokimineshita 1:354deb9168c0 125 #define b01111001 121
hirokimineshita 1:354deb9168c0 126 #define b01111010 122
hirokimineshita 1:354deb9168c0 127 #define b01111011 123
hirokimineshita 1:354deb9168c0 128 #define b01111100 124
hirokimineshita 1:354deb9168c0 129 #define b01111101 125
hirokimineshita 1:354deb9168c0 130 #define b01111110 126
hirokimineshita 1:354deb9168c0 131 #define b01111111 127
hirokimineshita 1:354deb9168c0 132 #define b10000000 128
hirokimineshita 1:354deb9168c0 133 #define b10000001 129
hirokimineshita 1:354deb9168c0 134 #define b10000010 130
hirokimineshita 1:354deb9168c0 135 #define b10000011 131
hirokimineshita 1:354deb9168c0 136 #define b10000100 132
hirokimineshita 1:354deb9168c0 137 #define b10000101 133
hirokimineshita 1:354deb9168c0 138 #define b10000110 134
hirokimineshita 1:354deb9168c0 139 #define b10000111 135
hirokimineshita 1:354deb9168c0 140 #define b10001000 136
hirokimineshita 1:354deb9168c0 141 #define b10001001 137
hirokimineshita 1:354deb9168c0 142 #define b10001010 138
hirokimineshita 1:354deb9168c0 143 #define b10001011 139
hirokimineshita 1:354deb9168c0 144 #define b10001100 140
hirokimineshita 1:354deb9168c0 145 #define b10001101 141
hirokimineshita 1:354deb9168c0 146 #define b10001110 142
hirokimineshita 1:354deb9168c0 147 #define b10001111 143
hirokimineshita 1:354deb9168c0 148 #define b10010000 144
hirokimineshita 1:354deb9168c0 149 #define b10010001 145
hirokimineshita 1:354deb9168c0 150 #define b10010010 146
hirokimineshita 1:354deb9168c0 151 #define b10010011 147
hirokimineshita 1:354deb9168c0 152 #define b10010100 148
hirokimineshita 1:354deb9168c0 153 #define b10010101 149
hirokimineshita 1:354deb9168c0 154 #define b10010110 150
hirokimineshita 1:354deb9168c0 155 #define b10010111 151
hirokimineshita 1:354deb9168c0 156 #define b10011000 152
hirokimineshita 1:354deb9168c0 157 #define b10011001 153
hirokimineshita 1:354deb9168c0 158 #define b10011010 154
hirokimineshita 1:354deb9168c0 159 #define b10011011 155
hirokimineshita 1:354deb9168c0 160 #define b10011100 156
hirokimineshita 1:354deb9168c0 161 #define b10011101 157
hirokimineshita 1:354deb9168c0 162 #define b10011110 158
hirokimineshita 1:354deb9168c0 163 #define b10011111 159
hirokimineshita 1:354deb9168c0 164 #define b10100000 160
hirokimineshita 1:354deb9168c0 165 #define b10100001 161
hirokimineshita 1:354deb9168c0 166 #define b10100010 162
hirokimineshita 1:354deb9168c0 167 #define b10100011 163
hirokimineshita 1:354deb9168c0 168 #define b10100100 164
hirokimineshita 1:354deb9168c0 169 #define b10100101 165
hirokimineshita 1:354deb9168c0 170 #define b10100110 166
hirokimineshita 1:354deb9168c0 171 #define b10100111 167
hirokimineshita 1:354deb9168c0 172 #define b10101000 168
hirokimineshita 1:354deb9168c0 173 #define b10101001 169
hirokimineshita 1:354deb9168c0 174 #define b10101010 170
hirokimineshita 1:354deb9168c0 175 #define b10101011 171
hirokimineshita 1:354deb9168c0 176 #define b10101100 172
hirokimineshita 1:354deb9168c0 177 #define b10101101 173
hirokimineshita 1:354deb9168c0 178 #define b10101110 174
hirokimineshita 1:354deb9168c0 179 #define b10101111 175
hirokimineshita 1:354deb9168c0 180 #define b10110000 176
hirokimineshita 1:354deb9168c0 181 #define b10110001 177
hirokimineshita 1:354deb9168c0 182 #define b10110010 178
hirokimineshita 1:354deb9168c0 183 #define b10110011 179
hirokimineshita 1:354deb9168c0 184 #define b10110100 180
hirokimineshita 1:354deb9168c0 185 #define b10110101 181
hirokimineshita 1:354deb9168c0 186 #define b10110110 182
hirokimineshita 1:354deb9168c0 187 #define b10110111 183
hirokimineshita 1:354deb9168c0 188 #define b10111000 184
hirokimineshita 1:354deb9168c0 189 #define b10111001 185
hirokimineshita 1:354deb9168c0 190 #define b10111010 186
hirokimineshita 1:354deb9168c0 191 #define b10111011 187
hirokimineshita 1:354deb9168c0 192 #define b10111100 188
hirokimineshita 1:354deb9168c0 193 #define b10111101 189
hirokimineshita 1:354deb9168c0 194 #define b10111110 190
hirokimineshita 1:354deb9168c0 195 #define b10111111 191
hirokimineshita 1:354deb9168c0 196 #define b11000000 192
hirokimineshita 1:354deb9168c0 197 #define b11000001 193
hirokimineshita 1:354deb9168c0 198 #define b11000010 194
hirokimineshita 1:354deb9168c0 199 #define b11000011 195
hirokimineshita 1:354deb9168c0 200 #define b11000100 196
hirokimineshita 1:354deb9168c0 201 #define b11000101 197
hirokimineshita 1:354deb9168c0 202 #define b11000110 198
hirokimineshita 1:354deb9168c0 203 #define b11000111 199
hirokimineshita 1:354deb9168c0 204 #define b11001000 200
hirokimineshita 1:354deb9168c0 205 #define b11001001 201
hirokimineshita 1:354deb9168c0 206 #define b11001010 202
hirokimineshita 1:354deb9168c0 207 #define b11001011 203
hirokimineshita 1:354deb9168c0 208 #define b11001100 204
hirokimineshita 1:354deb9168c0 209 #define b11001101 205
hirokimineshita 1:354deb9168c0 210 #define b11001110 206
hirokimineshita 1:354deb9168c0 211 #define b11001111 207
hirokimineshita 1:354deb9168c0 212 #define b11010000 208
hirokimineshita 1:354deb9168c0 213 #define b11010001 209
hirokimineshita 1:354deb9168c0 214 #define b11010010 210
hirokimineshita 1:354deb9168c0 215 #define b11010011 211
hirokimineshita 1:354deb9168c0 216 #define b11010100 212
hirokimineshita 1:354deb9168c0 217 #define b11010101 213
hirokimineshita 1:354deb9168c0 218 #define b11010110 214
hirokimineshita 1:354deb9168c0 219 #define b11010111 215
hirokimineshita 1:354deb9168c0 220 #define b11011000 216
hirokimineshita 1:354deb9168c0 221 #define b11011001 217
hirokimineshita 1:354deb9168c0 222 #define b11011010 218
hirokimineshita 1:354deb9168c0 223 #define b11011011 219
hirokimineshita 1:354deb9168c0 224 #define b11011100 220
hirokimineshita 1:354deb9168c0 225 #define b11011101 221
hirokimineshita 1:354deb9168c0 226 #define b11011110 222
hirokimineshita 1:354deb9168c0 227 #define b11011111 223
hirokimineshita 1:354deb9168c0 228 #define b11100000 224
hirokimineshita 1:354deb9168c0 229 #define b11100001 225
hirokimineshita 1:354deb9168c0 230 #define b11100010 226
hirokimineshita 1:354deb9168c0 231 #define b11100011 227
hirokimineshita 1:354deb9168c0 232 #define b11100100 228
hirokimineshita 1:354deb9168c0 233 #define b11100101 229
hirokimineshita 1:354deb9168c0 234 #define b11100110 230
hirokimineshita 1:354deb9168c0 235 #define b11100111 231
hirokimineshita 1:354deb9168c0 236 #define b11101000 232
hirokimineshita 1:354deb9168c0 237 #define b11101001 233
hirokimineshita 1:354deb9168c0 238 #define b11101010 234
hirokimineshita 1:354deb9168c0 239 #define b11101011 235
hirokimineshita 1:354deb9168c0 240 #define b11101100 236
hirokimineshita 1:354deb9168c0 241 #define b11101101 237
hirokimineshita 1:354deb9168c0 242 #define b11101110 238
hirokimineshita 1:354deb9168c0 243 #define b11101111 239
hirokimineshita 1:354deb9168c0 244 #define b11110000 240
hirokimineshita 1:354deb9168c0 245 #define b11110001 241
hirokimineshita 1:354deb9168c0 246 #define b11110010 242
hirokimineshita 1:354deb9168c0 247 #define b11110011 243
hirokimineshita 1:354deb9168c0 248 #define b11110100 244
hirokimineshita 1:354deb9168c0 249 #define b11110101 245
hirokimineshita 1:354deb9168c0 250 #define b11110110 246
hirokimineshita 1:354deb9168c0 251 #define b11110111 247
hirokimineshita 1:354deb9168c0 252 #define b11111000 248
hirokimineshita 1:354deb9168c0 253 #define b11111001 249
hirokimineshita 1:354deb9168c0 254 #define b11111010 250
hirokimineshita 1:354deb9168c0 255 #define b11111011 251
hirokimineshita 1:354deb9168c0 256 #define b11111100 252
hirokimineshita 1:354deb9168c0 257 #define b11111101 253
hirokimineshita 1:354deb9168c0 258 #define b11111110 254
hirokimineshita 1:354deb9168c0 259 #define b11111111 255
hirokimineshita 1:354deb9168c0 260
hirokimineshita 1:354deb9168c0 261 #define b0000000 0
hirokimineshita 1:354deb9168c0 262 #define b0000001 1
hirokimineshita 1:354deb9168c0 263 #define b0000010 2
hirokimineshita 1:354deb9168c0 264 #define b0000011 3
hirokimineshita 1:354deb9168c0 265 #define b0000100 4
hirokimineshita 1:354deb9168c0 266 #define b0000101 5
hirokimineshita 1:354deb9168c0 267 #define b0000110 6
hirokimineshita 1:354deb9168c0 268 #define b0000111 7
hirokimineshita 1:354deb9168c0 269 #define b0001000 8
hirokimineshita 1:354deb9168c0 270 #define b0001001 9
hirokimineshita 1:354deb9168c0 271 #define b0001010 10
hirokimineshita 1:354deb9168c0 272 #define b0001011 11
hirokimineshita 1:354deb9168c0 273 #define b0001100 12
hirokimineshita 1:354deb9168c0 274 #define b0001101 13
hirokimineshita 1:354deb9168c0 275 #define b0001110 14
hirokimineshita 1:354deb9168c0 276 #define b0001111 15
hirokimineshita 1:354deb9168c0 277 #define b0010000 16
hirokimineshita 1:354deb9168c0 278 #define b0010001 17
hirokimineshita 1:354deb9168c0 279 #define b0010010 18
hirokimineshita 1:354deb9168c0 280 #define b0010011 19
hirokimineshita 1:354deb9168c0 281 #define b0010100 20
hirokimineshita 1:354deb9168c0 282 #define b0010101 21
hirokimineshita 1:354deb9168c0 283 #define b0010110 22
hirokimineshita 1:354deb9168c0 284 #define b0010111 23
hirokimineshita 1:354deb9168c0 285 #define b0011000 24
hirokimineshita 1:354deb9168c0 286 #define b0011001 25
hirokimineshita 1:354deb9168c0 287 #define b0011010 26
hirokimineshita 1:354deb9168c0 288 #define b0011011 27
hirokimineshita 1:354deb9168c0 289 #define b0011100 28
hirokimineshita 1:354deb9168c0 290 #define b0011101 29
hirokimineshita 1:354deb9168c0 291 #define b0011110 30
hirokimineshita 1:354deb9168c0 292 #define b0011111 31
hirokimineshita 1:354deb9168c0 293 #define b0100000 32
hirokimineshita 1:354deb9168c0 294 #define b0100001 33
hirokimineshita 1:354deb9168c0 295 #define b0100010 34
hirokimineshita 1:354deb9168c0 296 #define b0100011 35
hirokimineshita 1:354deb9168c0 297 #define b0100100 36
hirokimineshita 1:354deb9168c0 298 #define b0100101 37
hirokimineshita 1:354deb9168c0 299 #define b0100110 38
hirokimineshita 1:354deb9168c0 300 #define b0100111 39
hirokimineshita 1:354deb9168c0 301 #define b0101000 40
hirokimineshita 1:354deb9168c0 302 #define b0101001 41
hirokimineshita 1:354deb9168c0 303 #define b0101010 42
hirokimineshita 1:354deb9168c0 304 #define b0101011 43
hirokimineshita 1:354deb9168c0 305 #define b0101100 44
hirokimineshita 1:354deb9168c0 306 #define b0101101 45
hirokimineshita 1:354deb9168c0 307 #define b0101110 46
hirokimineshita 1:354deb9168c0 308 #define b0101111 47
hirokimineshita 1:354deb9168c0 309 #define b0110000 48
hirokimineshita 1:354deb9168c0 310 #define b0110001 49
hirokimineshita 1:354deb9168c0 311 #define b0110010 50
hirokimineshita 1:354deb9168c0 312 #define b0110011 51
hirokimineshita 1:354deb9168c0 313 #define b0110100 52
hirokimineshita 1:354deb9168c0 314 #define b0110101 53
hirokimineshita 1:354deb9168c0 315 #define b0110110 54
hirokimineshita 1:354deb9168c0 316 #define b0110111 55
hirokimineshita 1:354deb9168c0 317 #define b0111000 56
hirokimineshita 1:354deb9168c0 318 #define b0111001 57
hirokimineshita 1:354deb9168c0 319 #define b0111010 58
hirokimineshita 1:354deb9168c0 320 #define b0111011 59
hirokimineshita 1:354deb9168c0 321 #define b0111100 60
hirokimineshita 1:354deb9168c0 322 #define b0111101 61
hirokimineshita 1:354deb9168c0 323 #define b0111110 62
hirokimineshita 1:354deb9168c0 324 #define b0111111 63
hirokimineshita 1:354deb9168c0 325 #define b1000000 64
hirokimineshita 1:354deb9168c0 326 #define b1000001 65
hirokimineshita 1:354deb9168c0 327 #define b1000010 66
hirokimineshita 1:354deb9168c0 328 #define b1000011 67
hirokimineshita 1:354deb9168c0 329 #define b1000100 68
hirokimineshita 1:354deb9168c0 330 #define b1000101 69
hirokimineshita 1:354deb9168c0 331 #define b1000110 70
hirokimineshita 1:354deb9168c0 332 #define b1000111 71
hirokimineshita 1:354deb9168c0 333 #define b1001000 72
hirokimineshita 1:354deb9168c0 334 #define b1001001 73
hirokimineshita 1:354deb9168c0 335 #define b1001010 74
hirokimineshita 1:354deb9168c0 336 #define b1001011 75
hirokimineshita 1:354deb9168c0 337 #define b1001100 76
hirokimineshita 1:354deb9168c0 338 #define b1001101 77
hirokimineshita 1:354deb9168c0 339 #define b1001110 78
hirokimineshita 1:354deb9168c0 340 #define b1001111 79
hirokimineshita 1:354deb9168c0 341 #define b1010000 80
hirokimineshita 1:354deb9168c0 342 #define b1010001 81
hirokimineshita 1:354deb9168c0 343 #define b1010010 82
hirokimineshita 1:354deb9168c0 344 #define b1010011 83
hirokimineshita 1:354deb9168c0 345 #define b1010100 84
hirokimineshita 1:354deb9168c0 346 #define b1010101 85
hirokimineshita 1:354deb9168c0 347 #define b1010110 86
hirokimineshita 1:354deb9168c0 348 #define b1010111 87
hirokimineshita 1:354deb9168c0 349 #define b1011000 88
hirokimineshita 1:354deb9168c0 350 #define b1011001 89
hirokimineshita 1:354deb9168c0 351 #define b1011010 90
hirokimineshita 1:354deb9168c0 352 #define b1011011 91
hirokimineshita 1:354deb9168c0 353 #define b1011100 92
hirokimineshita 1:354deb9168c0 354 #define b1011101 93
hirokimineshita 1:354deb9168c0 355 #define b1011110 94
hirokimineshita 1:354deb9168c0 356 #define b1011111 95
hirokimineshita 1:354deb9168c0 357 #define b1100000 96
hirokimineshita 1:354deb9168c0 358 #define b1100001 97
hirokimineshita 1:354deb9168c0 359 #define b1100010 98
hirokimineshita 1:354deb9168c0 360 #define b1100011 99
hirokimineshita 1:354deb9168c0 361 #define b1100100 100
hirokimineshita 1:354deb9168c0 362 #define b1100101 101
hirokimineshita 1:354deb9168c0 363 #define b1100110 102
hirokimineshita 1:354deb9168c0 364 #define b1100111 103
hirokimineshita 1:354deb9168c0 365 #define b1101000 104
hirokimineshita 1:354deb9168c0 366 #define b1101001 105
hirokimineshita 1:354deb9168c0 367 #define b1101010 106
hirokimineshita 1:354deb9168c0 368 #define b1101011 107
hirokimineshita 1:354deb9168c0 369 #define b1101100 108
hirokimineshita 1:354deb9168c0 370 #define b1101101 109
hirokimineshita 1:354deb9168c0 371 #define b1101110 110
hirokimineshita 1:354deb9168c0 372 #define b1101111 111
hirokimineshita 1:354deb9168c0 373 #define b1110000 112
hirokimineshita 1:354deb9168c0 374 #define b1110001 113
hirokimineshita 1:354deb9168c0 375 #define b1110010 114
hirokimineshita 1:354deb9168c0 376 #define b1110011 115
hirokimineshita 1:354deb9168c0 377 #define b1110100 116
hirokimineshita 1:354deb9168c0 378 #define b1110101 117
hirokimineshita 1:354deb9168c0 379 #define b1110110 118
hirokimineshita 1:354deb9168c0 380 #define b1110111 119
hirokimineshita 1:354deb9168c0 381 #define b1111000 120
hirokimineshita 1:354deb9168c0 382 #define b1111001 121
hirokimineshita 1:354deb9168c0 383 #define b1111010 122
hirokimineshita 1:354deb9168c0 384 #define b1111011 123
hirokimineshita 1:354deb9168c0 385 #define b1111100 124
hirokimineshita 1:354deb9168c0 386 #define b1111101 125
hirokimineshita 1:354deb9168c0 387 #define b1111110 126
hirokimineshita 1:354deb9168c0 388 #define b1111111 127
hirokimineshita 1:354deb9168c0 389
hirokimineshita 1:354deb9168c0 390 #define b000000 0
hirokimineshita 1:354deb9168c0 391 #define b000001 1
hirokimineshita 1:354deb9168c0 392 #define b000010 2
hirokimineshita 1:354deb9168c0 393 #define b000011 3
hirokimineshita 1:354deb9168c0 394 #define b000100 4
hirokimineshita 1:354deb9168c0 395 #define b000101 5
hirokimineshita 1:354deb9168c0 396 #define b000110 6
hirokimineshita 1:354deb9168c0 397 #define b000111 7
hirokimineshita 1:354deb9168c0 398 #define b001000 8
hirokimineshita 1:354deb9168c0 399 #define b001001 9
hirokimineshita 1:354deb9168c0 400 #define b001010 10
hirokimineshita 1:354deb9168c0 401 #define b001011 11
hirokimineshita 1:354deb9168c0 402 #define b001100 12
hirokimineshita 1:354deb9168c0 403 #define b001101 13
hirokimineshita 1:354deb9168c0 404 #define b001110 14
hirokimineshita 1:354deb9168c0 405 #define b001111 15
hirokimineshita 1:354deb9168c0 406 #define b010000 16
hirokimineshita 1:354deb9168c0 407 #define b010001 17
hirokimineshita 1:354deb9168c0 408 #define b010010 18
hirokimineshita 1:354deb9168c0 409 #define b010011 19
hirokimineshita 1:354deb9168c0 410 #define b010100 20
hirokimineshita 1:354deb9168c0 411 #define b010101 21
hirokimineshita 1:354deb9168c0 412 #define b010110 22
hirokimineshita 1:354deb9168c0 413 #define b010111 23
hirokimineshita 1:354deb9168c0 414 #define b011000 24
hirokimineshita 1:354deb9168c0 415 #define b011001 25
hirokimineshita 1:354deb9168c0 416 #define b011010 26
hirokimineshita 1:354deb9168c0 417 #define b011011 27
hirokimineshita 1:354deb9168c0 418 #define b011100 28
hirokimineshita 1:354deb9168c0 419 #define b011101 29
hirokimineshita 1:354deb9168c0 420 #define b011110 30
hirokimineshita 1:354deb9168c0 421 #define b011111 31
hirokimineshita 1:354deb9168c0 422 #define b100000 32
hirokimineshita 1:354deb9168c0 423 #define b100001 33
hirokimineshita 1:354deb9168c0 424 #define b100010 34
hirokimineshita 1:354deb9168c0 425 #define b100011 35
hirokimineshita 1:354deb9168c0 426 #define b100100 36
hirokimineshita 1:354deb9168c0 427 #define b100101 37
hirokimineshita 1:354deb9168c0 428 #define b100110 38
hirokimineshita 1:354deb9168c0 429 #define b100111 39
hirokimineshita 1:354deb9168c0 430 #define b101000 40
hirokimineshita 1:354deb9168c0 431 #define b101001 41
hirokimineshita 1:354deb9168c0 432 #define b101010 42
hirokimineshita 1:354deb9168c0 433 #define b101011 43
hirokimineshita 1:354deb9168c0 434 #define b101100 44
hirokimineshita 1:354deb9168c0 435 #define b101101 45
hirokimineshita 1:354deb9168c0 436 #define b101110 46
hirokimineshita 1:354deb9168c0 437 #define b101111 47
hirokimineshita 1:354deb9168c0 438 #define b110000 48
hirokimineshita 1:354deb9168c0 439 #define b110001 49
hirokimineshita 1:354deb9168c0 440 #define b110010 50
hirokimineshita 1:354deb9168c0 441 #define b110011 51
hirokimineshita 1:354deb9168c0 442 #define b110100 52
hirokimineshita 1:354deb9168c0 443 #define b110101 53
hirokimineshita 1:354deb9168c0 444 #define b110110 54
hirokimineshita 1:354deb9168c0 445 #define b110111 55
hirokimineshita 1:354deb9168c0 446 #define b111000 56
hirokimineshita 1:354deb9168c0 447 #define b111001 57
hirokimineshita 1:354deb9168c0 448 #define b111010 58
hirokimineshita 1:354deb9168c0 449 #define b111011 59
hirokimineshita 1:354deb9168c0 450 #define b111100 60
hirokimineshita 1:354deb9168c0 451 #define b111101 61
hirokimineshita 1:354deb9168c0 452 #define b111110 62
hirokimineshita 1:354deb9168c0 453 #define b111111 63
hirokimineshita 1:354deb9168c0 454
hirokimineshita 1:354deb9168c0 455 #define b00000 0
hirokimineshita 1:354deb9168c0 456 #define b00001 1
hirokimineshita 1:354deb9168c0 457 #define b00010 2
hirokimineshita 1:354deb9168c0 458 #define b00011 3
hirokimineshita 1:354deb9168c0 459 #define b00100 4
hirokimineshita 1:354deb9168c0 460 #define b00101 5
hirokimineshita 1:354deb9168c0 461 #define b00110 6
hirokimineshita 1:354deb9168c0 462 #define b00111 7
hirokimineshita 1:354deb9168c0 463 #define b01000 8
hirokimineshita 1:354deb9168c0 464 #define b01001 9
hirokimineshita 1:354deb9168c0 465 #define b01010 10
hirokimineshita 1:354deb9168c0 466 #define b01011 11
hirokimineshita 1:354deb9168c0 467 #define b01100 12
hirokimineshita 1:354deb9168c0 468 #define b01101 13
hirokimineshita 1:354deb9168c0 469 #define b01110 14
hirokimineshita 1:354deb9168c0 470 #define b01111 15
hirokimineshita 1:354deb9168c0 471 #define b10000 16
hirokimineshita 1:354deb9168c0 472 #define b10001 17
hirokimineshita 1:354deb9168c0 473 #define b10010 18
hirokimineshita 1:354deb9168c0 474 #define b10011 19
hirokimineshita 1:354deb9168c0 475 #define b10100 20
hirokimineshita 1:354deb9168c0 476 #define b10101 21
hirokimineshita 1:354deb9168c0 477 #define b10110 22
hirokimineshita 1:354deb9168c0 478 #define b10111 23
hirokimineshita 1:354deb9168c0 479 #define b11000 24
hirokimineshita 1:354deb9168c0 480 #define b11001 25
hirokimineshita 1:354deb9168c0 481 #define b11010 26
hirokimineshita 1:354deb9168c0 482 #define b11011 27
hirokimineshita 1:354deb9168c0 483 #define b11100 28
hirokimineshita 1:354deb9168c0 484 #define b11101 29
hirokimineshita 1:354deb9168c0 485 #define b11110 30
hirokimineshita 1:354deb9168c0 486 #define b11111 31
hirokimineshita 1:354deb9168c0 487
hirokimineshita 1:354deb9168c0 488 #define b0000 0
hirokimineshita 1:354deb9168c0 489 #define b0001 1
hirokimineshita 1:354deb9168c0 490 #define b0010 2
hirokimineshita 1:354deb9168c0 491 #define b0011 3
hirokimineshita 1:354deb9168c0 492 #define b0100 4
hirokimineshita 1:354deb9168c0 493 #define b0101 5
hirokimineshita 1:354deb9168c0 494 #define b0110 6
hirokimineshita 1:354deb9168c0 495 #define b0111 7
hirokimineshita 1:354deb9168c0 496 #define b1000 8
hirokimineshita 1:354deb9168c0 497 #define b1001 9
hirokimineshita 1:354deb9168c0 498 #define b1010 10
hirokimineshita 1:354deb9168c0 499 #define b1011 11
hirokimineshita 1:354deb9168c0 500 #define b1100 12
hirokimineshita 1:354deb9168c0 501 #define b1101 13
hirokimineshita 1:354deb9168c0 502 #define b1110 14
hirokimineshita 1:354deb9168c0 503 #define b1111 15
hirokimineshita 1:354deb9168c0 504
hirokimineshita 1:354deb9168c0 505 #define b000 0
hirokimineshita 1:354deb9168c0 506 #define b001 1
hirokimineshita 1:354deb9168c0 507 #define b010 2
hirokimineshita 1:354deb9168c0 508 #define b011 3
hirokimineshita 1:354deb9168c0 509 #define b100 4
hirokimineshita 1:354deb9168c0 510 #define b101 5
hirokimineshita 1:354deb9168c0 511 #define b110 6
hirokimineshita 1:354deb9168c0 512 #define b111 7
hirokimineshita 1:354deb9168c0 513
hirokimineshita 1:354deb9168c0 514 #define b00 0
hirokimineshita 1:354deb9168c0 515 #define b01 1
hirokimineshita 1:354deb9168c0 516 #define b10 2
hirokimineshita 1:354deb9168c0 517 #define b11 3
hirokimineshita 1:354deb9168c0 518
hirokimineshita 1:354deb9168c0 519 #define b0 0
hirokimineshita 1:354deb9168c0 520 #define b1 1
hirokimineshita 1:354deb9168c0 521
hirokimineshita 1:354deb9168c0 522 #endif