Comunication_1

Dependents:   MX106-finaltest dynamixel Arm_dynamixel_can Arm_dynamixel_can_procedurale

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers communication_1.h Source File

communication_1.h

00001 #ifndef MBED_communication_1_H
00002 #define MBED_communication_1_H
00003 #include "mbed.h"
00004 #include "RawSerial.h"
00005 
00006 
00007 class communication_1{
00008 
00009 public:
00010    
00011     communication_1(PinName tx, PinName rx, int baud_rate);
00012     
00013     int read(int ID, int start, int length, char* data);
00014     int write(int ID, int start, int length, char* data, int flag=0);
00015     void trigger();
00016 
00017 private :
00018 
00019     RawSerial _SerialHalfDuplex;
00020     
00021 };
00022 #endif