SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk::MpuConfig Struct Reference

Aggregated hardware MPU setup configuration and state descriptor. More...

#include <stk_common.h>

Collaboration diagram for stk::MpuConfig:

Public Member Functions

 MpuConfig ()
 Default constructor initializing an empty, disabled MPU configuration.
 MpuConfig (const MpuRegionList &regions_, uint32_t mode_)
 Parameterized constructor initializing MPU region settings and enable state.

Public Attributes

MpuRegionList regions
 Fixed-capacity collection of configured MPU region descriptors.
uint32_t mode
 Mode flags (hardware-dependent, see hw::mpu::EMpuConfigFlags).

Static Public Attributes

static constexpr uint32_t MPU_OFF = static_cast<TId>(0U)

Detailed Description

Aggregated hardware MPU setup configuration and state descriptor.

Wraps a static fixed-capacity collection of MPU region descriptors (MpuRegionList) along with an overall enable flag controlling hardware MPU initialization and activation.

See also
ITask::GetMpuRegions, IPlatform::IEventOverrider::OnConfigureMpu, MpuRegionList

Definition at line 352 of file stk_common.h.

Constructor & Destructor Documentation

◆ MpuConfig() [1/2]

stk::MpuConfig::MpuConfig ( )
inline

Default constructor initializing an empty, disabled MPU configuration.

Definition at line 361 of file stk_common.h.

361 : regions(), mode(MPU_OFF)
362 {}
MpuRegionList regions
Fixed-capacity collection of configured MPU region descriptors.
Definition stk_common.h:371
static constexpr uint32_t MPU_OFF
Definition stk_common.h:357
uint32_t mode
Mode flags (hardware-dependent, see hw::mpu::EMpuConfigFlags).
Definition stk_common.h:372

References mode, MPU_OFF, and regions.

◆ MpuConfig() [2/2]

stk::MpuConfig::MpuConfig ( const MpuRegionList & regions_,
uint32_t mode_ )
inline

Parameterized constructor initializing MPU region settings and enable state.

Parameters
[in]regions_Initial collection of MPU region descriptors.
[in]enable_Activation state flag for the hardware MPU subsystem.

Definition at line 368 of file stk_common.h.

368 : regions(regions_), mode(mode_)
369 {}

References mode, and regions.

Member Data Documentation

◆ mode

uint32_t stk::MpuConfig::mode

Mode flags (hardware-dependent, see hw::mpu::EMpuConfigFlags).

Definition at line 372 of file stk_common.h.

Referenced by MpuConfig(), and MpuConfig().

◆ MPU_OFF

uint32_t stk::MpuConfig::MPU_OFF = static_cast<TId>(0U)
staticconstexpr

Definition at line 357 of file stk_common.h.

Referenced by MpuConfig().

◆ regions

MpuRegionList stk::MpuConfig::regions

Fixed-capacity collection of configured MPU region descriptors.

Definition at line 371 of file stk_common.h.

Referenced by MpuConfig(), and MpuConfig().


The documentation for this struct was generated from the following file: