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

複合項目

class  OSTIMER
 MCXA153 作業系統計時器 (Operating System Timer) 控制器靜態工具類別 更多...
 
struct  Register
 OSTIMER (On-chip System Timer) Peripheral Register Structure. 更多...
 

列舉型態

enum struct  Mask : uint32 {
  EVTIMERL_EVTIMER_COUNT_VALUE = 0xFFFFFFFFU , EVTIMERH_EVTIMER_COUNT_VALUE = 0x3FFU , CAPTURE_L_CAPTURE_VALUE = 0xFFFFFFFFU , CAPTURE_H_CAPTURE_VALUE = 0x3FFU ,
  MATCH_L_MATCH_VALUE = 0xFFFFFFFFU , MATCH_H_MATCH_VALUE = 0x3FFU , OSEVENT_CTRL_OSTIMER_INTRFLAG = 0x1U , OSEVENT_CTRL_OSTIMER_INTENA = 0x2U ,
  OSEVENT_CTRL_MATCH_WR_RDY = 0x4U , OSEVENT_CTRL_DEBUG_EN = 0x8U
}
 OSTIMER (On-chip System Timer) Register Bit Masks. 更多...
 
enum struct  Shift : uint32 {
  EVTIMERL_EVTIMER_COUNT_VALUE = 0U , EVTIMERH_EVTIMER_COUNT_VALUE = 0U , CAPTURE_L_CAPTURE_VALUE = 0U , CAPTURE_H_CAPTURE_VALUE = 0U ,
  MATCH_L_MATCH_VALUE = 0U , MATCH_H_MATCH_VALUE = 0U , OSEVENT_CTRL_OSTIMER_INTRFLAG = 0U , OSEVENT_CTRL_OSTIMER_INTENA = 1U ,
  OSEVENT_CTRL_MATCH_WR_RDY = 2U , OSEVENT_CTRL_DEBUG_EN = 3U
}
 OSTIMER (On-chip System Timer) Register Bit Shift Positions. 更多...
 

函式

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

變數

RegisterOSTIMER0
 

詳細描述

Copyright (c) 2020 ZxyKira All rights reserved.

SPDX-License-Identifier: MIT

列舉型態說明文件

◆ Mask

enum struct mcxa153::chip::ostimer::Mask : uint32
strong

OSTIMER (On-chip System Timer) Register Bit Masks.

Enumeration defining bit field masks for OSTIMER (On-chip System Timer) peripheral registers. The OSTIMER provides a 64-bit timer with match and capture capabilities for system timing operations. Each mask value corresponds to specific bit fields within the OSTIMER register map.

OSTIMER支援64位元計時器功能,具有匹配和捕獲能力,用於系統計時操作。 每個遮罩值對應於OSTIMER暫存器映射中的特定位元欄位。

All mask values are defined as 32-bit unsigned integers
Use with bitwise operations (|, &, ^, ~) for register manipulation
v1.0.0
列舉值
EVTIMERL_EVTIMER_COUNT_VALUE 

EVTIMERL Register - Event Timer Count Value (Low 32-bit)

Bit mask for the lower 32-bit portion of the 64-bit event timer counter. This field contains the current count value for the OSTIMER.

事件計時器計數值的低32位元部分遮罩

  • Register: EVTIMERL
  • Bits: [31:0]
  • Access: Read-Only
  • Reset Value: 0x00000000
EVTIMERH_EVTIMER_COUNT_VALUE 

EVTIMERH Register - Event Timer Count Value (High 10-bit)

Bit mask for the upper 10-bit portion of the 64-bit event timer counter. Combined with EVTIMERL, forms a complete 42-bit counter value.

事件計時器計數值的高10位元部分遮罩

  • Register: EVTIMERH
  • Bits: [9:0]
  • Access: Read-Only
  • Reset Value: 0x000
CAPTURE_L_CAPTURE_VALUE 

CAPTURE_L Register - Timer Capture Value (Low 32-bit)

Bit mask for capturing the lower 32-bit portion of the timer value. Used to capture the current timer count when a capture event occurs.

計時器捕獲值的低32位元部分遮罩

  • Register: CAPTURE_L
  • Bits: [31:0]
  • Access: Read-Only
  • Reset Value: 0x00000000
CAPTURE_H_CAPTURE_VALUE 

CAPTURE_H Register - Timer Capture Value (High 10-bit)

Bit mask for capturing the upper 10-bit portion of the timer value. Combined with CAPTURE_L, provides complete 42-bit capture functionality.

計時器捕獲值的高10位元部分遮罩

  • Register: CAPTURE_H
  • Bits: [9:0]
  • Access: Read-Only
  • Reset Value: 0x000
MATCH_L_MATCH_VALUE 

MATCH_L Register - Timer Match Value (Low 32-bit)

Bit mask for setting the lower 32-bit portion of the match compare value. When timer reaches this value (combined with MATCH_H), a match event occurs.

計時器匹配值的低32位元部分遮罩

  • Register: MATCH_L
  • Bits: [31:0]
  • Access: Read/Write
  • Reset Value: 0xFFFFFFFF
MATCH_H_MATCH_VALUE 

MATCH_H Register - Timer Match Value (High 10-bit)

Bit mask for setting the upper 10-bit portion of the match compare value. Combined with MATCH_L, defines when a timer match interrupt will occur.

計時器匹配值的高10位元部分遮罩

  • Register: MATCH_H
  • Bits: [9:0]
  • Access: Read/Write
  • Reset Value: 0x3FF
OSEVENT_CTRL_OSTIMER_INTRFLAG 

OSEVENT_CTRL Register - Interrupt Flag Bit.

Bit mask for the OSTIMER interrupt flag status bit. This bit indicates when a timer match event has occurred. Write 1 to clear the interrupt flag.

OSTIMER中斷標誌狀態位元遮罩

  • Register: OSEVENT_CTRL
  • Bit: [0]
  • Access: Read/Write (Write 1 to clear)
  • Reset Value: 0b0
Writing 1 clears the interrupt flag
Reading returns current interrupt status
OSEVENT_CTRL_OSTIMER_INTENA 

OSEVENT_CTRL Register - Interrupt Enable Bit.

Bit mask for enabling/disabling OSTIMER interrupts and wake-up requests. Controls whether the timer can generate interrupt signals to the processor.

OSTIMER中斷啟用控制位元遮罩

  • Register: OSEVENT_CTRL
  • Bit: [1]
  • Access: Read/Write
  • Reset Value: 0b0
傳回值
0b0Interrupts and wake-up requests are blocked/disabled
0b1Interrupts and wake-up requests are enabled
OSEVENT_CTRL_MATCH_WR_RDY 

OSEVENT_CTRL Register - Match Write Ready Flag.

Bit mask for the match register write ready status. Indicates when the MATCH registers are ready to accept new write operations.

匹配暫存器寫入就緒狀態遮罩

  • Register: OSEVENT_CTRL
  • Bit: [2]
  • Access: Read-Only
  • Reset Value: 0b1
傳回值
0b0MATCH registers are not ready for write (write operation in progress)
0b1MATCH registers are ready for new write operations
Check this bit before writing to MATCH_L/MATCH_H registers
OSEVENT_CTRL_DEBUG_EN 

OSEVENT_CTRL Register - Debug Enable Bit.

Bit mask for enabling/disabling debug mode operation. Controls whether the OSTIMER continues running during debug halt conditions.

除錯模式啟用控制位元遮罩

  • Register: OSEVENT_CTRL
  • Bit: [3]
  • Access: Read/Write
  • Reset Value: 0b0
傳回值
0b0OSTIMER is disabled/halted during debug sessions
0b1OSTIMER continues running during debug sessions
Useful for maintaining real-time behavior during debugging

◆ Shift

enum struct mcxa153::chip::ostimer::Shift : uint32
strong

OSTIMER (On-chip System Timer) Register Bit Shift Positions.

Enumeration defining bit shift positions for accessing specific bit fields within OSTIMER peripheral registers. These shift values are used in conjunction with bit masks to extract or set individual bit fields in the registers.

OSTIMER周邊暫存器位元位移位置列舉,用於存取暫存器中特定位元欄位。 這些位移值與位元遮罩配合使用,以提取或設定暫存器中的個別位元欄位。

  • Used with bitwise shift operations (<<, >>) for bit field manipulation
  • Combined with masks for register read/write operations
  • All values represent bit positions within 32-bit registers
  • Shift positions are zero-based (0 = LSB, 31 = MSB)
Use these values with corresponding masks from Mask.h
Example: (register_value >> shift_position) & field_mask
參閱
mcxa153::chip::ostimer::Mask for corresponding bit masks
v1.0.0
列舉值
EVTIMERL_EVTIMER_COUNT_VALUE 

EVTIMERL - EVTIMER_COUNT_VALUE.

EVTIMER Low - EVTimer Count Value

EVTIMERH_EVTIMER_COUNT_VALUE 

EVTIMERH - EVTIMER_COUNT_VALUE.

EVTIMER High - EVTimer Count Value

CAPTURE_L_CAPTURE_VALUE 

CAPTURE_L - CAPTURE_VALUE.

Local Capture Low for CPU - EVTimer Capture Value

CAPTURE_H_CAPTURE_VALUE 

CAPTURE_H - CAPTURE_VALUE.

Local Capture High for CPU - EVTimer Capture Value

MATCH_L_MATCH_VALUE 

MATCH_L - MATCH_VALUE.

Local Match Low for CPU - EVTimer Match Value

MATCH_H_MATCH_VALUE 

MATCH_H - MATCH_VALUE.

Local Match High for CPU - EVTimer Match Value

OSEVENT_CTRL_OSTIMER_INTRFLAG 

OSEVENT_CTRL - OSTIMER_INTRFLAG.

OSTIMER Control for CPU - Interrupt Flag

OSEVENT_CTRL_OSTIMER_INTENA 

OSEVENT_CTRL - OSTIMER_INTENA.

OSTIMER Control for CPU - Interrupt or Wake-Up Request

  • [0b0] Interrupts blocked
  • [0b1] Interrupts enabled
OSEVENT_CTRL_MATCH_WR_RDY 

OSEVENT_CTRL - MATCH_WR_RDY.

OSTIMER Control for CPU - EVTimer Match Write Ready

OSEVENT_CTRL_DEBUG_EN 

OSEVENT_CTRL - DEBUG_EN.

OSTIMER Control for CPU - Debug Enable

  • [0b0] Disables
  • [0b1] Enables

函式說明文件

◆ operator+() [1/2]

unsigned int mcxa153::chip::ostimer::operator+ ( Mask e)
constexpr

Operator Overload - Convert Mask enum to unsigned int.

Convert Mask enumeration value to unsigned integer 將Mask列舉值轉換為無號整數

參數
eMask enumeration value 列舉值
傳回值
constexpr unsigned int Unsigned integer value 無號整數值

◆ operator+() [2/2]

unsigned int mcxa153::chip::ostimer::operator+ ( Shift e)
constexpr

Operator Overload - Convert Shift enum to unsigned int.

Convert Shift enumeration value to unsigned integer 將Shift列舉值轉換為無號整數

參數
eShift enumeration value 列舉值
傳回值
constexpr unsigned int Unsigned integer value 無號整數值