editable serial input line buffer
Dependents: MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more
Diff: CmdLine.h
- Revision:
- 2:0f702da53f2a
- Parent:
- 1:5b33e7447601
- Child:
- 4:700b71cd3bd2
--- a/CmdLine.h Thu May 30 00:14:34 2019 +0000 +++ b/CmdLine.h Thu Jun 06 01:50:32 2019 +0000 @@ -53,31 +53,31 @@ /// Avoid using characters that may appear in other commands, /// such as 0-9 A-Z a-z and some punctuation %*+-./= /// so these 25 characters are available: !"#$&'(),:;<>?@[\]^_`{|}~ -/// @see on_immediate_0x21 -/// @see on_immediate_0x22 -/// @see on_immediate_0x23 -/// @see on_immediate_0x24 -/// @see on_immediate_0x26 -/// @see on_immediate_0x27 -/// @see on_immediate_0x28 -/// @see on_immediate_0x29 -/// @see on_immediate_0x2c -/// @see on_immediate_0x3a -/// @see on_immediate_0x3b -/// @see on_immediate_0x3c -/// @see on_immediate_0x3e -/// @see on_immediate_0x3f -/// @see on_immediate_0x40 -/// @see on_immediate_0x5b -/// @see on_immediate_0x5c -/// @see on_immediate_0x5d -/// @see on_immediate_0x5e -/// @see on_immediate_0x5f -/// @see on_immediate_0x60 -/// @see on_immediate_0x7b -/// @see on_immediate_0x7c -/// @see on_immediate_0x7d -/// @see on_immediate_0x7e +/// @see on_immediate_0x21 handler for Unicode (U+0021) ! EXCLAMATION MARK +/// @see on_immediate_0x22 handler for Unicode (U+0022) " QUOTATION MARK +/// @see on_immediate_0x23 handler for Unicode (U+0023) # NUMBER SIGN = pound sign, hash, crosshatch +/// @see on_immediate_0x24 handler for Unicode (U+0024) $ DOLLAR SIGN +/// @see on_immediate_0x26 handler for Unicode (U+0026) & AMPERSAND +/// @see on_immediate_0x27 handler for Unicode (U+0027) ' APOSTROPHE +/// @see on_immediate_0x28 handler for Unicode (U+0028) ( LEFT PARENTHESIS +/// @see on_immediate_0x29 handler for Unicode (U+0029) ) RIGHT PARENTHESIS +/// @see on_immediate_0x2c handler for Unicode (U+002C) , COMMA +/// @see on_immediate_0x3a handler for Unicode (U+003A) : COLON +/// @see on_immediate_0x3b handler for Unicode (U+003B) ; SEMICOLON +/// @see on_immediate_0x3c handler for Unicode (U+003C) < LESS-THAN SIGN +/// @see on_immediate_0x3e handler for Unicode (U+003E) > GREATER-THAN SIGN +/// @see on_immediate_0x3f handler for Unicode (U+003F) ? QUESTION MARK +/// @see on_immediate_0x40 handler for Unicode (U+0040) @ COMMERCIAL AT = at sign +/// @see on_immediate_0x5b handler for Unicode (U+005B) [ LEFT SQUARE BRACKET +/// @see on_immediate_0x5c handler for Unicode (U+005C) \ REVERSE SOLIDUS +/// @see on_immediate_0x5d handler for Unicode (U+005D) ] RIGHT SQUARE BRACKET +/// @see on_immediate_0x5e handler for Unicode (U+005E) ^ CIRCUMFLEX ACCENT +/// @see on_immediate_0x5f handler for Unicode (U+005F) _ LOW LINE =SPACING UNDERSCORE +/// @see on_immediate_0x60 handler for Unicode (U+0060) ` GRAVE ACCENT (also called backtick) +/// @see on_immediate_0x7b handler for Unicode (U+007B) { LEFT CURLY BRACKET +/// @see on_immediate_0x7c handler for Unicode (U+007C) | VERTICAL LINE +/// @see on_immediate_0x7d handler for Unicode (U+007D) } RIGHT CURLY BRACKET +/// @see on_immediate_0x7e handler for Unicode (U+007E) ~ TILDE protected: static const unsigned int COMMAND_BUFFER_LENGTH = 96; // buffer includes null termination @@ -152,7 +152,9 @@ bool parse_byte_hex(const char *key, uint8_t& nByteVar); bool parse_byte_dec(const char *key, uint8_t& nByteVar); bool parse_uint16_hex(const char *key, uint16_t& uint16Var); + bool parse_uint16_dec(const char *key, uint16_t& uint16Var); bool parse_int16_hex(const char *key, int16_t& int16Var); + bool parse_int16_dec(const char *key, int16_t& int16Var); bool parse_float(const char *key, float& floatVar); bool parse_byteCount_byteList_hex(size_t& byteCount, char *mosiDataBuf, size_t mosiDataBufSize); bool parse_byteCount_byteList_dec(size_t& byteCount, char *mosiDataBuf, size_t mosiDataBufSize);