StepperII
Dual Axis Stepper Controller

CQueue.h

00001 
00002 #pragma once
00003 #include "CTask.h"
00004 
00005 #define ARRAY_SIZE  8
00006 
00007 class CQueueTask : public CTask
00008 {
00009 private:
00010         unsigned char busyFlag;                         // True if processing
00011         unsigned char count;                            // Number of items in queue
00012         unsigned char inIndex;
00013         unsigned char outIndex;
00014         //void(*procs[ARRAY_SIZE])(void *);     // Define an array of function pointers
00015         void(*procs[ARRAY_SIZE])(void);         // Define an array of function pointers
00016         //void *params[ARRAY_SIZE];                     // Define an array of "void *" parameters
00017 
00018 public:
00019         //CQueueTask();
00020         //void sched(void(*proc)(void *), void *param);
00021         //void init(void *p, int stackSize);
00022         void sched(void(*proc)(void));
00023         void doQueue(void);
00024 };
 All Classes Files Functions Variables Defines