F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Queue.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/Queue.cpp
3 // \brief stub implementation for Os::Queue
4 // ======================================================================
5 #include "Queue.hpp"
6 
7 namespace Os {
8 namespace Stub {
9 namespace Queue {
10 
12  return QueueInterface::Status::UNKNOWN_ERROR;
13 }
14 
16  FwSizeType size,
17  FwQueuePriorityType priority,
18  QueueInterface::BlockingType blockType) {
19  return QueueInterface::Status::UNINITIALIZED;
20 }
21 
23  FwSizeType capacity,
25  FwSizeType& actualSize,
26  FwQueuePriorityType& priority) {
27  return QueueInterface::Status::UNINITIALIZED;
28 }
29 
31  return 0;
32 }
33 
35  return 0;
36 }
37 
39  return &this->m_handle;
40 }
41 
42 } // namespace Queue
43 } // namespace Stub
44 } // namespace Os
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:30
PlatformSizeType FwSizeType
Definition: FpConfig.h:35
PlatformQueuePriorityType FwQueuePriorityType
Definition: FpConfig.h:55
QueueHandle parent class.
Definition: Queue.hpp:19
BlockingType
message type
Definition: Queue.hpp:44
Status
status returned from the queue send function
Definition: Queue.hpp:30
QueueHandle * getHandle() override
return the underlying queue handle (implementation specific)
Definition: Queue.cpp:38
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue
Definition: Queue.cpp:22
FwSizeType getMessagesAvailable() const override
get number of messages available
Definition: Queue.cpp:30
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue
Definition: Queue.cpp:15
Status create(const Fw::StringBase &name, FwSizeType depth, FwSizeType messageSize) override
create queue storage
Definition: Queue.cpp:11
FwSizeType getMessageHighWaterMark() const override
get maximum messages stored at any given time
Definition: Queue.cpp:34
StubQueueHandle m_handle
Definition: Queue.hpp:87