MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
wut_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_WUT_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_WUT_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 cnt;
78 __IO uint32_t cmp;
79 __R uint32_t rsv_0x8;
80 __IO uint32_t intfl;
81 __IO uint32_t ctrl;
82 __IO uint32_t nolcmp;
83 __IO uint32_t preset;
84 __IO uint32_t reload;
85 __IO uint32_t snapshot;
87
88/* Register offsets for module WUT */
95#define MXC_R_WUT_CNT ((uint32_t)0x00000000UL)
96#define MXC_R_WUT_CMP ((uint32_t)0x00000004UL)
97#define MXC_R_WUT_INTFL ((uint32_t)0x0000000CUL)
98#define MXC_R_WUT_CTRL ((uint32_t)0x00000010UL)
99#define MXC_R_WUT_NOLCMP ((uint32_t)0x00000014UL)
100#define MXC_R_WUT_PRESET ((uint32_t)0x00000018UL)
101#define MXC_R_WUT_RELOAD ((uint32_t)0x0000001CUL)
102#define MXC_R_WUT_SNAPSHOT ((uint32_t)0x00000020UL)
111#define MXC_F_WUT_CNT_COUNT_POS 0
112#define MXC_F_WUT_CNT_COUNT ((uint32_t)(0xFFFFFFFFUL << MXC_F_WUT_CNT_COUNT_POS))
122#define MXC_F_WUT_CMP_COMPARE_POS 0
123#define MXC_F_WUT_CMP_COMPARE ((uint32_t)(0xFFFFFFFFUL << MXC_F_WUT_CMP_COMPARE_POS))
133#define MXC_F_WUT_INTFL_IRQ_CLR_POS 0
134#define MXC_F_WUT_INTFL_IRQ_CLR ((uint32_t)(0x1UL << MXC_F_WUT_INTFL_IRQ_CLR_POS))
144#define MXC_F_WUT_CTRL_TMODE_POS 0
145#define MXC_F_WUT_CTRL_TMODE ((uint32_t)(0x7UL << MXC_F_WUT_CTRL_TMODE_POS))
146#define MXC_V_WUT_CTRL_TMODE_ONESHOT ((uint32_t)0x0UL)
147#define MXC_S_WUT_CTRL_TMODE_ONESHOT (MXC_V_WUT_CTRL_TMODE_ONESHOT << MXC_F_WUT_CTRL_TMODE_POS)
148#define MXC_V_WUT_CTRL_TMODE_CONTINUOUS ((uint32_t)0x1UL)
149#define MXC_S_WUT_CTRL_TMODE_CONTINUOUS (MXC_V_WUT_CTRL_TMODE_CONTINUOUS << MXC_F_WUT_CTRL_TMODE_POS)
150#define MXC_V_WUT_CTRL_TMODE_COUNTER ((uint32_t)0x2UL)
151#define MXC_S_WUT_CTRL_TMODE_COUNTER (MXC_V_WUT_CTRL_TMODE_COUNTER << MXC_F_WUT_CTRL_TMODE_POS)
152#define MXC_V_WUT_CTRL_TMODE_PWM ((uint32_t)0x3UL)
153#define MXC_S_WUT_CTRL_TMODE_PWM (MXC_V_WUT_CTRL_TMODE_PWM << MXC_F_WUT_CTRL_TMODE_POS)
154#define MXC_V_WUT_CTRL_TMODE_CAPTURE ((uint32_t)0x4UL)
155#define MXC_S_WUT_CTRL_TMODE_CAPTURE (MXC_V_WUT_CTRL_TMODE_CAPTURE << MXC_F_WUT_CTRL_TMODE_POS)
156#define MXC_V_WUT_CTRL_TMODE_COMPARE ((uint32_t)0x5UL)
157#define MXC_S_WUT_CTRL_TMODE_COMPARE (MXC_V_WUT_CTRL_TMODE_COMPARE << MXC_F_WUT_CTRL_TMODE_POS)
158#define MXC_V_WUT_CTRL_TMODE_GATED ((uint32_t)0x6UL)
159#define MXC_S_WUT_CTRL_TMODE_GATED (MXC_V_WUT_CTRL_TMODE_GATED << MXC_F_WUT_CTRL_TMODE_POS)
160#define MXC_V_WUT_CTRL_TMODE_CAPTURECOMPARE ((uint32_t)0x7UL)
161#define MXC_S_WUT_CTRL_TMODE_CAPTURECOMPARE (MXC_V_WUT_CTRL_TMODE_CAPTURECOMPARE << MXC_F_WUT_CTRL_TMODE_POS)
163#define MXC_F_WUT_CTRL_PRES_POS 3
164#define MXC_F_WUT_CTRL_PRES ((uint32_t)(0x7UL << MXC_F_WUT_CTRL_PRES_POS))
165#define MXC_V_WUT_CTRL_PRES_DIV1 ((uint32_t)0x0UL)
166#define MXC_S_WUT_CTRL_PRES_DIV1 (MXC_V_WUT_CTRL_PRES_DIV1 << MXC_F_WUT_CTRL_PRES_POS)
167#define MXC_V_WUT_CTRL_PRES_DIV2 ((uint32_t)0x1UL)
168#define MXC_S_WUT_CTRL_PRES_DIV2 (MXC_V_WUT_CTRL_PRES_DIV2 << MXC_F_WUT_CTRL_PRES_POS)
169#define MXC_V_WUT_CTRL_PRES_DIV4 ((uint32_t)0x2UL)
170#define MXC_S_WUT_CTRL_PRES_DIV4 (MXC_V_WUT_CTRL_PRES_DIV4 << MXC_F_WUT_CTRL_PRES_POS)
171#define MXC_V_WUT_CTRL_PRES_DIV8 ((uint32_t)0x3UL)
172#define MXC_S_WUT_CTRL_PRES_DIV8 (MXC_V_WUT_CTRL_PRES_DIV8 << MXC_F_WUT_CTRL_PRES_POS)
173#define MXC_V_WUT_CTRL_PRES_DIV16 ((uint32_t)0x4UL)
174#define MXC_S_WUT_CTRL_PRES_DIV16 (MXC_V_WUT_CTRL_PRES_DIV16 << MXC_F_WUT_CTRL_PRES_POS)
175#define MXC_V_WUT_CTRL_PRES_DIV32 ((uint32_t)0x5UL)
176#define MXC_S_WUT_CTRL_PRES_DIV32 (MXC_V_WUT_CTRL_PRES_DIV32 << MXC_F_WUT_CTRL_PRES_POS)
177#define MXC_V_WUT_CTRL_PRES_DIV64 ((uint32_t)0x6UL)
178#define MXC_S_WUT_CTRL_PRES_DIV64 (MXC_V_WUT_CTRL_PRES_DIV64 << MXC_F_WUT_CTRL_PRES_POS)
179#define MXC_V_WUT_CTRL_PRES_DIV128 ((uint32_t)0x7UL)
180#define MXC_S_WUT_CTRL_PRES_DIV128 (MXC_V_WUT_CTRL_PRES_DIV128 << MXC_F_WUT_CTRL_PRES_POS)
181#define MXC_V_WUT_CTRL_PRES_DIV256 ((uint32_t)0x0UL)
182#define MXC_S_WUT_CTRL_PRES_DIV256 (MXC_V_WUT_CTRL_PRES_DIV256 << MXC_F_WUT_CTRL_PRES_POS)
183#define MXC_V_WUT_CTRL_PRES_DIV512 ((uint32_t)0x2UL)
184#define MXC_S_WUT_CTRL_PRES_DIV512 (MXC_V_WUT_CTRL_PRES_DIV512 << MXC_F_WUT_CTRL_PRES_POS)
185#define MXC_V_WUT_CTRL_PRES_DIV1024 ((uint32_t)0x3UL)
186#define MXC_S_WUT_CTRL_PRES_DIV1024 (MXC_V_WUT_CTRL_PRES_DIV1024 << MXC_F_WUT_CTRL_PRES_POS)
187#define MXC_V_WUT_CTRL_PRES_DIV2048 ((uint32_t)0x4UL)
188#define MXC_S_WUT_CTRL_PRES_DIV2048 (MXC_V_WUT_CTRL_PRES_DIV2048 << MXC_F_WUT_CTRL_PRES_POS)
189#define MXC_V_WUT_CTRL_PRES_DIV4096 ((uint32_t)0x5UL)
190#define MXC_S_WUT_CTRL_PRES_DIV4096 (MXC_V_WUT_CTRL_PRES_DIV4096 << MXC_F_WUT_CTRL_PRES_POS)
192#define MXC_F_WUT_CTRL_TPOL_POS 6
193#define MXC_F_WUT_CTRL_TPOL ((uint32_t)(0x1UL << MXC_F_WUT_CTRL_TPOL_POS))
195#define MXC_F_WUT_CTRL_TEN_POS 7
196#define MXC_F_WUT_CTRL_TEN ((uint32_t)(0x1UL << MXC_F_WUT_CTRL_TEN_POS))
198#define MXC_F_WUT_CTRL_PRES3_POS 8
199#define MXC_F_WUT_CTRL_PRES3 ((uint32_t)(0x1UL << MXC_F_WUT_CTRL_PRES3_POS))
209#define MXC_F_WUT_NOLCMP_NOLLCMP_POS 0
210#define MXC_F_WUT_NOLCMP_NOLLCMP ((uint32_t)(0xFFUL << MXC_F_WUT_NOLCMP_NOLLCMP_POS))
212#define MXC_F_WUT_NOLCMP_NOLHCMP_POS 8
213#define MXC_F_WUT_NOLCMP_NOLHCMP ((uint32_t)(0xFFUL << MXC_F_WUT_NOLCMP_NOLHCMP_POS))
223#define MXC_F_WUT_PRESET_PRESET_POS 0
224#define MXC_F_WUT_PRESET_PRESET ((uint32_t)(0xFFFFFFFFUL << MXC_F_WUT_PRESET_PRESET_POS))
234#define MXC_F_WUT_RELOAD_RELOAD_POS 0
235#define MXC_F_WUT_RELOAD_RELOAD ((uint32_t)(0xFFFFFFFFUL << MXC_F_WUT_RELOAD_RELOAD_POS))
245#define MXC_F_WUT_SNAPSHOT_SNAPSHOT_POS 0
246#define MXC_F_WUT_SNAPSHOT_SNAPSHOT ((uint32_t)(0xFFFFFFFFUL << MXC_F_WUT_SNAPSHOT_SNAPSHOT_POS))
250#ifdef __cplusplus
251}
252#endif
253
254#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_WUT_REGS_H_
__IO uint32_t intfl
Definition: wut_regs.h:80
__IO uint32_t ctrl
Definition: wut_regs.h:81
__IO uint32_t preset
Definition: wut_regs.h:83
__IO uint32_t nolcmp
Definition: wut_regs.h:82
__IO uint32_t cnt
Definition: wut_regs.h:77
__IO uint32_t cmp
Definition: wut_regs.h:78
__IO uint32_t reload
Definition: wut_regs.h:84
__IO uint32_t snapshot
Definition: wut_regs.h:85
Definition: wut_regs.h:76