UART Command Parser Time Manager Data Store for SD Card for stm32l476 [it's not Licensed as BSD/GPLx]
Dependencies: mbed SDFileSystem
Diff: include/CommandParser.h
- Revision:
- 19:36072b9b79f3
- Parent:
- 2:a694440145e9
--- a/include/CommandParser.h Fri Jun 14 00:21:09 2019 +0000 +++ b/include/CommandParser.h Fri Jul 05 01:26:19 2019 +0000 @@ -24,13 +24,18 @@ /* CMD total length */ const static int CmdLen = sizeof(":0 CMD 0000") - 1 /* EOL */; /* reply code (for ACK/NAK) */ - class CmdReply + class NakCode { public: - const static int Success = 0; - const static int InvalidFmt = 1; - const static int InvalidCmd = 2; - const static int InvalidLen = 3; + const static int NAK_UNDEFINED = 0000; + const static int NAK_INVAL_CMD = 1000; + const static int NAK_INVAL_LEN = 1001; + const static int NAK_INVAL_FMT = 1002; + const static int NAK_INVAL_PARAM = 1003; + const static int NAK_INVAL_SEQ = 1004; + const static int NAK_IN_RUNNING = 2000; + const static int NAK_IN_STOPPED = 2010; + const static int NAK_INTERNAL_ERR = 4000; }; private: int deviceID;