MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
owm_regs.h
Go to the documentation of this file.
1
8/******************************************************************************
9 *
10 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
11 * Analog Devices, Inc.),
12 * Copyright (C) 2023-2024 Analog Devices, Inc.
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 *
26 ******************************************************************************/
27
28#ifndef LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_OWM_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_OWM_REGS_H_
30
31/* **** Includes **** */
32#include <stdint.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#if defined (__ICCARM__)
39 #pragma system_include
40#endif
41
42#if defined (__CC_ARM)
43 #pragma anon_unions
44#endif
46/*
47 If types are not defined elsewhere (CMSIS) define them here
48*/
49#ifndef __IO
50#define __IO volatile
51#endif
52#ifndef __I
53#define __I volatile const
54#endif
55#ifndef __O
56#define __O volatile
57#endif
58#ifndef __R
59#define __R volatile const
60#endif
62
63/* **** Definitions **** */
64
76typedef struct {
77 __IO uint32_t cfg;
78 __IO uint32_t clk_div_1us;
79 __IO uint32_t ctrl_stat;
80 __IO uint32_t data;
81 __IO uint32_t intfl;
82 __IO uint32_t inten;
84
85/* Register offsets for module OWM */
92#define MXC_R_OWM_CFG ((uint32_t)0x00000000UL)
93#define MXC_R_OWM_CLK_DIV_1US ((uint32_t)0x00000004UL)
94#define MXC_R_OWM_CTRL_STAT ((uint32_t)0x00000008UL)
95#define MXC_R_OWM_DATA ((uint32_t)0x0000000CUL)
96#define MXC_R_OWM_INTFL ((uint32_t)0x00000010UL)
97#define MXC_R_OWM_INTEN ((uint32_t)0x00000014UL)
106#define MXC_F_OWM_CFG_LONG_LINE_MODE_POS 0
107#define MXC_F_OWM_CFG_LONG_LINE_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_LONG_LINE_MODE_POS))
109#define MXC_F_OWM_CFG_FORCE_PRES_DET_POS 1
110#define MXC_F_OWM_CFG_FORCE_PRES_DET ((uint32_t)(0x1UL << MXC_F_OWM_CFG_FORCE_PRES_DET_POS))
112#define MXC_F_OWM_CFG_BIT_BANG_EN_POS 2
113#define MXC_F_OWM_CFG_BIT_BANG_EN ((uint32_t)(0x1UL << MXC_F_OWM_CFG_BIT_BANG_EN_POS))
115#define MXC_F_OWM_CFG_EXT_PULLUP_MODE_POS 3
116#define MXC_F_OWM_CFG_EXT_PULLUP_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_EXT_PULLUP_MODE_POS))
118#define MXC_F_OWM_CFG_EXT_PULLUP_ENABLE_POS 4
119#define MXC_F_OWM_CFG_EXT_PULLUP_ENABLE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_EXT_PULLUP_ENABLE_POS))
121#define MXC_F_OWM_CFG_SINGLE_BIT_MODE_POS 5
122#define MXC_F_OWM_CFG_SINGLE_BIT_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_SINGLE_BIT_MODE_POS))
124#define MXC_F_OWM_CFG_OVERDRIVE_POS 6
125#define MXC_F_OWM_CFG_OVERDRIVE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_OVERDRIVE_POS))
127#define MXC_F_OWM_CFG_INT_PULLUP_ENABLE_POS 7
128#define MXC_F_OWM_CFG_INT_PULLUP_ENABLE ((uint32_t)(0x1UL << MXC_F_OWM_CFG_INT_PULLUP_ENABLE_POS))
138#define MXC_F_OWM_CLK_DIV_1US_DIVISOR_POS 0
139#define MXC_F_OWM_CLK_DIV_1US_DIVISOR ((uint32_t)(0xFFUL << MXC_F_OWM_CLK_DIV_1US_DIVISOR_POS))
149#define MXC_F_OWM_CTRL_STAT_START_OW_RESET_POS 0
150#define MXC_F_OWM_CTRL_STAT_START_OW_RESET ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_START_OW_RESET_POS))
152#define MXC_F_OWM_CTRL_STAT_SRA_MODE_POS 1
153#define MXC_F_OWM_CTRL_STAT_SRA_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_SRA_MODE_POS))
155#define MXC_F_OWM_CTRL_STAT_BIT_BANG_OE_POS 2
156#define MXC_F_OWM_CTRL_STAT_BIT_BANG_OE ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_BIT_BANG_OE_POS))
158#define MXC_F_OWM_CTRL_STAT_OW_INPUT_POS 3
159#define MXC_F_OWM_CTRL_STAT_OW_INPUT ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_OW_INPUT_POS))
161#define MXC_F_OWM_CTRL_STAT_OD_SPEC_MODE_POS 4
162#define MXC_F_OWM_CTRL_STAT_OD_SPEC_MODE ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_OD_SPEC_MODE_POS))
164#define MXC_F_OWM_CTRL_STAT_PRESENCE_DETECT_POS 7
165#define MXC_F_OWM_CTRL_STAT_PRESENCE_DETECT ((uint32_t)(0x1UL << MXC_F_OWM_CTRL_STAT_PRESENCE_DETECT_POS))
175#define MXC_F_OWM_DATA_TX_RX_POS 0
176#define MXC_F_OWM_DATA_TX_RX ((uint32_t)(0xFFUL << MXC_F_OWM_DATA_TX_RX_POS))
186#define MXC_F_OWM_INTFL_OW_RESET_DONE_POS 0
187#define MXC_F_OWM_INTFL_OW_RESET_DONE ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_OW_RESET_DONE_POS))
189#define MXC_F_OWM_INTFL_TX_DATA_EMPTY_POS 1
190#define MXC_F_OWM_INTFL_TX_DATA_EMPTY ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_TX_DATA_EMPTY_POS))
192#define MXC_F_OWM_INTFL_RX_DATA_READY_POS 2
193#define MXC_F_OWM_INTFL_RX_DATA_READY ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_RX_DATA_READY_POS))
195#define MXC_F_OWM_INTFL_LINE_SHORT_POS 3
196#define MXC_F_OWM_INTFL_LINE_SHORT ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_LINE_SHORT_POS))
198#define MXC_F_OWM_INTFL_LINE_LOW_POS 4
199#define MXC_F_OWM_INTFL_LINE_LOW ((uint32_t)(0x1UL << MXC_F_OWM_INTFL_LINE_LOW_POS))
209#define MXC_F_OWM_INTEN_OW_RESET_DONE_POS 0
210#define MXC_F_OWM_INTEN_OW_RESET_DONE ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_OW_RESET_DONE_POS))
212#define MXC_F_OWM_INTEN_TX_DATA_EMPTY_POS 1
213#define MXC_F_OWM_INTEN_TX_DATA_EMPTY ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_TX_DATA_EMPTY_POS))
215#define MXC_F_OWM_INTEN_RX_DATA_READY_POS 2
216#define MXC_F_OWM_INTEN_RX_DATA_READY ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_RX_DATA_READY_POS))
218#define MXC_F_OWM_INTEN_LINE_SHORT_POS 3
219#define MXC_F_OWM_INTEN_LINE_SHORT ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_LINE_SHORT_POS))
221#define MXC_F_OWM_INTEN_LINE_LOW_POS 4
222#define MXC_F_OWM_INTEN_LINE_LOW ((uint32_t)(0x1UL << MXC_F_OWM_INTEN_LINE_LOW_POS))
226#ifdef __cplusplus
227}
228#endif
229
230#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_OWM_REGS_H_
__IO uint32_t data
Definition: owm_regs.h:80
__IO uint32_t ctrl_stat
Definition: owm_regs.h:79
__IO uint32_t intfl
Definition: owm_regs.h:81
__IO uint32_t cfg
Definition: owm_regs.h:77
__IO uint32_t clk_div_1us
Definition: owm_regs.h:78
__IO uint32_t inten
Definition: owm_regs.h:82
Definition: owm_regs.h:76