for sophomore

Fork of VNH5019 by aigamozu

Committer:
m5171135
Date:
Wed May 21 01:22:46 2014 +0000
Revision:
0:83e00dc8eb92
Child:
1:656efbc86da4
add VNH5019.lib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
m5171135 0:83e00dc8eb92 1 #include "mbed.h"
m5171135 0:83e00dc8eb92 2 #include <stdint.h>
m5171135 0:83e00dc8eb92 3 #include <math.h>
m5171135 0:83e00dc8eb92 4 #include <ctype.h>
m5171135 0:83e00dc8eb92 5
m5171135 0:83e00dc8eb92 6 #ifndef AIGAMOZU_VNH5019
m5171135 0:83e00dc8eb92 7 #define AIGAMOZU_VNH5019
m5171135 0:83e00dc8eb92 8
m5171135 0:83e00dc8eb92 9 class VNH5019{
m5171135 0:83e00dc8eb92 10
m5171135 0:83e00dc8eb92 11 public:
m5171135 0:83e00dc8eb92 12 VNH5019(PinName m1na,PinName m1nb,PinName m1pwm,PinName m2na,PinName m2nb,PinName m2pwm);
m5171135 0:83e00dc8eb92 13 void changeSpeed(uint8_t L_state,uint8_t L_pwm,uint8_t R_state,uint8_t R_pwm);
m5171135 0:83e00dc8eb92 14
m5171135 0:83e00dc8eb92 15 private:
m5171135 0:83e00dc8eb92 16 DigitalOut _m1na;
m5171135 0:83e00dc8eb92 17 DigitalOut _m1nb;
m5171135 0:83e00dc8eb92 18 PwmOut _m1pwm;
m5171135 0:83e00dc8eb92 19
m5171135 0:83e00dc8eb92 20 DigitalOut _m2na;
m5171135 0:83e00dc8eb92 21 DigitalOut _m2nb;
m5171135 0:83e00dc8eb92 22 PwmOut _m2pwm;
m5171135 0:83e00dc8eb92 23 };
m5171135 0:83e00dc8eb92 24
m5171135 0:83e00dc8eb92 25 #endif