Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mtr_func.h
00001 /** 00002 *Funktionen zur Ansteuerung des Steppermotors 00003 * 00004 *Headerdatei mtr_func.h 00005 * 00006 *@version: 01.11.2015 00007 *@author: Gustav Grether 00008 */ 00009 00010 #ifndef MTR_FUNC_H 00011 #define MTR_FUNC_H 00012 00013 #include "mbed.h" 00014 00015 /** 00016 * Funktion zum Setzen des Einschaltzustandes des Schrittmotors. 00017 * @param einschaltzustand: mtr_state = 0 = aus, mtr_state = 1 = an 00018 */ 00019 void mtr_en_set(int mtr_state); 00020 00021 /** 00022 * Funktion zum Setzen der Drehrichtung des Schrittmotors. 00023 * @param drehrichtung: 0 = Tisch in -y fahren , 1 = +y fahren 00024 */ 00025 void mtr_dir_set(int drehrichtung); 00026 00027 /** 00028 * Funktion gibt Periodendauer der PWM [us] zurueck 00029 *@return Periodendauer der PWM [us] 00030 */ 00031 int mtr_period_get();// 00032 00033 00034 /** 00035 * Funktion setzt Periodendauer der PWM [us] 00036 *@param Periodendauer der PWM [us] 00037 */ 00038 void mtr_period_set(int period); 00039 00040 #endif
Generated on Tue Jul 19 2022 13:01:49 by
1.7.2