SHOW:
|
|
- or go back to the newest paste.
| 1 | #ifndef ParallelBus_h | |
| 2 | #define ParallelBus_h 001 | |
| 3 | ||
| 4 | #ifdef ARDUINO && ARDUINO >= 100 | |
| 5 | #include "Arduino.h" | |
| 6 | #else | |
| 7 | #include "WProgram.h" | |
| 8 | #endif | |
| 9 | ||
| 10 | #ifndef DATA_SIZE | |
| 11 | #define DATA_SIZE uint8_t | |
| 12 | #endif | |
| 13 | ||
| 14 | class ParallelBus {
| |
| 15 | public: | |
| 16 | // Constructors. | |
| 17 | ||
| 18 | // Public methods. | |
| 19 | virtual void begin(); | |
| 20 | virtual DATA_SIZE read(); | |
| 21 | virtual void write(DATA_SIZE value); | |
| 22 | ||
| 23 | private: | |
| 24 | // Private methods. | |
| 25 | //virtual void init(); | |
| 26 | ||
| 27 | // Private atributes. | |
| 28 | }; | |
| 29 | #endif |