mFrame
載入中...
搜尋中...
無符合項目
GateName.h
1
7#ifndef MCXA153_F69EDF9D_9F4F_4934_A0A7_1B6209076C7D
8#define MCXA153_F69EDF9D_9F4F_4934_A0A7_1B6209076C7D
9
10/* ***************************************************************************************
11 * Include
12 */
13#include "mframe.h"
14
15//----------------------------------------------------------------------------------------
16
17//----------------------------------------------------------------------------------------
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace mcxa153::chip::clock {
23 enum struct GateName : unsigned int;
24
25 const uint32 REG_PWM0SUBCTL = 250U;
26
32 inline uint32 getGateNameOffset(const GateName _this) {
33 return static_cast<uint32>(_this) >> 16;
34 }
35
41 inline uint32 getGateNameShift(const GateName _this) {
42 return static_cast<uint32>(_this) & 0x0000FFFFU;
43 }
44} // namespace mcxa153::chip::clock
45
46/* ***************************************************************************************
47 * Class/Interface/Struct/Enum
48 */
49
58enum struct mcxa153::chip::clock::GateName : unsigned int {
59 INPUTMUX0 = (0x00000U | (0U)),
60 INPUTMUX = (0x00000U | (0U)),
61 I3C0 = (0x00000U | (1U)),
62 CTIMER0 = (0x00000U | (2U)),
63 CTIMER1 = (0x00000U | (3U)),
64 CTIMER2 = (0x00000U | (4U)),
65 FREQME = (0x00000U | (5U)),
66 UTICK0 = (0x00000U | (6U)),
67 WWDT0 = (0x00000U | (7U)),
68 DMA = (0x00000U | (8U)),
69 AOI0 = (0x00000U | (9U)),
70 CRC = (0x00000U | (10U)),
71 CRC0 = (0x00000U | (10U)),
72 EIM = (0x00000U | (11U)),
73 ERM = (0x00000U | (12U)),
74 LPI2C0 = (0x00000U | (16U)),
75 LPSPI0 = (0x00000U | (17U)),
76 LPSPI1 = (0x00000U | (18U)),
77 LPUART0 = (0x00000U | (19U)),
78 LPUART1 = (0x00000U | (20U)),
79 LPUART2 = (0x00000U | (21U)),
80 USB0 = (0x00000U | (22U)),
81 QDC0 = (0x00000U | (23U)),
82 FLEXPWM0 = (0x00000U | (24U)),
83 OSTIMER0 = (0x00000U | (25U)),
84 ADC0 = (0x00000U | (26U)),
85 CMP0 = (0x00000U | (27U)),
86 CMP1 = (0x00000U | (28U)),
87 PORT0 = (0x00000U | (29U)),
88 PORT1 = (0x00000U | (30U)),
89 PORT2 = (0x00000U | (31U)),
90 PORT3 = ((0x10U << 16U) | (0U)),
91 ATX0 = ((0x10U << 16U) | (1U)),
92 MTR = ((0x10U << 16U) | (2U)),
93 TCU = ((0x10U << 16U) | (3U)),
94 EZRAMC_RAMA = ((0x10U << 16U) | (4U)),
95 GPIO0 = ((0x10U << 16U) | (5U)),
96 GPIO1 = ((0x10U << 16U) | (6U)),
97 GPIO2 = ((0x10U << 16U) | (7U)),
98 GPIO3 = ((0x10U << 16U) | (8U)),
99 ROMCP = ((0x10U << 16U) | (9U)),
100 PWMSM0 = ((REG_PWM0SUBCTL << 16U) | (0U)),
101 PWMSM1 = ((REG_PWM0SUBCTL << 16U) | (1U)),
102 PWMSM2 = ((REG_PWM0SUBCTL << 16U) | (2U)),
103 NOT_AVAIL = (0xFFFFFFFFU)
104};
105
106/* ***************************************************************************************
107 * End of file
108 */
109
110#endif /* MCXA153_F69EDF9D_9F4F_4934_A0A7_1B6209076C7D */
時鐘源附加識別碼枚舉
Definition AttachID.h:33
uint32 getGateNameOffset(const GateName _this)
獲取閘門名稱的偏移量
Definition GateName.h:32
GateName
時鐘門控命名列舉
Definition GateName.h:58
uint32 getGateNameShift(const GateName _this)
獲取閘門名稱的位移值
Definition GateName.h:41