mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* adding not-supported status because sometimes it's useful to report not supported * updating shadow enums to match actual enum
28 lines
1.3 KiB
Fortran
28 lines
1.3 KiB
Fortran
# ======================================================================
|
|
# \title Os/Models/Queue.fpp
|
|
# \brief FPP type definitions for Os/Queue.hpp concepts
|
|
# ======================================================================
|
|
|
|
module Os {
|
|
@ FPP shadow-enum representing Os::Queue::Status
|
|
enum QueueStatus {
|
|
OP_OK, @< message sent/received okay
|
|
ALREADY_CREATED, @< creating an already created queue
|
|
EMPTY, @< If non-blocking, all the messages have been drained.
|
|
UNINITIALIZED, @< Queue wasn't initialized successfully
|
|
SIZE_MISMATCH, @< attempted to send or receive with buffer too large, too small
|
|
SEND_ERROR, @< message send error
|
|
RECEIVE_ERROR, @< message receive error
|
|
INVALID_PRIORITY, @< invalid priority requested
|
|
FULL, @< Queue was full when attempting to send a message
|
|
NOT_SUPPORTED, @< Queue feature is not supported
|
|
UNKNOWN_ERROR @< Unexpected error; can't match with returns
|
|
}
|
|
|
|
@ FPP shadow-enum representing Os::Queue::BlockingType
|
|
enum QueueBlockingType {
|
|
BLOCKING, @< Message will block until space is available
|
|
NONBLOCKING @< Message will return with status when space is unavailable
|
|
}
|
|
}
|