Daniele Caltabiano / motorDriver
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers motorDriver.cpp Source File

motorDriver.cpp

00001 #include "mbed.h"
00002 #include "motorDriver.h"
00003 
00004 motorDriver::motorDriver(char slaveAddress){
00005     this._i2cAddr = slaveAddress;    
00006 }
00007 
00008 int motorDriver::actualPosition(){
00009     return 3;
00010 }
00011 
00012 void motorDriver::requestData(char addr, char requestedData ,char *buff, int size){
00013     
00014 }
00015 
00016 char motorDriver::addressConverter(char sevenBitAddress){
00017     return sevenBitAddress << 1;
00018 } 
00019 int motorDriver::charArrayToInt(char *array, int size){
00020     return 5;
00021 }