mFrame
載入中...
搜尋中...
無符合項目
mcxa153::chip::syscon::mask 命名空間(Namespace)參考文件

列舉型態

enum struct  REMAP : uint32 {
  CPU0_SBUS_MASK = (0x3U << +Shift::REMAP_CPU0_SBUS) , CPU0_SBUS_04000000 = (0x0U << +Shift::REMAP_CPU0_SBUS) , CPU0_SBUS_20006000 = (0x1U << +Shift::REMAP_CPU0_SBUS) , DMA0_MASK = (0x3U << +Shift::REMAP_DMA0) ,
  DMA0_04000000 = (0x0U << +Shift::REMAP_DMA0) , DMA0_CPU0_SBUS = (0x1U << +Shift::REMAP_DMA0) , USB0_MASK = (0x3U << +Shift::REMAP_USB0) , USB0_04000000 = (0x0U << +Shift::REMAP_USB0) ,
  USB0_CPU0_SBUS = (0x1U << +Shift::REMAP_USB0) , LOCK = (0x1U << +Shift::REMAP_LOCK) , DEFAULT = 0x00000000U
}
 SYSCON REMAP Register Bit Mask Enumeration. 更多...
 

函式

constexpr unsigned int operator+ (REMAP e)
 Operator Overload - Convert REMAP enum to unsigned int.
 

詳細描述

Copyright (c) 2020 ZxyKira All rights reserved.

SPDX-License-Identifier: MIT

列舉型態說明文件

◆ REMAP

enum struct mcxa153::chip::syscon::mask::REMAP : uint32
strong

SYSCON REMAP Register Bit Mask Enumeration.

Bit mask definitions for the MCXA153 System Configuration Controller (SYSCON) REMAP register. This register controls memory remapping for different system masters, enabling flexible memory allocation and system optimization.

SYSCON REMAP 寄存器位掩碼枚舉,控制不同系統主控的記憶體重映射

Memory Remapping Features:

  • CPU0 System Bus (SBUS) memory remapping control
  • DMA0 memory access remapping configuration
  • USB0 memory access remapping configuration
  • Register lock mechanism for configuration protection
  • Flexible RAMX0 memory space allocation
Memory Remapping Benefits:
  • Optimized memory access for different system masters
  • Flexible memory layout configuration for system performance
  • Support for different memory architectures and use cases
  • Protection mechanism to prevent accidental configuration changes
警告
Important Considerations:
  • Memory remapping affects system memory layout and access patterns
  • Incorrect remapping may cause system malfunction or crashes
  • LOCK bit prevents further changes until system reset
  • Changes may affect real-time system performance characteristics
參閱
SYSCON REMAP register for complete register description
Memory map documentation for address space definitions
Shift enumeration for bit field position definitions
列舉值
CPU0_SBUS_MASK 

CPU0 System Bus Clear Mask.

Bit mask to clear the CPU0 System Bus remapping field before setting new values. This mask covers all bits in the CPU0_SBUS field for safe field manipulation.

CPU0 系統匯流排清除位掩碼,用於清除 CPU0_SBUS 欄位的所有位元

Field Mask Information:

  • Covers 2-bit field for CPU0_SBUS remapping control
  • Used in read-modify-write operations for safe field updates
  • Essential for preventing unintended bit modifications
Usage Pattern: value = (register & ~CPU0_SBUS_MASK) | new_cpu0_sbus_setting;
CPU0_SBUS_04000000 

CPU0 SBUS to RAMX0 Default Mapping.

Maps CPU0 System Bus access to RAMX0 default address space (0x04000000-0x04001fff). This is the standard memory mapping providing direct access to RAMX0.

CPU0 SBUS 到 RAMX0 預設映射 (0x04000000-0x04001fff)

Memory Mapping Characteristics:

  • Address range: 0x04000000 - 0x04001fff (8KB)
  • Direct CPU0 access to RAMX0 memory space
  • Standard memory layout for typical system operation
  • Optimal for applications requiring predictable memory access
Performance Considerations:
  • Direct mapping provides fastest CPU0 access to RAMX0
  • Suitable for code execution and high-performance data access
  • Compatible with standard memory management practices
CPU0_SBUS_20006000 

CPU0 SBUS to Alternative RAMX0 Mapping.

Maps CPU0 System Bus access to alternative RAMX0 address space (0x20006000-0x20007fff). This provides an alternative memory layout for system optimization.

CPU0 SBUS 到替代 RAMX0 映射 (0x20006000-0x20007fff)

Alternative Mapping Characteristics:

  • Address range: 0x20006000 - 0x20007fff (8KB)
  • Alternative CPU0 access path to RAMX0 memory
  • May provide different access characteristics or system integration
  • Useful for specialized memory management strategies
Application Use Cases:
  • Memory layout optimization for specific applications
  • Integration with different memory management schemes
  • Support for alternative system architectures
DMA0_MASK 

DMA0 Clear Mask.

Bit mask to clear the DMA0 remapping field before setting new values. This mask covers all bits in the DMA0 field for safe field manipulation.

DMA0 清除位掩碼,用於清除 DMA0 欄位的所有位元

DMA0 Field Mask:

  • Covers 2-bit field for DMA0 remapping control
  • Essential for safe DMA0 memory access configuration
  • Used in conjunction with DMA0 mapping values
DMA0_04000000 

DMA0 to RAMX0 Default Mapping.

Maps DMA0 access to RAMX0 default address space (0x04000000-0x04001fff). This provides direct DMA access to RAMX0 for high-performance data transfers.

DMA0 到 RAMX0 預設映射 (0x04000000-0x04001fff)

DMA Access Characteristics:

  • Address range: 0x04000000 - 0x04001fff (8KB)
  • Direct DMA0 access to RAMX0 memory space
  • Optimized for high-speed data transfer operations
  • Independent of CPU0 memory access patterns
Performance Benefits:
  • High-speed DMA transfers to/from RAMX0
  • Reduced CPU overhead for memory operations
  • Suitable for real-time data processing applications
DMA0_CPU0_SBUS 

DMA0 to CPU0 SBUS Alias Space.

Maps DMA0 access to the same alias space as CPU0_SBUS, providing shared memory access patterns between DMA0 and CPU0 systems.

DMA0 到 CPU0 SBUS 別名空間映射,提供 DMA0 和 CPU0 間的共享記憶體訪問

Shared Access Benefits:

  • Coherent memory access between DMA0 and CPU0
  • Simplified memory management for shared data structures
  • Consistent address space for CPU and DMA operations
  • Reduced memory management complexity
Coherency Considerations:
  • Ensures data coherency between CPU0 and DMA0 accesses
  • May require cache management for optimal performance
  • Suitable for shared buffer and communication applications
USB0_MASK 

USB0 Clear Mask.

Bit mask to clear the USB0 remapping field before setting new values. This mask covers all bits in the USB0 field for safe field manipulation.

USB0 清除位掩碼,用於清除 USB0 欄位的所有位元

USB0 Field Mask:

  • Covers 2-bit field for USB0 remapping control
  • Essential for safe USB0 memory access configuration
  • Used for USB buffer and descriptor memory management
USB0_04000000 

USB0 to RAMX0 Default Mapping.

Maps USB0 access to RAMX0 default address space (0x04000000-0x04001fff). This provides direct USB controller access to RAMX0 for buffer management.

USB0 到 RAMX0 預設映射 (0x04000000-0x04001fff)

USB Memory Access:

  • Address range: 0x04000000 - 0x04001fff (8KB)
  • Direct USB0 controller access to RAMX0 memory
  • Optimized for USB buffer and descriptor operations
  • Independent memory space for USB operations
USB Performance Benefits:
  • Dedicated memory space for USB buffers and descriptors
  • High-speed access for USB data transfer operations
  • Reduced system memory contention during USB operations
  • Suitable for high-bandwidth USB applications
USB0_CPU0_SBUS 

USB0 to CPU0 SBUS Alias Space.

Maps USB0 access to the same alias space as CPU0_SBUS, providing shared memory access for USB operations and CPU processing.

USB0 到 CPU0 SBUS 別名空間映射,提供 USB 操作和 CPU 處理的共享記憶體

Shared USB Memory Benefits:

  • Coherent memory access between USB0 and CPU0
  • Simplified USB buffer management and processing
  • Consistent address space for USB and CPU operations
  • Reduced memory copy operations for USB data processing
USB Integration Advantages:
  • Direct CPU access to USB buffers for processing
  • Efficient USB descriptor and buffer management
  • Suitable for USB applications requiring CPU processing
  • May require cache coherency management for optimal performance
LOCK 

REMAP Register Lock Bit.

This 1-bit field provides a write protection mechanism to prevent accidental modification of the REMAP register contents. Once set, this bit remains asserted until a system reset occurs.

REMAP 寄存器鎖定位元,提供寫入保護機制防止意外修改

Lock Mechanism:

  • [0b] Register is not locked and can be modified
  • [1b] Register is locked and cannot be altered until system reset
  • Write protection applies to all REMAP register fields
  • Lock state persists until hardware system reset
Security and Safety Features:
  • Prevents accidental memory remapping changes during operation
  • Protects critical system memory layout configuration
  • Essential for safety-critical applications requiring stable memory maps
  • Cannot be cleared by software once set
警告
Lock Implications:
  • Once locked, all REMAP settings become read-only
  • System reset required to unlock and modify REMAP configuration
  • Consider system requirements before enabling lock protection
  • May prevent runtime memory optimization if locked too early

@recommended Enable lock after completing system memory configuration to prevent unintended changes during normal operation.

DEFAULT 

REMAP Register Default Value.

Default power-on reset value for the REMAP register. This represents the initial state of all memory remapping configurations before any software modifications.

REMAP 寄存器預設值,代表上電重置後的初始狀態

Default Configuration:

  • All remapping fields set to default (0) values
  • CPU0_SBUS maps to default RAMX0 space (0x04000000)
  • DMA0 maps to default RAMX0 space (0x04000000)
  • USB0 maps to default RAMX0 space (0x04000000)
  • LOCK bit is cleared (register unlocked)
Reset Behavior:
  • Automatically restored on system reset
  • Provides predictable memory layout after reset
  • Ensures consistent system initialization behavior
  • Safe starting point for memory remapping configuration

函式說明文件

◆ operator+()

unsigned int mcxa153::chip::syscon::mask::operator+ ( REMAP e)
constexpr

Operator Overload - Convert REMAP enum to unsigned int.

Converts REMAP enumeration value to unsigned integer for easy bitwise operations. Useful for manipulating REMAP register fields in conditional statements.

將REMAP列舉值轉換為無號整數,便於位元操作

參數
eREMAP enumeration value 列舉值
傳回值
constexpr unsigned int Unsigned integer representation 無號整數表示