Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

cnc_output.h

Go to the documentation of this file.
00001 
00002 #ifndef _CNC_OUTPUT_H_
00003 #define _CNC_OUTPUT_H_
00004 
00005 #define MY_PI 3.141592653589793
00006 
00007 typedef struct _CncConfig_Output CncConfig_Output;
00008 struct _CncConfig_Output {
00009         void *plugin;
00010         gint (*cb_check_z) (void);
00011         gint (*cb_check_size) (void);
00012         gint (*cb_set_speed_xy) (gint speed);
00013         gint (*cb_set_speed_z) (gint speed);
00014         gint (*cb_reset) (void);
00015         gint (*cb_start) (gint x, gint y);
00016         gint (*cb_stop) (void);
00017         gint (*cb_off) (void);
00018         gint (*cb_tool_change) (gint tool_nr);
00019         gint (*cb_go_xy) (gint x, gint y);
00020         gint (*cb_go_xyz) (gint x, gint y, gint z);
00021         gint (*cb_go_x) (gint x);
00022         gint (*cb_go_y) (gint y);
00023         gint (*cb_go_z) (gint z);
00024         gint (*cb_soft_start) (gint value);
00025         gint (*cb_drill_on) (void);
00026         gint (*cb_drill_off) (void);
00027         gint (*cb_drill_set_speed) (gint speed);
00028         gint (*cb_drill) (void);
00029         gint (*cb_pen) (gint updown);
00030         gint (*cb_init) (void);
00031         gchar name[128];
00032 };
00033 
00034 CncConfig_Output CNC__Out[10];
00035 gint CNC__OutID;
00036 gint CNC__OutMaxID;
00037 gint CNC__OutActive;
00038 gfloat CNC__OutZoom_X;
00039 gfloat CNC__OutZoom_Y;
00040 gfloat CNC__OutZoom_Z;
00041 
00042 gint CNC__Init(void);
00043 gint CNC__Start(gint x, gint y);
00044 gint CNC__Stop(void);
00045 gint CNC__Reset(void);
00046 gint CNC__Off(void);
00047 gint CNC__Go_XY(gint x, gint y);
00048 gint CNC__Go_XYZ(gint x, gint y, gint z);
00049 gint CNC__Go_X(gint x);
00050 gint CNC__Go_Y(gint y);
00051 gint CNC__Go_Z(gint z);
00052 gint CNC__DrillOn(void);
00053 gint CNC__DrillOff(void);
00054 gint CNC__DrillSetSpeed(gint speed);
00055 gint CNC__Drill(void);
00056 gint CNC__Pen(gint updown);
00057 gint CNC__SpeedXY(gint speed);
00058 gint CNC__SpeedZ(gint speed);
00059 gint CNC__CheckZ(void);
00060 gint CNC__CeckSize(void);
00061 gint CNC__ToolChange(gint tool_nr);
00062 gint CNC__SoftStart(gint value);
00063 gint CNC__SetOutput(gint output_id);
00064 gint CNC__SetZoom_X(gfloat zoom);
00065 gint CNC__SetZoom_Y(gfloat zoom);
00066 gint CNC__SetZoom_Z(gfloat zoom);
00067 gint CNC__SetZoom(gfloat zoom);
00068 
00069 #endif

Generated on Wed May 3 17:34:46 2006 for cnc2d by  doxygen 1.4.2