Robot
Embed:
(wiki syntax)
Show/hide line numbers
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
Generated on Thu Jul 14 2022 08:46:33 by
1.7.2