fprime/Os/Models/Task.fpp
kevin-f-ortega a7f9bc7460
Add NOT_SUPPORTED to OS' statues (#3281)
* adding not-supported status because sometimes it's useful to report not supported

* updating shadow enums to match actual enum
2025-02-26 15:42:40 -08:00

24 lines
1005 B
Fortran

# ======================================================================
# \title Os/Models/task.fpp
# \brief FPP type definitions for Os/Task.hpp concepts
# ======================================================================
module Os {
@ FPP shadow-enum representing Os::Task::Status
enum TaskStatus {
OP_OK, @< message sent/received okay
INVALID_HANDLE, @< Task handle invalid
INVALID_PARAMS, @< started task with invalid parameters
INVALID_STACK, @< started with invalid stack size
UNKNOWN_ERROR, @< unexpected error return value
INVALID_AFFINITY, @< unable to set the task affinity
DELAY_ERROR, @< error trying to delay the task
JOIN_ERROR, @< error trying to join the task
ERROR_RESOURCES, @< unable to allocate more tasks
ERROR_PERMISSION, @< permissions error setting-up tasks
NOT_SUPPORTED, @< Task feature is not supported
INVALID_STATE, @< Task is in an invalid state for the operation
}
}