Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Diff: Eurobot_shared/ui/ui.h
- Revision:
- 25:143b19c1fb05
- Parent:
- 24:7a3906c2f5d5
- Child:
- 26:0995f61cb7b8
--- a/Eurobot_shared/ui/ui.h Fri May 04 05:23:45 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ - -#ifndef UI_H -#define UI_H - -#include "rtos.h" - -#define NUMIDS 32 - -class UI { -public: - Thread tUI; - - UI(); - - bool regid(char id, unsigned int length); - bool updateval(char id, float* buffer, unsigned int length); - bool updateval(char id, float value); - bool unregid(char id); - -private: - Mutex printlock; - char idlist[NUMIDS]; - float* buffarr[NUMIDS]; - volatile int newdataflags; //Only works for NUMID = 32 - - void printloop(); - static void printtw(void const *arg){ ((UI*)arg)->printloop(); } -}; - -#endif //UI_H