fprime/Os/Models/Task.fpp
Philip Romano 3f25d8b535
Change FPP enums to smallest representation (#4342)
For all FPP enums in the framework, set the representing type to the minimum
width that can represent the enum's member constants.
2025-10-22 15:44:10 -07:00

24 lines
1010 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 : U8 {
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
}
}