00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 #ifndef _MC_LIB_H_ 00012 #define _MC_LIB_H_ 00013 00014 extern Bool mci_direction; 00015 extern volatile Bool mci_run_stop; 00016 00017 //void mci_motor_run(void); 00018 Bool mci_motor_is_running(void); 00019 00020 void mci_set_motor_speed(U8 speed); 00021 00022 void mci_set_direction(U8 direction); 00023 U8 mci_get_direction(void); 00024 #define mci_get_motor_direction() mci_direction 00025 00026 void mci_store_measured_speed(U8 measured_speed); 00027 U8 mci_get_measured_speed(void); 00028 00029 U16 mci_get_measured_current(void); 00030 void mci_store_measured_current(U16 current); 00031 00032 void mci_run(void); 00033 void mci_stop(void); 00034 00035 void mci_forward(void); 00036 void mci_backward(void); 00037 void mci_set_speed(U16); 00038 00039 #endif
1.5.3