EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
efm32hg_mtb.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t POSITION;
44  __IOM uint32_t MASTER;
45  __IOM uint32_t FLOW;
46  __IOM uint32_t BASE;
47 } MTB_TypeDef;
49 /**************************************************************************/
54 /* Bit fields for MTB POSITION */
55 #define _MTB_POSITION_RESETVALUE 0x00000000UL
56 #define _MTB_POSITION_MASK 0xFFFFFFFCUL
57 #define MTB_POSITION_WRAP (0x1UL << 2)
58 #define _MTB_POSITION_WRAP_SHIFT 2
59 #define _MTB_POSITION_WRAP_MASK 0x4UL
60 #define _MTB_POSITION_WRAP_DEFAULT 0x00000000UL
61 #define MTB_POSITION_WRAP_DEFAULT (_MTB_POSITION_WRAP_DEFAULT << 2)
62 #define _MTB_POSITION_POINTER_SHIFT 3
63 #define _MTB_POSITION_POINTER_MASK 0xFFFFFFF8UL
64 #define _MTB_POSITION_POINTER_DEFAULT 0x00000000UL
65 #define MTB_POSITION_POINTER_DEFAULT (_MTB_POSITION_POINTER_DEFAULT << 3)
67 /* Bit fields for MTB MASTER */
68 #define _MTB_MASTER_RESETVALUE 0x00000000UL
69 #define _MTB_MASTER_MASK 0x8000027FUL
70 #define _MTB_MASTER_MASK_SHIFT 0
71 #define _MTB_MASTER_MASK_MASK 0x1FUL
72 #define _MTB_MASTER_MASK_DEFAULT 0x00000000UL
73 #define MTB_MASTER_MASK_DEFAULT (_MTB_MASTER_MASK_DEFAULT << 0)
74 #define MTB_MASTER_TSTARTEN (0x1UL << 5)
75 #define _MTB_MASTER_TSTARTEN_SHIFT 5
76 #define _MTB_MASTER_TSTARTEN_MASK 0x20UL
77 #define _MTB_MASTER_TSTARTEN_DEFAULT 0x00000000UL
78 #define MTB_MASTER_TSTARTEN_DEFAULT (_MTB_MASTER_TSTARTEN_DEFAULT << 5)
79 #define MTB_MASTER_TSTOPEN (0x1UL << 6)
80 #define _MTB_MASTER_TSTOPEN_SHIFT 6
81 #define _MTB_MASTER_TSTOPEN_MASK 0x40UL
82 #define _MTB_MASTER_TSTOPEN_DEFAULT 0x00000000UL
83 #define MTB_MASTER_TSTOPEN_DEFAULT (_MTB_MASTER_TSTOPEN_DEFAULT << 6)
84 #define MTB_MASTER_HALTREQ (0x1UL << 9)
85 #define _MTB_MASTER_HALTREQ_SHIFT 9
86 #define _MTB_MASTER_HALTREQ_MASK 0x200UL
87 #define _MTB_MASTER_HALTREQ_DEFAULT 0x00000000UL
88 #define MTB_MASTER_HALTREQ_DEFAULT (_MTB_MASTER_HALTREQ_DEFAULT << 9)
89 #define MTB_MASTER_EN (0x1UL << 31)
90 #define _MTB_MASTER_EN_SHIFT 31
91 #define _MTB_MASTER_EN_MASK 0x80000000UL
92 #define _MTB_MASTER_EN_DEFAULT 0x00000000UL
93 #define MTB_MASTER_EN_DEFAULT (_MTB_MASTER_EN_DEFAULT << 31)
95 /* Bit fields for MTB FLOW */
96 #define _MTB_FLOW_RESETVALUE 0x00000000UL
97 #define _MTB_FLOW_MASK 0xFFFFFFFBUL
98 #define MTB_FLOW_AUTOSTOP (0x1UL << 0)
99 #define _MTB_FLOW_AUTOSTOP_SHIFT 0
100 #define _MTB_FLOW_AUTOSTOP_MASK 0x1UL
101 #define _MTB_FLOW_AUTOSTOP_DEFAULT 0x00000000UL
102 #define MTB_FLOW_AUTOSTOP_DEFAULT (_MTB_FLOW_AUTOSTOP_DEFAULT << 0)
103 #define MTB_FLOW_AUTOHALT (0x1UL << 1)
104 #define _MTB_FLOW_AUTOHALT_SHIFT 1
105 #define _MTB_FLOW_AUTOHALT_MASK 0x2UL
106 #define _MTB_FLOW_AUTOHALT_DEFAULT 0x00000000UL
107 #define MTB_FLOW_AUTOHALT_DEFAULT (_MTB_FLOW_AUTOHALT_DEFAULT << 1)
108 #define _MTB_FLOW_WATERMARK_SHIFT 3
109 #define _MTB_FLOW_WATERMARK_MASK 0xFFFFFFF8UL
110 #define _MTB_FLOW_WATERMARK_DEFAULT 0x00000000UL
111 #define MTB_FLOW_WATERMARK_DEFAULT (_MTB_FLOW_WATERMARK_DEFAULT << 3)
113 /* Bit fields for MTB BASE */
114 #define _MTB_BASE_RESETVALUE 0x20000000UL
115 #define _MTB_BASE_MASK 0xFFFFFFFFUL
116 #define _MTB_BASE_BASE_SHIFT 0
117 #define _MTB_BASE_BASE_MASK 0xFFFFFFFFUL
118 #define _MTB_BASE_BASE_DEFAULT 0x20000000UL
119 #define MTB_BASE_BASE_DEFAULT (_MTB_BASE_BASE_DEFAULT << 0)
__IOM uint32_t MASTER
Definition: efm32hg_mtb.h:44
__IOM uint32_t FLOW
Definition: efm32hg_mtb.h:45
__IOM uint32_t BASE
Definition: efm32hg_mtb.h:46
__IOM uint32_t POSITION
Definition: efm32hg_mtb.h:43