282 of 323
ZBasic System Library 272 ZX Microcontroller Family StatusTask Type Function returning Byte Invocation StatusTask(taskStack) StatusTask() Parameter Method Type Description taskStack ByRef array of Byte The stack for a task of interest. Discussion This function returns a value indicating the status of the task associated with the given task stack. If no task stack is explicitly given, the task stack for the Main() routine is assumed. The return values and their respective meanings are shown in the table below. Task Status Values Constant Value Meaning TaskReady 0 The task is running or ready to run. TaskSleeping 1 The task is sleeping. TaskWaitInputCapture 2 The task is waiting for InputCapture() to complete. TaskWaitInt0 3 The task is awaiting Interrupt 0. TaskWaitInt1 4 The task is awaiting Interrupt 1. TaskWaitInt2 5 The task is awaiting Interrupt 2. TaskWaitInterval 6 The task is waiting for the interval counter to expire. TaskWaitAnalogCompare 7 The task is waiting for an analog comparator event. TaskWaitPinChange0 8 The task is waiting for a pin change event 0. TaskWaitPinChange1 9 The task is waiting for a pin change event 1. TaskWaitPinChange2 10 The task is waiting for a pin change event 2. TaskWaitPinChange3 11 The task is waiting for a pin change event 3. TaskWaitOutputCapture 12 The task is waiting for OutputCapture() to complete. TaskWaitInt3 13 The task is awaiting Interrupt 3. TaskWaitInt4 14 The task is awaiting Interrupt 4. TaskWaitInt5 15 The task is awaiting Interrupt 5. TaskWaitInt6 16 The task is awaiting Interrupt 6. TaskWaitInt7 17 The task is awaiting Interrupt 7. TaskWaitPinChangeA0 18 The task is waiting for a pin change event, port A. TaskWaitPinChangeA1 19 The task is waiting for a pin change event, port A. TaskWaitPinChangeB0 20 The task is waiting for a pin change event, port B. TaskWaitPinChangeB1 21 The task is waiting for a pin change event, port B. TaskWaitPinChangeC0 22 The task is waiting for a pin change event, port C. TaskWaitPinChangeC1 23 The task is waiting for a pin change event, port C. TaskWaitPinChangeD0 24 The task is waiting for a pin change event, port D. TaskWaitPinChangeD1 25 The task is waiting for a pin change event, port D. TaskWaitPinChangeE0 26 The task is waiting for a pin change event, port E. TaskWaitPinChangeE1 27 The task is waiting for a pin change event, port E. TaskWaitPinChangeF0 28 The task is waiting for a pin change event, port F. TaskWaitPinChangeF1 29 The task is waiting for a pin change event, port F. TaskWaitPinChangeH0 30 The task is waiting for a pin change event, port H. TaskWaitPinChangeH1 31 The task is waiting for a pin change event, port H. TaskWaitPinChangeJ0 32 The task is waiting for a pin change event, port J. TaskWaitPinChangeJ1 33 The task is waiting for a pin change event, port J. TaskWaitPinChangeK0 34 The task is waiting for a pin change event, port K. TaskWaitPinChangeK1 35 The task is waiting for a pin change event, port K. TaskWaitPinChangeQ0 36 The task is waiting for a pin change event, port Q.