Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
PixyLink.h@0:4a23b84b733e, 2017-05-17 (annotated)
- Committer:
- ZHAW_Prometheus
- Date:
- Wed May 17 13:08:18 2017 +0000
- Revision:
- 0:4a23b84b733e
PixyTest2 Vers. 17.05.2017
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ZHAW_Prometheus | 0:4a23b84b733e | 1 | #ifndef TUIASI_PIXYLINK_H |
| ZHAW_Prometheus | 0:4a23b84b733e | 2 | #define TUIASI_PIXYLINK_H |
| ZHAW_Prometheus | 0:4a23b84b733e | 3 | |
| ZHAW_Prometheus | 0:4a23b84b733e | 4 | #include "stdint.h" |
| ZHAW_Prometheus | 0:4a23b84b733e | 5 | |
| ZHAW_Prometheus | 0:4a23b84b733e | 6 | class PixyLink |
| ZHAW_Prometheus | 0:4a23b84b733e | 7 | { |
| ZHAW_Prometheus | 0:4a23b84b733e | 8 | public: |
| ZHAW_Prometheus | 0:4a23b84b733e | 9 | PixyLink() { m_addr = 0; }; |
| ZHAW_Prometheus | 0:4a23b84b733e | 10 | PixyLink(uint8_t addr) : m_addr(addr) {}; |
| ZHAW_Prometheus | 0:4a23b84b733e | 11 | void setAddress(uint8_t addr) { |
| ZHAW_Prometheus | 0:4a23b84b733e | 12 | m_addr = addr; |
| ZHAW_Prometheus | 0:4a23b84b733e | 13 | }; |
| ZHAW_Prometheus | 0:4a23b84b733e | 14 | virtual uint16_t getWord() = 0; |
| ZHAW_Prometheus | 0:4a23b84b733e | 15 | virtual uint8_t getByte() = 0; |
| ZHAW_Prometheus | 0:4a23b84b733e | 16 | virtual int8_t send(uint8_t *data, uint8_t len) = 0; |
| ZHAW_Prometheus | 0:4a23b84b733e | 17 | protected: |
| ZHAW_Prometheus | 0:4a23b84b733e | 18 | uint8_t m_addr; |
| ZHAW_Prometheus | 0:4a23b84b733e | 19 | }; |
| ZHAW_Prometheus | 0:4a23b84b733e | 20 | |
| ZHAW_Prometheus | 0:4a23b84b733e | 21 | #endif //TUIASI_PIXYLINK_H |