Choco OS  V.0.16.9.0
Join to the chocolate world
oC_MCS_MemoryRegionConfig_t Struct Reference

configuration structure for the memory region More...

#include <oc_mcs.h>

Data Fields

const void * BaseAddress
 Base address of the region - this must point to the start of the region. More...
 
oC_MemorySize_t Size
 Size of the region.
 
bool AlignSize
 True if the MCS should find the size nearest to the value given as the Size field.
 
oC_Power_t Power
 Power state for the region (enabled or disabled)
 
oC_Access_t UserAccess
 Definition of access for user space.
 
oC_Access_t PrivilegedAccess
 Definition of access for privileged space (portable or core)
 
bool Shareable
 For a shareable memory region that is implemented, the memory system provides data synchronization between bus masters in a system with multiple bus masters, for example, a processor with a DMA controller. More...
 
bool Cacheable
 True if the region should be cacheable - If you set a region to be cacheable: When you load from that region, the cache is searched. More...
 
bool Bufforable
 True if the region should be bufforable - Bufferable means whether a write to the address can be buffered. More...
 
uint32_t RegionNumber
 Number of the region to configure. More...
 

Detailed Description

The type is for storing configuration of the memory region for MPU

Definition at line 222 of file oc_mcs.h.

Field Documentation

const void* BaseAddress

Only architecture supported values are allowed

Definition at line 224 of file oc_mcs.h.

bool Bufforable

When you do a write to a memory (e.g. a STR instruction) the write gets placed into a buffer in the processor. The buffer continually drains the writes to the memory system - allowing the core to continue with the next instructions. Processors often have multiple buffers, for example one between the pipeline and L1 data cache, another between the L1 and L2 caches, another for main memory....

Definition at line 232 of file oc_mcs.h.

bool Cacheable

If the item is found, it is loaded from the cache. If the item is not found, a complete cache line including the required address is loaded. Some other cache line is evicted from the cache, unless there is an unused cache line available. When you save to that region, the cache is searched. If the item is found, the save is made to the cache. If the item is not found, the save is made to memory.

Definition at line 231 of file oc_mcs.h.

uint32_t RegionNumber

It is just ID index between 0 and oC_MCS_GetMaximumNumberOfRegions

Definition at line 233 of file oc_mcs.h.

bool Shareable

Strongly-ordered memory is always shareable. If multiple bus masters can access a non-shareable memory region, software must ensure data coherency between the bus masters.

Definition at line 230 of file oc_mcs.h.


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