James Cameron / pixy

Fork of pixy by Arcadie Cracan

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PixyLink.h Source File

PixyLink.h

00001 #ifndef TUIASI_PIXYLINK_H
00002 #define TUIASI_PIXYLINK_H
00003 
00004 #include "stdint.h"
00005 
00006 class PixyLink
00007 {
00008 public:
00009     PixyLink() { m_addr = 0; };
00010     PixyLink(uint8_t addr) : m_addr(addr) {};
00011     void setAddress(uint8_t addr) {
00012         m_addr = addr;
00013     };
00014     virtual uint16_t getWord() = 0;
00015     virtual uint8_t getByte() = 0;
00016     virtual int8_t send(uint8_t *data, uint8_t len) = 0;
00017 protected:
00018     uint8_t m_addr;
00019 };
00020 
00021 #endif //TUIASI_PIXYLINK_H