Used for Flow Graph
Diff: Node.h
- Revision:
- 0:be00bb0372eb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Node.h Sun Oct 30 11:29:10 2011 +0000 @@ -0,0 +1,22 @@ +#ifndef NODE_H +#define NODE_H +#include "mbed.h" + +class Node { + public: + Node(unsigned int n, unsigned int k, PinName pinid); + Node(unsigned int n, unsigned int k, PinName pinid, unsigned int delay_ms); + char *execute(char *data ); + int getSize(); + private: + void setupInputOutput(unsigned int, unsigned int); + unsigned int ksize; + unsigned int nsize; + DigitalOut pin; + void toggleHigh(); + void toggleLow(); + char *data_; + unsigned int delay; + char *tempbuffer; +}; +#endif