|
StepperII
Dual Axis Stepper Controller
|
00001 /* 00002 * CRepeat.h 00003 * 00004 * Created on: Oct 11, 2009 00005 * Author: kirk 00006 */ 00007 00008 #ifndef CREPEAT_H_ 00009 #define CREPEAT_H_ 00010 00011 class CRepeat 00012 { 00013 unsigned int count; 00014 unsigned int reload; 00015 void(*p)(); 00016 00017 public: 00018 CRepeat(); 00019 char create(unsigned int, void(*funcPtr)()); 00020 void update(void); 00021 void setPeriod(unsigned int msec); 00022 void start(void); 00023 void stop(void); 00024 }; 00025 00026 #endif /* CREPEAT_H_ */
1.7.3