謙一 永井 / Mbed 2 deprecated SRC2018Auto

Dependencies:   mbed QEI2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MotorDrive.h Source File

MotorDrive.h

00001 #include "mbed.h"
00002 /*
00003 void morter1(char,float);
00004 void morter2(char,float);
00005 void morter3(char,float);
00006 */
00007 //void motor();
00008 //void motor(int,char,float);
00009 
00010 enum direction_of_rotation{
00011     CW,
00012     CCW,
00013     STOP
00014 };
00015 
00016 typedef enum{
00017     LIMITSWITCH,
00018     MAINSWITCH
00019 }SW;
00020 
00021 /*
00022 void morter1(char direction_of_rotation,float PWM_PULSEWIDTH );
00023 void morter2(char direction_of_rotation,float PWM_PULSEWIDTH );
00024 void morter3(char direction_of_rotation,float PWM_PULSEWIDTH );
00025 */
00026 void motor_init();
00027 void motor(int motor_num,char direction_of_rotation,float PWM_WRITE);