a

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI

Revision:
5:3c19c3ae6286
Parent:
4:e48aee3e8d09
diff -r e48aee3e8d09 -r 3c19c3ae6286 decoder.h
--- a/decoder.h	Thu May 21 11:03:32 2020 +0000
+++ b/decoder.h	Fri May 22 07:21:44 2020 +0000
@@ -1,8 +1,10 @@
 #ifndef DECODER
 #define DECODER
 
+
 #include "mbed.h"
 
+
 #define NULL 0
 #define TERMINATOR '\r'
 #define DELIMITER_CHAR 0x20
@@ -12,7 +14,6 @@
 #define MAX_KEYWORD_STRING_LTH 6
 #define MAX_KEYWORD_NR 4
 
-
 typedef enum TokenType 
 {KEYWORD, NUMBER, STRING} TokenType;
 
@@ -40,8 +41,6 @@
 } Keyword;
 
 
-
-
 class Decoder {
     private:
         struct Token asToken[MAX_TOKEN_NR];
@@ -55,6 +54,7 @@
         void DecodeMsg(char *pcString);
         enum TokenType eGetTokenType(unsigned char ucIdx);
         enum KeywordCode eGetKeyword(unsigned char ucIdx);
+        unsigned int uiGetNumber(unsigned char ucIdx);
         unsigned char GetTokenCnt(void);
 };