00001 #ifndef DIRECT_CTRL_H 00002 #define DIRECT_CTRL_H 00003 00015 #include "motorCtrl.h" 00016 00017 00021 enum DirectDeviceCtrlMode { 00022 DIRECT_MODE_FREE = MTR_MODE_FREE, 00023 DIRECT_MODE_CW = MTR_MODE_CW_BREAK, 00024 DIRECT_MODE_CCW = MTR_MODE_CCW_BREAK, 00025 DIRECT_MODE_NONE, 00026 FREE = DIRECT_MODE_FREE, 00027 CW = DIRECT_MODE_CW, 00028 CCW = DIRECT_MODE_CCW, 00029 }; 00030 00031 00037 typedef struct { 00038 unsigned char pwm; /* PWM比 */ 00039 unsigned char mode; /* モード */ 00040 } directDeviceInfo_t; 00041 00042 00043 //#include "cpp_extern_macro.h" 00044 BEGIN_C_DECLS; 00045 00049 extern void initDirectInfo(directDeviceInfo_t *direct); 00050 00051 END_C_DECLS; 00052 #endif /* !DIRECT_CTRL */ 00053