![]() |
SuperTinyKernel™ RTOS 1.06.0
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Interface for a stack memory region. More...
#include <stk_common.h>
Public Member Functions | |
| virtual Word * | GetStack () const =0 |
| Get pointer to the stack memory. | |
| virtual size_t | GetStackSize () const =0 |
| Get number of elements of the stack memory array. | |
| virtual size_t | GetStackSizeBytes () const =0 |
| Get size of the memory in bytes. | |
| virtual size_t | GetStackSpace () |
| Get available stack space. | |
Interface for a stack memory region.
Definition at line 230 of file stk_common.h.
|
pure virtual |
Get pointer to the stack memory.
Implemented in stk::StackMemoryWrapper< _StackSize >, stk::StackMemoryWrapper< STACK_SIZE_MIN >, stk::StackMemoryWrapper<(32U)>, stk::Task< _StackSize, _AccessMode >, stk::TaskW< _Weight, _StackSize, _AccessMode >, stk::time::TimerHost::TimerWorkerTask, StkThread, and TaskWrapper.
Referenced by stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC, 16U, stk::SwitchStrategyFP32, stk::PlatformDefault >::AllocateNewTask(), GetStackSpace(), stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC, 16U, stk::SwitchStrategyFP32, stk::PlatformDefault >::StateSwitch(), and stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC, 16U, stk::SwitchStrategyFP32, stk::PlatformDefault >::StateWake().
|
pure virtual |
Get number of elements of the stack memory array.
Implemented in stk::StackMemoryWrapper< _StackSize >, stk::StackMemoryWrapper< STACK_SIZE_MIN >, stk::StackMemoryWrapper<(32U)>, stk::Task< _StackSize, _AccessMode >, stk::TaskW< _Weight, _StackSize, _AccessMode >, stk::time::TimerHost::TimerWorkerTask, StkThread, and TaskWrapper.
Referenced by GetStackSpace().
|
pure virtual |
Get size of the memory in bytes.
Implemented in stk::StackMemoryWrapper< _StackSize >, stk::StackMemoryWrapper< STACK_SIZE_MIN >, stk::StackMemoryWrapper<(32U)>, stk::Task< _StackSize, _AccessMode >, stk::TaskW< _Weight, _StackSize, _AccessMode >, stk::time::TimerHost::TimerWorkerTask, StkThread, and TaskWrapper.
|
inlinevirtual |
Get available stack space.
Definition at line 252 of file stk_common.h.
References GetStack(), GetStackSize(), and STK_STACK_MEMORY_FILLER.
Referenced by osThreadGetStackSpace().