MSCAN Updated

Dependents:   FBRLogger

Fork of MSCAN by Vesko Karadzhov

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CANComms.h Source File

CANComms.h

00001 #ifndef FBRDASH_CANCOMMS_H
00002 #define FBRDASH_CANCOMMS_H
00003 
00004 #include "mbed.h"
00005 #include "State.h"
00006 #include "Comms.h"
00007 
00008 class CANComms : public Comms
00009 {
00010     public:
00011         CANComms(State* _values, bool transmit_poll, bool receive_poll, float poll_interval);
00012         virtual void send(char message);  
00013         void receive();
00014         CAN* can;
00015         
00016     private:
00017         Ticker* pollTicker;
00018         Ticker* readTicker;
00019        
00020         void poll();
00021 };
00022 
00023 #endif