editable serial input line buffer
Dependents: MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more
Diff: CmdLine.h
- Revision:
- 6:88e92f832c9a
- Parent:
- 4:700b71cd3bd2
- Child:
- 7:0bda7cfee767
--- a/CmdLine.h Tue Jul 16 10:37:16 2019 +0000 +++ b/CmdLine.h Tue Aug 13 16:20:23 2019 -0700 @@ -38,6 +38,7 @@ #ifndef __CmdLine_H__ #define __CmdLine_H__ +// standard include for target platform #include "mbed.h" /** @@ -97,6 +98,8 @@ Callback<void(CmdLine&)> onEOLcommandParser; //!< optional immediate handler for End Of Line CR or LF, parse the command buffer + Callback<void(void)> diagnostic_led_EOF; //!< optional @ref diagnostic_led_EOF + Callback<void(void)> on_immediate_0x21; //!< optional @ref Immediate handler for Unicode (U+0021) ! EXCLAMATION MARK Callback<void(void)> on_immediate_0x22; //!< optional @ref Immediate handler for Unicode (U+0022) " QUOTATION MARK Callback<void(void)> on_immediate_0x23; //!< optional @ref Immediate handler for Unicode (U+0023) # NUMBER SIGN = pound sign, hash, crosshatch @@ -152,6 +155,7 @@ bool parse_flag(const char *key, uint8_t& nFlagVar, const uint8_t nFlagBitMask); bool parse_byte_hex(const char *key, uint8_t& nByteVar); bool parse_byte_dec(const char *key, uint8_t& nByteVar); + bool parse_uint8_dec(const char *key, uint8_t& nByteVar) { return parse_byte_dec(key, 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);