 |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
50 #if defined (__ICCARM__)
51 #pragma system_include
54 #if defined (__CC_ARM)
65 #define __I volatile const
71 #define __R volatile const
104 #define MXC_R_OWM_CFG ((uint32_t)0x00000000UL)
105 #define MXC_R_OWM_CLK_DIV_1US ((uint32_t)0x00000004UL)
106 #define MXC_R_OWM_CTRL_STAT ((uint32_t)0x00000008UL)
107 #define MXC_R_OWM_DATA ((uint32_t)0x0000000CUL)
108 #define MXC_R_OWM_INTFL ((uint32_t)0x00000010UL)
109 #define MXC_R_OWM_INTEN ((uint32_t)0x00000014UL)
118 #define MXC_F_OWM_CFG_LONG_LINE_MODE_POS 0
119 #define MXC_F_OWM_CFG_LONG_LINE_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_LONG_LINE_MODE_POS))
121 #define MXC_F_OWM_CFG_FORCE_PRES_DET_POS 1
122 #define MXC_F_OWM_CFG_FORCE_PRES_DET ((uint32_t)(0x1UL << MXC_F_OWM_CFG_FORCE_PRES_DET_POS))
124 #define MXC_F_OWM_CFG_BIT_BANG_EN_POS 2
125 #define MXC_F_OWM_CFG_BIT_BANG_EN ((uint32_t)(0x1UL << MXC_F_OWM_CFG_BIT_BANG_EN_POS))
127 #define MXC_F_OWM_CFG_EXT_PULLUP_MODE_POS 3
128 #define MXC_F_OWM_CFG_EXT_PULLUP_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_EXT_PULLUP_MODE_POS))
130 #define MXC_F_OWM_CFG_EXT_PULLUP_ENABLE_POS 4
131 #define MXC_F_OWM_CFG_EXT_PULLUP_ENABLE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_EXT_PULLUP_ENABLE_POS))
133 #define MXC_F_OWM_CFG_SINGLE_BIT_MODE_POS 5
134 #define MXC_F_OWM_CFG_SINGLE_BIT_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_SINGLE_BIT_MODE_POS))
136 #define MXC_F_OWM_CFG_OVERDRIVE_POS 6
137 #define MXC_F_OWM_CFG_OVERDRIVE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_OVERDRIVE_POS))
139 #define MXC_F_OWM_CFG_INT_PULLUP_ENABLE_POS 7
140 #define MXC_F_OWM_CFG_INT_PULLUP_ENABLE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_INT_PULLUP_ENABLE_POS))
150 #define MXC_F_OWM_CLK_DIV_1US_DIVISOR_POS 0
151 #define MXC_F_OWM_CLK_DIV_1US_DIVISOR ((uint32_t)(0xFFUL << MXC_F_OWM_CLK_DIV_1US_DIVISOR_POS))
161 #define MXC_F_OWM_CTRL_STAT_START_OW_RESET_POS 0
162 #define MXC_F_OWM_CTRL_STAT_START_OW_RESET ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_START_OW_RESET_POS))
164 #define MXC_F_OWM_CTRL_STAT_SRA_MODE_POS 1
165 #define MXC_F_OWM_CTRL_STAT_SRA_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_SRA_MODE_POS))
167 #define MXC_F_OWM_CTRL_STAT_BIT_BANG_OE_POS 2
168 #define MXC_F_OWM_CTRL_STAT_BIT_BANG_OE ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_BIT_BANG_OE_POS))
170 #define MXC_F_OWM_CTRL_STAT_OW_INPUT_POS 3
171 #define MXC_F_OWM_CTRL_STAT_OW_INPUT ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_OW_INPUT_POS))
173 #define MXC_F_OWM_CTRL_STAT_OD_SPEC_MODE_POS 4
174 #define MXC_F_OWM_CTRL_STAT_OD_SPEC_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_OD_SPEC_MODE_POS))
176 #define MXC_F_OWM_CTRL_STAT_PRESENCE_DETECT_POS 5
177 #define MXC_F_OWM_CTRL_STAT_PRESENCE_DETECT ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_PRESENCE_DETECT_POS))
187 #define MXC_F_OWM_DATA_TX_RX_POS 0
188 #define MXC_F_OWM_DATA_TX_RX ((uint32_t)(0xFFUL << MXC_F_OWM_DATA_TX_RX_POS))
198 #define MXC_F_OWM_INTFL_OW_RESET_DONE_POS 0
199 #define MXC_F_OWM_INTFL_OW_RESET_DONE ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_OW_RESET_DONE_POS))
201 #define MXC_F_OWM_INTFL_TX_DATA_EMPTY_POS 1
202 #define MXC_F_OWM_INTFL_TX_DATA_EMPTY ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_TX_DATA_EMPTY_POS))
204 #define MXC_F_OWM_INTFL_RX_DATA_READY_POS 2
205 #define MXC_F_OWM_INTFL_RX_DATA_READY ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_RX_DATA_READY_POS))
207 #define MXC_F_OWM_INTFL_LINE_SHORT_POS 3
208 #define MXC_F_OWM_INTFL_LINE_SHORT ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_LINE_SHORT_POS))
210 #define MXC_F_OWM_INTFL_LINE_LOW_POS 4
211 #define MXC_F_OWM_INTFL_LINE_LOW ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_LINE_LOW_POS))
221 #define MXC_F_OWM_INTEN_OW_RESET_DONE_POS 0
222 #define MXC_F_OWM_INTEN_OW_RESET_DONE ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_OW_RESET_DONE_POS))
224 #define MXC_F_OWM_INTEN_TX_DATA_EMPTY_POS 1
225 #define MXC_F_OWM_INTEN_TX_DATA_EMPTY ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_TX_DATA_EMPTY_POS))
227 #define MXC_F_OWM_INTEN_RX_DATA_READY_POS 2
228 #define MXC_F_OWM_INTEN_RX_DATA_READY ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_RX_DATA_READY_POS))
230 #define MXC_F_OWM_INTEN_LINE_SHORT_POS 3
231 #define MXC_F_OWM_INTEN_LINE_SHORT ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_LINE_SHORT_POS))
233 #define MXC_F_OWM_INTEN_LINE_LOW_POS 4
234 #define MXC_F_OWM_INTEN_LINE_LOW ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_LINE_LOW_POS))
__IO uint32_t data
Definition: owm_regs.h:92
__IO uint32_t ctrl_stat
Definition: owm_regs.h:91
__IO uint32_t clk_div_1us
Definition: owm_regs.h:90
__IO uint32_t inten
Definition: owm_regs.h:94
__IO uint32_t intfl
Definition: owm_regs.h:93
Definition: owm_regs.h:88
__IO uint32_t cfg
Definition: owm_regs.h:89