Monitor für das Tasterprogramm

Dependents:   19_Taster_BSW_oo 19_Taster_a

Fork of monitor by Temp27

Revision:
8:99a94e782c8a
Parent:
7:f5bfddb84d63
--- a/monitor.h	Sun Sep 07 12:08:09 2014 +0000
+++ b/monitor.h	Sun May 10 17:55:42 2015 +0000
@@ -4,30 +4,58 @@
 
 #include <string.h>
 #include "mbed.h"
-#include "Buffer.h"
+#include "MODSERIAL.h"
 
 #define COM_LINE_LEN 100
 
- void mon_init(void);
- 
- void parser (void);
- void get_line(void);
- void get_ch (void);
- 
- void date(void);
- void dump(void);
- void help(void);
- void set(void);
- void time(void);
- void dir(void);
- void list(void);    
- void del(void);
- void fill(void);
- void soll(void);
- void korr(void);
- void go(void);
- void stop(void);
- void cycle(void);
- void func_drops(void);
- 
-#endif
\ No newline at end of file
+#define MEM_SIZE       256
+#define TARGET_SECTOR  28
+
+
+namespace mbed
+{
+
+class monitor
+{
+private:
+
+
+public:
+
+    char com_line[COM_LINE_LEN];            // Aktuelle Eingabezeile
+    uint8_t ComLinePtr, ComLineTop;         // Cursor Position und Zeilenlänge
+
+    uint8_t cr_flag;
+
+    uint16_t status[8];
+
+    unsigned char byte_code[30];            // das Telegramm wird hier abgelegt
+    uint32_t adr;
+
+    char buffer[100];
+
+    char fname[20];
+    FILE *fp;
+
+    monitor(void);
+    uint8_t _atoi(char c);
+    void parser (char *ptr);
+
+    void get_line(void);
+    void get_ch (void);
+
+    void mdate(void);
+    void dump(void);
+    void flash(void);
+    void help(void);
+    void in(void);
+    void out(void);
+    void soft_reset(void);
+    void rgb(void);
+    void mtime(void);
+
+};
+
+} // namespace mbed
+
+#endif