The OS_TASK struct has a variable "stat" with the type OS_STAT. I assume it indicates the state of the current task. As per documentation, - the state can be ready, waiting, reason for suspension, etc. Can you please tell me what values of "stat" correspond to which task states. I did not find it anyhwere in the code or documentation.