Robot

Dependencies:   mbed QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Driver.h Source File

Driver.h

00001 #ifndef DIRVER_H
00002 #define DIRVER_H    
00003     #include "mbed.h"
00004     enum TypeCommunication {D_CAN, D_DAC,D_SPI}; 
00005 class Driver {
00006     private:
00007         TypeCommunication communication;
00008         CAN *can;
00009         SPI *spi;
00010         AnalogOut *dac;
00011     public:
00012         Driver(PinName adrress);
00013         Driver(PinName RX,PinName TX);
00014         Driver(PinName MOSI,PinName MISO,PinName sclk, int frecuency);
00015         int sendmessage(char data[8]);
00016         int sendmessage(float data);
00017         ~Driver();
00018 }; 
00019 #endif //DIRVER_H