lab 3
Dependencies: mbed mbed-rtos tsi_sensor SLCD
ASCII.h@2:b94b72891752, 2020-02-25 (annotated)
- Committer:
- teajaypierce
- Date:
- Tue Feb 25 22:05:21 2020 +0000
- Revision:
- 2:b94b72891752
- Parent:
- 0:78b84e1ce9df
lab3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wstapleton | 0:78b84e1ce9df | 1 | #ifndef ASCII_H |
wstapleton | 0:78b84e1ce9df | 2 | #define ASCII_H |
wstapleton | 0:78b84e1ce9df | 3 | |
wstapleton | 0:78b84e1ce9df | 4 | #ifndef NULL |
wstapleton | 0:78b84e1ce9df | 5 | #define NULL 0 |
wstapleton | 0:78b84e1ce9df | 6 | #endif |
wstapleton | 0:78b84e1ce9df | 7 | #ifndef NUL |
wstapleton | 0:78b84e1ce9df | 8 | #define NUL 0 |
wstapleton | 0:78b84e1ce9df | 9 | #endif |
wstapleton | 0:78b84e1ce9df | 10 | |
wstapleton | 0:78b84e1ce9df | 11 | #if NULL != 0 |
wstapleton | 0:78b84e1ce9df | 12 | #error "unexpected value for NULL" |
wstapleton | 0:78b84e1ce9df | 13 | #endif |
wstapleton | 0:78b84e1ce9df | 14 | #if NUL != 0 |
wstapleton | 0:78b84e1ce9df | 15 | #error "unexpected value for NUL" |
wstapleton | 0:78b84e1ce9df | 16 | #endif |
wstapleton | 0:78b84e1ce9df | 17 | |
wstapleton | 0:78b84e1ce9df | 18 | #ifndef SOH //start of header |
wstapleton | 0:78b84e1ce9df | 19 | #define SOH 1 |
wstapleton | 0:78b84e1ce9df | 20 | #endif |
wstapleton | 0:78b84e1ce9df | 21 | |
wstapleton | 0:78b84e1ce9df | 22 | #if SOH != 1 |
wstapleton | 0:78b84e1ce9df | 23 | #error "unexpected value for SOH" |
wstapleton | 0:78b84e1ce9df | 24 | #endif |
wstapleton | 0:78b84e1ce9df | 25 | |
wstapleton | 0:78b84e1ce9df | 26 | #ifndef STX //start of text block/end of header block |
wstapleton | 0:78b84e1ce9df | 27 | #define STX 2 |
wstapleton | 0:78b84e1ce9df | 28 | #endif |
wstapleton | 0:78b84e1ce9df | 29 | #ifndef STXT //start of text block/end of header block |
wstapleton | 0:78b84e1ce9df | 30 | #define STXT 2 |
wstapleton | 0:78b84e1ce9df | 31 | #endif |
wstapleton | 0:78b84e1ce9df | 32 | |
wstapleton | 0:78b84e1ce9df | 33 | #if STX != 2 |
wstapleton | 0:78b84e1ce9df | 34 | #error "unexpected value for STX" |
wstapleton | 0:78b84e1ce9df | 35 | #endif |
wstapleton | 0:78b84e1ce9df | 36 | #if STXT != 2 |
wstapleton | 0:78b84e1ce9df | 37 | #error "unexpected value for STXT" |
wstapleton | 0:78b84e1ce9df | 38 | #endif |
wstapleton | 0:78b84e1ce9df | 39 | |
wstapleton | 0:78b84e1ce9df | 40 | #ifndef ETX //end of text block |
wstapleton | 0:78b84e1ce9df | 41 | #define ETX 3 |
wstapleton | 0:78b84e1ce9df | 42 | #endif |
wstapleton | 0:78b84e1ce9df | 43 | #ifndef ETXT //end of text block |
wstapleton | 0:78b84e1ce9df | 44 | #define ETXT 3 |
wstapleton | 0:78b84e1ce9df | 45 | #endif |
wstapleton | 0:78b84e1ce9df | 46 | |
wstapleton | 0:78b84e1ce9df | 47 | #if ETX != 3 |
wstapleton | 0:78b84e1ce9df | 48 | #error "unexpected value for ETX" |
wstapleton | 0:78b84e1ce9df | 49 | #endif |
wstapleton | 0:78b84e1ce9df | 50 | #if ETXT != 3 |
wstapleton | 0:78b84e1ce9df | 51 | #error "unexpected value for ETXT" |
wstapleton | 0:78b84e1ce9df | 52 | #endif |
wstapleton | 0:78b84e1ce9df | 53 | |
wstapleton | 0:78b84e1ce9df | 54 | #ifndef EOT //end of transmission |
wstapleton | 0:78b84e1ce9df | 55 | #define EOT 4 |
wstapleton | 0:78b84e1ce9df | 56 | #endif |
wstapleton | 0:78b84e1ce9df | 57 | |
wstapleton | 0:78b84e1ce9df | 58 | #if EOT != 4 |
wstapleton | 0:78b84e1ce9df | 59 | #error "unexpected value for EOT" |
wstapleton | 0:78b84e1ce9df | 60 | #endif |
wstapleton | 0:78b84e1ce9df | 61 | |
wstapleton | 0:78b84e1ce9df | 62 | #ifndef ENQ //enquire |
wstapleton | 0:78b84e1ce9df | 63 | #define ENQ 5 |
wstapleton | 0:78b84e1ce9df | 64 | #endif |
wstapleton | 0:78b84e1ce9df | 65 | |
wstapleton | 0:78b84e1ce9df | 66 | #if ENQ != 5 |
wstapleton | 0:78b84e1ce9df | 67 | #error "unexpected value for ENQ" |
wstapleton | 0:78b84e1ce9df | 68 | #endif |
wstapleton | 0:78b84e1ce9df | 69 | |
wstapleton | 0:78b84e1ce9df | 70 | #ifndef ACK //acknowledge |
wstapleton | 0:78b84e1ce9df | 71 | #define ACK 6 |
wstapleton | 0:78b84e1ce9df | 72 | #endif |
wstapleton | 0:78b84e1ce9df | 73 | |
wstapleton | 0:78b84e1ce9df | 74 | #if ACK != 6 |
wstapleton | 0:78b84e1ce9df | 75 | #error "unexpected value for ACK" |
wstapleton | 0:78b84e1ce9df | 76 | #endif |
wstapleton | 0:78b84e1ce9df | 77 | |
wstapleton | 0:78b84e1ce9df | 78 | #ifndef BELL //bell |
wstapleton | 0:78b84e1ce9df | 79 | #define BELL 7 |
wstapleton | 0:78b84e1ce9df | 80 | #endif |
wstapleton | 0:78b84e1ce9df | 81 | #ifndef BEL //bell |
wstapleton | 0:78b84e1ce9df | 82 | #define BEL 7 |
wstapleton | 0:78b84e1ce9df | 83 | #endif |
wstapleton | 0:78b84e1ce9df | 84 | |
wstapleton | 0:78b84e1ce9df | 85 | #if BELL != 7 |
wstapleton | 0:78b84e1ce9df | 86 | #error "unexpected value for BELL" |
wstapleton | 0:78b84e1ce9df | 87 | #endif |
wstapleton | 0:78b84e1ce9df | 88 | #if BEL != 7 |
wstapleton | 0:78b84e1ce9df | 89 | #error "unexpected value for BEL" |
wstapleton | 0:78b84e1ce9df | 90 | #endif |
wstapleton | 0:78b84e1ce9df | 91 | |
wstapleton | 0:78b84e1ce9df | 92 | #ifndef BKSP //backspace |
wstapleton | 0:78b84e1ce9df | 93 | #define BKSP 8 |
wstapleton | 0:78b84e1ce9df | 94 | #endif |
wstapleton | 0:78b84e1ce9df | 95 | #ifndef BS //backspace |
wstapleton | 0:78b84e1ce9df | 96 | #define BS 8 |
wstapleton | 0:78b84e1ce9df | 97 | #endif |
wstapleton | 0:78b84e1ce9df | 98 | |
wstapleton | 0:78b84e1ce9df | 99 | #if BKSP != 8 |
wstapleton | 0:78b84e1ce9df | 100 | #error "unexpected value for BKSP" |
wstapleton | 0:78b84e1ce9df | 101 | #endif |
wstapleton | 0:78b84e1ce9df | 102 | #if BS != 8 |
wstapleton | 0:78b84e1ce9df | 103 | #error "unexpected value for BS" |
wstapleton | 0:78b84e1ce9df | 104 | #endif |
wstapleton | 0:78b84e1ce9df | 105 | |
wstapleton | 0:78b84e1ce9df | 106 | #ifndef HTAB //horizontal tab |
wstapleton | 0:78b84e1ce9df | 107 | #define HTAB 9 |
wstapleton | 0:78b84e1ce9df | 108 | #endif |
wstapleton | 0:78b84e1ce9df | 109 | #ifndef HT //horizontal tab |
wstapleton | 0:78b84e1ce9df | 110 | #define HT 9 |
wstapleton | 0:78b84e1ce9df | 111 | #endif |
wstapleton | 0:78b84e1ce9df | 112 | |
wstapleton | 0:78b84e1ce9df | 113 | #if HTAB != 9 |
wstapleton | 0:78b84e1ce9df | 114 | #error "unexpected value for HTAB" |
wstapleton | 0:78b84e1ce9df | 115 | #endif |
wstapleton | 0:78b84e1ce9df | 116 | #if HT != 9 |
wstapleton | 0:78b84e1ce9df | 117 | #error "unexpected value for HT" |
wstapleton | 0:78b84e1ce9df | 118 | #endif |
wstapleton | 0:78b84e1ce9df | 119 | |
wstapleton | 0:78b84e1ce9df | 120 | #ifndef LF //line feed |
wstapleton | 0:78b84e1ce9df | 121 | #define LF 10 |
wstapleton | 0:78b84e1ce9df | 122 | #endif |
wstapleton | 0:78b84e1ce9df | 123 | |
wstapleton | 0:78b84e1ce9df | 124 | #if LF != 10 |
wstapleton | 0:78b84e1ce9df | 125 | #error "unexpected value for LF" |
wstapleton | 0:78b84e1ce9df | 126 | #endif |
wstapleton | 0:78b84e1ce9df | 127 | |
wstapleton | 0:78b84e1ce9df | 128 | #ifndef VTAB //vertical tab |
wstapleton | 0:78b84e1ce9df | 129 | #define VTAB 11 |
wstapleton | 0:78b84e1ce9df | 130 | #endif |
wstapleton | 0:78b84e1ce9df | 131 | #ifndef VT //vertical tab |
wstapleton | 0:78b84e1ce9df | 132 | #define VT 11 |
wstapleton | 0:78b84e1ce9df | 133 | |
wstapleton | 0:78b84e1ce9df | 134 | #if VTAB != 11 |
wstapleton | 0:78b84e1ce9df | 135 | #error "unexpected value for VTAB" |
wstapleton | 0:78b84e1ce9df | 136 | #endif |
wstapleton | 0:78b84e1ce9df | 137 | #if VT != 11 |
wstapleton | 0:78b84e1ce9df | 138 | #error "unexpected value for VT" |
wstapleton | 0:78b84e1ce9df | 139 | #endif |
wstapleton | 0:78b84e1ce9df | 140 | #endif |
wstapleton | 0:78b84e1ce9df | 141 | |
wstapleton | 0:78b84e1ce9df | 142 | #ifndef FF //form feed |
wstapleton | 0:78b84e1ce9df | 143 | #define FF 12 |
wstapleton | 0:78b84e1ce9df | 144 | #endif |
wstapleton | 0:78b84e1ce9df | 145 | |
wstapleton | 0:78b84e1ce9df | 146 | #if FF != 12 |
wstapleton | 0:78b84e1ce9df | 147 | #error "unexpected value for FF" |
wstapleton | 0:78b84e1ce9df | 148 | #endif |
wstapleton | 0:78b84e1ce9df | 149 | |
wstapleton | 0:78b84e1ce9df | 150 | #ifndef CR //carriage return |
wstapleton | 0:78b84e1ce9df | 151 | #define CR 13 |
wstapleton | 0:78b84e1ce9df | 152 | #endif |
wstapleton | 0:78b84e1ce9df | 153 | |
wstapleton | 0:78b84e1ce9df | 154 | #if CR != 13 |
wstapleton | 0:78b84e1ce9df | 155 | #error "unexpected value for CR" |
wstapleton | 0:78b84e1ce9df | 156 | #endif |
wstapleton | 0:78b84e1ce9df | 157 | |
wstapleton | 0:78b84e1ce9df | 158 | #ifndef SO //shift out (switch to extended character set) |
wstapleton | 0:78b84e1ce9df | 159 | #define SO 14 |
wstapleton | 0:78b84e1ce9df | 160 | #endif |
wstapleton | 0:78b84e1ce9df | 161 | |
wstapleton | 0:78b84e1ce9df | 162 | #if SO != 14 |
wstapleton | 0:78b84e1ce9df | 163 | #error "unexpected value for SO" |
wstapleton | 0:78b84e1ce9df | 164 | #endif |
wstapleton | 0:78b84e1ce9df | 165 | |
wstapleton | 0:78b84e1ce9df | 166 | #ifndef SI //shift in (switch to standard character set) |
wstapleton | 0:78b84e1ce9df | 167 | #define SI 15 |
wstapleton | 0:78b84e1ce9df | 168 | #endif |
wstapleton | 0:78b84e1ce9df | 169 | |
wstapleton | 0:78b84e1ce9df | 170 | #if SI != 15 |
wstapleton | 0:78b84e1ce9df | 171 | #error "unexpected value for SI" |
wstapleton | 0:78b84e1ce9df | 172 | #endif |
wstapleton | 0:78b84e1ce9df | 173 | |
wstapleton | 0:78b84e1ce9df | 174 | #ifndef DLE //data link escape (supplemental control character) |
wstapleton | 0:78b84e1ce9df | 175 | #define DLE 16 |
wstapleton | 0:78b84e1ce9df | 176 | #endif |
wstapleton | 0:78b84e1ce9df | 177 | |
wstapleton | 0:78b84e1ce9df | 178 | #if DLE != 16 |
wstapleton | 0:78b84e1ce9df | 179 | #error "unexpected value for DLE" |
wstapleton | 0:78b84e1ce9df | 180 | #endif |
wstapleton | 0:78b84e1ce9df | 181 | |
wstapleton | 0:78b84e1ce9df | 182 | #ifndef DC0 //device control 0 (data link escape is alternate mnemonic) |
wstapleton | 0:78b84e1ce9df | 183 | #define DC0 16 |
wstapleton | 0:78b84e1ce9df | 184 | #endif |
wstapleton | 0:78b84e1ce9df | 185 | |
wstapleton | 0:78b84e1ce9df | 186 | #if DC0 != 16 |
wstapleton | 0:78b84e1ce9df | 187 | #error "unexpected value for DC0" |
wstapleton | 0:78b84e1ce9df | 188 | #endif |
wstapleton | 0:78b84e1ce9df | 189 | |
wstapleton | 0:78b84e1ce9df | 190 | #ifndef DC1 //device control 1 |
wstapleton | 0:78b84e1ce9df | 191 | #define DC1 17 |
wstapleton | 0:78b84e1ce9df | 192 | #endif |
wstapleton | 0:78b84e1ce9df | 193 | |
wstapleton | 0:78b84e1ce9df | 194 | #if DC1 != 17 |
wstapleton | 0:78b84e1ce9df | 195 | #error "unexpected value for DC1" |
wstapleton | 0:78b84e1ce9df | 196 | #endif |
wstapleton | 0:78b84e1ce9df | 197 | |
wstapleton | 0:78b84e1ce9df | 198 | #ifndef DC2 //device control 2 |
wstapleton | 0:78b84e1ce9df | 199 | #define DC2 18 |
wstapleton | 0:78b84e1ce9df | 200 | #endif |
wstapleton | 0:78b84e1ce9df | 201 | |
wstapleton | 0:78b84e1ce9df | 202 | #if DC2 != 18 |
wstapleton | 0:78b84e1ce9df | 203 | #error "unexpected value for DC2" |
wstapleton | 0:78b84e1ce9df | 204 | #endif |
wstapleton | 0:78b84e1ce9df | 205 | |
wstapleton | 0:78b84e1ce9df | 206 | #ifndef DC3 //device control 3 |
wstapleton | 0:78b84e1ce9df | 207 | #define DC3 19 |
wstapleton | 0:78b84e1ce9df | 208 | #endif |
wstapleton | 0:78b84e1ce9df | 209 | |
wstapleton | 0:78b84e1ce9df | 210 | #if DC3 != 19 |
wstapleton | 0:78b84e1ce9df | 211 | #error "unexpected value for DC3" |
wstapleton | 0:78b84e1ce9df | 212 | #endif |
wstapleton | 0:78b84e1ce9df | 213 | |
wstapleton | 0:78b84e1ce9df | 214 | #ifndef DC4 //;device control 4 |
wstapleton | 0:78b84e1ce9df | 215 | #define DC4 20 |
wstapleton | 0:78b84e1ce9df | 216 | #endif |
wstapleton | 0:78b84e1ce9df | 217 | |
wstapleton | 0:78b84e1ce9df | 218 | #if DC4 != 20 |
wstapleton | 0:78b84e1ce9df | 219 | #error "unexpected value for DC4" |
wstapleton | 0:78b84e1ce9df | 220 | #endif |
wstapleton | 0:78b84e1ce9df | 221 | |
wstapleton | 0:78b84e1ce9df | 222 | #ifndef NAK //;negative acknowledge |
wstapleton | 0:78b84e1ce9df | 223 | #define NAK 21 |
wstapleton | 0:78b84e1ce9df | 224 | #endif |
wstapleton | 0:78b84e1ce9df | 225 | |
wstapleton | 0:78b84e1ce9df | 226 | #if NAK != 21 |
wstapleton | 0:78b84e1ce9df | 227 | #error "unexpected value for NAK" |
wstapleton | 0:78b84e1ce9df | 228 | #endif |
wstapleton | 0:78b84e1ce9df | 229 | |
wstapleton | 0:78b84e1ce9df | 230 | #ifndef SYN //;synchronous idle |
wstapleton | 0:78b84e1ce9df | 231 | #define SYN 22 |
wstapleton | 0:78b84e1ce9df | 232 | #endif |
wstapleton | 0:78b84e1ce9df | 233 | |
wstapleton | 0:78b84e1ce9df | 234 | #if SYN != 22 |
wstapleton | 0:78b84e1ce9df | 235 | #error "unexpected value for SYN" |
wstapleton | 0:78b84e1ce9df | 236 | #endif |
wstapleton | 0:78b84e1ce9df | 237 | |
wstapleton | 0:78b84e1ce9df | 238 | #ifndef ETB //;end of transmission block |
wstapleton | 0:78b84e1ce9df | 239 | #define ETB 23 |
wstapleton | 0:78b84e1ce9df | 240 | #endif |
wstapleton | 0:78b84e1ce9df | 241 | |
wstapleton | 0:78b84e1ce9df | 242 | #if ETB != 23 |
wstapleton | 0:78b84e1ce9df | 243 | #error "unexpected value for ETB" |
wstapleton | 0:78b84e1ce9df | 244 | #endif |
wstapleton | 0:78b84e1ce9df | 245 | |
wstapleton | 0:78b84e1ce9df | 246 | #ifndef CAN //;cancel |
wstapleton | 0:78b84e1ce9df | 247 | #define CAN 24 |
wstapleton | 0:78b84e1ce9df | 248 | #endif |
wstapleton | 0:78b84e1ce9df | 249 | |
wstapleton | 0:78b84e1ce9df | 250 | #if CAN != 24 |
wstapleton | 0:78b84e1ce9df | 251 | #error "unexpected value for CAN" |
wstapleton | 0:78b84e1ce9df | 252 | #endif |
wstapleton | 0:78b84e1ce9df | 253 | |
wstapleton | 0:78b84e1ce9df | 254 | #ifndef EM //;end of medium |
wstapleton | 0:78b84e1ce9df | 255 | #define EM 25 |
wstapleton | 0:78b84e1ce9df | 256 | #endif |
wstapleton | 0:78b84e1ce9df | 257 | |
wstapleton | 0:78b84e1ce9df | 258 | #if EM != 25 |
wstapleton | 0:78b84e1ce9df | 259 | #error "unexpected value for EM" |
wstapleton | 0:78b84e1ce9df | 260 | #endif |
wstapleton | 0:78b84e1ce9df | 261 | |
wstapleton | 0:78b84e1ce9df | 262 | #ifndef SUB //;substitute |
wstapleton | 0:78b84e1ce9df | 263 | #define SUB 26 |
wstapleton | 0:78b84e1ce9df | 264 | #endif |
wstapleton | 0:78b84e1ce9df | 265 | |
wstapleton | 0:78b84e1ce9df | 266 | #if SUB != 26 |
wstapleton | 0:78b84e1ce9df | 267 | #error "unexpected value for SUB" |
wstapleton | 0:78b84e1ce9df | 268 | #endif |
wstapleton | 0:78b84e1ce9df | 269 | |
wstapleton | 0:78b84e1ce9df | 270 | #ifndef ESC //;escape |
wstapleton | 0:78b84e1ce9df | 271 | #define ESC 27 |
wstapleton | 0:78b84e1ce9df | 272 | #endif |
wstapleton | 0:78b84e1ce9df | 273 | |
wstapleton | 0:78b84e1ce9df | 274 | #if ESC != 27 |
wstapleton | 0:78b84e1ce9df | 275 | #error "unexpected value for ESC" |
wstapleton | 0:78b84e1ce9df | 276 | #endif |
wstapleton | 0:78b84e1ce9df | 277 | |
wstapleton | 0:78b84e1ce9df | 278 | #ifndef FS //;file separator |
wstapleton | 0:78b84e1ce9df | 279 | #define FS 28 |
wstapleton | 0:78b84e1ce9df | 280 | #endif |
wstapleton | 0:78b84e1ce9df | 281 | |
wstapleton | 0:78b84e1ce9df | 282 | #if FS != 28 |
wstapleton | 0:78b84e1ce9df | 283 | #error "unexpected value for FS" |
wstapleton | 0:78b84e1ce9df | 284 | #endif |
wstapleton | 0:78b84e1ce9df | 285 | |
wstapleton | 0:78b84e1ce9df | 286 | #ifndef GS //;group separator |
wstapleton | 0:78b84e1ce9df | 287 | #define GS 29 |
wstapleton | 0:78b84e1ce9df | 288 | #endif |
wstapleton | 0:78b84e1ce9df | 289 | |
wstapleton | 0:78b84e1ce9df | 290 | #if GS != 29 |
wstapleton | 0:78b84e1ce9df | 291 | #error "unexpected value for GS" |
wstapleton | 0:78b84e1ce9df | 292 | #endif |
wstapleton | 0:78b84e1ce9df | 293 | |
wstapleton | 0:78b84e1ce9df | 294 | #ifndef RS //;record separator |
wstapleton | 0:78b84e1ce9df | 295 | #define RS 30 |
wstapleton | 0:78b84e1ce9df | 296 | #endif |
wstapleton | 0:78b84e1ce9df | 297 | |
wstapleton | 0:78b84e1ce9df | 298 | #if RS != 30 |
wstapleton | 0:78b84e1ce9df | 299 | #error "unexpected value for RS" |
wstapleton | 0:78b84e1ce9df | 300 | #endif |
wstapleton | 0:78b84e1ce9df | 301 | |
wstapleton | 0:78b84e1ce9df | 302 | #ifndef US //;unit separator |
wstapleton | 0:78b84e1ce9df | 303 | #define US 31 |
wstapleton | 0:78b84e1ce9df | 304 | #endif |
wstapleton | 0:78b84e1ce9df | 305 | |
wstapleton | 0:78b84e1ce9df | 306 | #if US != 31 |
wstapleton | 0:78b84e1ce9df | 307 | #error "unexpected value for US" |
wstapleton | 0:78b84e1ce9df | 308 | #endif |
wstapleton | 0:78b84e1ce9df | 309 | |
wstapleton | 0:78b84e1ce9df | 310 | #ifndef SPACE //;space character |
wstapleton | 0:78b84e1ce9df | 311 | #define SPACE 32 |
wstapleton | 0:78b84e1ce9df | 312 | #endif |
wstapleton | 0:78b84e1ce9df | 313 | |
wstapleton | 0:78b84e1ce9df | 314 | #if SPACE != 32 |
wstapleton | 0:78b84e1ce9df | 315 | #error "unexpected value for SPACE" |
wstapleton | 0:78b84e1ce9df | 316 | #endif |
wstapleton | 0:78b84e1ce9df | 317 | |
wstapleton | 0:78b84e1ce9df | 318 | #ifndef DOUBLE_QUOTE |
wstapleton | 0:78b84e1ce9df | 319 | #define DOUBLE_QUOTE 0x22 //34 |
wstapleton | 0:78b84e1ce9df | 320 | #endif |
wstapleton | 0:78b84e1ce9df | 321 | |
wstapleton | 0:78b84e1ce9df | 322 | #if DOUBLE_QUOTE != 0X22 |
wstapleton | 0:78b84e1ce9df | 323 | #error "unexpected value for DOUBLE_QUOTE" |
wstapleton | 0:78b84e1ce9df | 324 | #endif |
wstapleton | 0:78b84e1ce9df | 325 | |
wstapleton | 0:78b84e1ce9df | 326 | #ifndef SINGLE_QUOTE |
wstapleton | 0:78b84e1ce9df | 327 | #define SINGLE_QUOTE 0x27 //39 |
wstapleton | 0:78b84e1ce9df | 328 | #endif |
wstapleton | 0:78b84e1ce9df | 329 | |
wstapleton | 0:78b84e1ce9df | 330 | #if SINGLE_QUOTE != 0X27 |
wstapleton | 0:78b84e1ce9df | 331 | #error "unexpected value for SINGLE_QUOTE" |
wstapleton | 0:78b84e1ce9df | 332 | #endif |
wstapleton | 0:78b84e1ce9df | 333 | |
wstapleton | 0:78b84e1ce9df | 334 | #ifndef COMMA |
wstapleton | 0:78b84e1ce9df | 335 | #define COMMA 0x2C //44 |
wstapleton | 0:78b84e1ce9df | 336 | #endif |
wstapleton | 0:78b84e1ce9df | 337 | |
wstapleton | 0:78b84e1ce9df | 338 | #if COMMA != 0X2C |
wstapleton | 0:78b84e1ce9df | 339 | #error "unexpected value for COMMA" |
wstapleton | 0:78b84e1ce9df | 340 | #endif |
wstapleton | 0:78b84e1ce9df | 341 | |
wstapleton | 0:78b84e1ce9df | 342 | #ifndef DELETE |
wstapleton | 0:78b84e1ce9df | 343 | #define DELETE 0x7F //127 |
wstapleton | 0:78b84e1ce9df | 344 | #endif |
wstapleton | 0:78b84e1ce9df | 345 | #ifndef DEL |
wstapleton | 0:78b84e1ce9df | 346 | #define DEL 0x7F //127 |
wstapleton | 0:78b84e1ce9df | 347 | #endif |
wstapleton | 0:78b84e1ce9df | 348 | |
wstapleton | 0:78b84e1ce9df | 349 | #if DELETE != 0X7F |
wstapleton | 0:78b84e1ce9df | 350 | #error "unexpected value for DELETE" |
wstapleton | 0:78b84e1ce9df | 351 | #endif |
wstapleton | 0:78b84e1ce9df | 352 | #if DEL != 0X7F |
wstapleton | 0:78b84e1ce9df | 353 | #error "unexpected value for DEL" |
wstapleton | 0:78b84e1ce9df | 354 | #endif |
wstapleton | 0:78b84e1ce9df | 355 | |
wstapleton | 0:78b84e1ce9df | 356 | #endif //ASCII_H |