Comunication_1

Dependents:   MX106-finaltest dynamixel Arm_dynamixel_can Arm_dynamixel_can_procedurale

Committer:
stebonicelli
Date:
Tue Apr 16 08:58:52 2019 +0000
Revision:
6:eb570f9f48ad
Parent:
3:33d025a403d5
using RawSerial for mbed5 os compatibility

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mattiasub 2:b4d1f5424448 1 #ifndef MBED_communication_1_H
mattiasub 2:b4d1f5424448 2 #define MBED_communication_1_H
mattiasub 2:b4d1f5424448 3 #include "mbed.h"
stebonicelli 6:eb570f9f48ad 4 #include "RawSerial.h"
mattiasub 2:b4d1f5424448 5
mattiasub 2:b4d1f5424448 6
mattiasub 2:b4d1f5424448 7 class communication_1{
mattiasub 2:b4d1f5424448 8
mattiasub 2:b4d1f5424448 9 public:
mattiasub 2:b4d1f5424448 10
mattiasub 2:b4d1f5424448 11 communication_1(PinName tx, PinName rx, int baud_rate);
mattiasub 2:b4d1f5424448 12
mattiasub 2:b4d1f5424448 13 int read(int ID, int start, int length, char* data);
mattiasub 2:b4d1f5424448 14 int write(int ID, int start, int length, char* data, int flag=0);
clynamen 3:33d025a403d5 15 void trigger();
mattiasub 2:b4d1f5424448 16
mattiasub 2:b4d1f5424448 17 private :
mattiasub 2:b4d1f5424448 18
stebonicelli 6:eb570f9f48ad 19 RawSerial _SerialHalfDuplex;
mattiasub 2:b4d1f5424448 20
mattiasub 2:b4d1f5424448 21 };
clynamen 3:33d025a403d5 22 #endif