MAX32650 Peripheral Driver API
Peripheral Driver API for the MAX32650
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
hpb_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_MAX32650_INCLUDE_HPB_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32650_INCLUDE_HPB_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 status;
78 __IO uint32_t inten;
79 __IO uint32_t intfl;
80 __R uint32_t rsv_0xc;
81 __IO uint32_t mbr[2];
82 __R uint32_t rsv_0x18_0x1f[2];
83 __IO uint32_t mcr[2];
84 __R uint32_t rsv_0x28_0x2f[2];
85 __IO uint32_t mtr[2];
87
88/* Register offsets for module HPB */
95#define MXC_R_HPB_STATUS ((uint32_t)0x00000000UL)
96#define MXC_R_HPB_INTEN ((uint32_t)0x00000004UL)
97#define MXC_R_HPB_INTFL ((uint32_t)0x00000008UL)
98#define MXC_R_HPB_MBR ((uint32_t)0x00000010UL)
99#define MXC_R_HPB_MCR ((uint32_t)0x00000020UL)
100#define MXC_R_HPB_MTR ((uint32_t)0x00000030UL)
109#define MXC_F_HPB_STATUS_RACT_POS 0
110#define MXC_F_HPB_STATUS_RACT ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_RACT_POS))
111#define MXC_V_HPB_STATUS_RACT_NOREAD ((uint32_t)0x0UL)
112#define MXC_S_HPB_STATUS_RACT_NOREAD (MXC_V_HPB_STATUS_RACT_NOREAD << MXC_F_HPB_STATUS_RACT_POS)
113#define MXC_V_HPB_STATUS_RACT_READ ((uint32_t)0x1UL)
114#define MXC_S_HPB_STATUS_RACT_READ (MXC_V_HPB_STATUS_RACT_READ << MXC_F_HPB_STATUS_RACT_POS)
116#define MXC_F_HPB_STATUS_RDECERR_POS 8
117#define MXC_F_HPB_STATUS_RDECERR ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_RDECERR_POS))
118#define MXC_V_HPB_STATUS_RDECERR_NOERR ((uint32_t)0x0UL)
119#define MXC_S_HPB_STATUS_RDECERR_NOERR (MXC_V_HPB_STATUS_RDECERR_NOERR << MXC_F_HPB_STATUS_RDECERR_POS)
120#define MXC_V_HPB_STATUS_RDECERR_ERR ((uint32_t)0x1UL)
121#define MXC_S_HPB_STATUS_RDECERR_ERR (MXC_V_HPB_STATUS_RDECERR_ERR << MXC_F_HPB_STATUS_RDECERR_POS)
123#define MXC_F_HPB_STATUS_RRSTOERR_POS 10
124#define MXC_F_HPB_STATUS_RRSTOERR ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_RRSTOERR_POS))
125#define MXC_V_HPB_STATUS_RRSTOERR_NOERR ((uint32_t)0x0UL)
126#define MXC_S_HPB_STATUS_RRSTOERR_NOERR (MXC_V_HPB_STATUS_RRSTOERR_NOERR << MXC_F_HPB_STATUS_RRSTOERR_POS)
127#define MXC_V_HPB_STATUS_RRSTOERR_ERR ((uint32_t)0x1UL)
128#define MXC_S_HPB_STATUS_RRSTOERR_ERR (MXC_V_HPB_STATUS_RRSTOERR_ERR << MXC_F_HPB_STATUS_RRSTOERR_POS)
130#define MXC_F_HPB_STATUS_RDSSTALL_POS 11
131#define MXC_F_HPB_STATUS_RDSSTALL ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_RDSSTALL_POS))
132#define MXC_V_HPB_STATUS_RDSSTALL_NORMALOP ((uint32_t)0x0UL)
133#define MXC_S_HPB_STATUS_RDSSTALL_NORMALOP (MXC_V_HPB_STATUS_RDSSTALL_NORMALOP << MXC_F_HPB_STATUS_RDSSTALL_POS)
134#define MXC_V_HPB_STATUS_RDSSTALL_STALLED ((uint32_t)0x1UL)
135#define MXC_S_HPB_STATUS_RDSSTALL_STALLED (MXC_V_HPB_STATUS_RDSSTALL_STALLED << MXC_F_HPB_STATUS_RDSSTALL_POS)
137#define MXC_F_HPB_STATUS_WACT_POS 16
138#define MXC_F_HPB_STATUS_WACT ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_WACT_POS))
139#define MXC_V_HPB_STATUS_WACT_NOWRITE ((uint32_t)0x0UL)
140#define MXC_S_HPB_STATUS_WACT_NOWRITE (MXC_V_HPB_STATUS_WACT_NOWRITE << MXC_F_HPB_STATUS_WACT_POS)
141#define MXC_V_HPB_STATUS_WACT_WRITE ((uint32_t)0x1UL)
142#define MXC_S_HPB_STATUS_WACT_WRITE (MXC_V_HPB_STATUS_WACT_WRITE << MXC_F_HPB_STATUS_WACT_POS)
144#define MXC_F_HPB_STATUS_WDECERR_POS 24
145#define MXC_F_HPB_STATUS_WDECERR ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_WDECERR_POS))
146#define MXC_V_HPB_STATUS_WDECERR_NOERR ((uint32_t)0x0UL)
147#define MXC_S_HPB_STATUS_WDECERR_NOERR (MXC_V_HPB_STATUS_WDECERR_NOERR << MXC_F_HPB_STATUS_WDECERR_POS)
148#define MXC_V_HPB_STATUS_WDECERR_ERR ((uint32_t)0x1UL)
149#define MXC_S_HPB_STATUS_WDECERR_ERR (MXC_V_HPB_STATUS_WDECERR_ERR << MXC_F_HPB_STATUS_WDECERR_POS)
151#define MXC_F_HPB_STATUS_WRSTOERR_POS 26
152#define MXC_F_HPB_STATUS_WRSTOERR ((uint32_t)(0x1UL << MXC_F_HPB_STATUS_WRSTOERR_POS))
153#define MXC_V_HPB_STATUS_WRSTOERR_NOERR ((uint32_t)0x0UL)
154#define MXC_S_HPB_STATUS_WRSTOERR_NOERR (MXC_V_HPB_STATUS_WRSTOERR_NOERR << MXC_F_HPB_STATUS_WRSTOERR_POS)
155#define MXC_V_HPB_STATUS_WRSTOERR_ERR ((uint32_t)0x1UL)
156#define MXC_S_HPB_STATUS_WRSTOERR_ERR (MXC_V_HPB_STATUS_WRSTOERR_ERR << MXC_F_HPB_STATUS_WRSTOERR_POS)
166#define MXC_F_HPB_INTEN_ERRINTE_POS 1
167#define MXC_F_HPB_INTEN_ERRINTE ((uint32_t)(0x1UL << MXC_F_HPB_INTEN_ERRINTE_POS))
168#define MXC_V_HPB_INTEN_ERRINTE_DIS ((uint32_t)0x0UL)
169#define MXC_S_HPB_INTEN_ERRINTE_DIS (MXC_V_HPB_INTEN_ERRINTE_DIS << MXC_F_HPB_INTEN_ERRINTE_POS)
170#define MXC_V_HPB_INTEN_ERRINTE_EN ((uint32_t)0x1UL)
171#define MXC_S_HPB_INTEN_ERRINTE_EN (MXC_V_HPB_INTEN_ERRINTE_EN << MXC_F_HPB_INTEN_ERRINTE_POS)
181#define MXC_F_HPB_INTFL_ERRINT_POS 1
182#define MXC_F_HPB_INTFL_ERRINT ((uint32_t)(0x1UL << MXC_F_HPB_INTFL_ERRINT_POS))
183#define MXC_V_HPB_INTFL_ERRINT_NOINT ((uint32_t)0x0UL)
184#define MXC_S_HPB_INTFL_ERRINT_NOINT (MXC_V_HPB_INTFL_ERRINT_NOINT << MXC_F_HPB_INTFL_ERRINT_POS)
185#define MXC_V_HPB_INTFL_ERRINT_PENDING ((uint32_t)0x1UL)
186#define MXC_S_HPB_INTFL_ERRINT_PENDING (MXC_V_HPB_INTFL_ERRINT_PENDING << MXC_F_HPB_INTFL_ERRINT_POS)
196#define MXC_F_HPB_MBR_ADDR_POS 24
197#define MXC_F_HPB_MBR_ADDR ((uint32_t)(0xFFUL << MXC_F_HPB_MBR_ADDR_POS))
207#define MXC_F_HPB_MCR_DEV_TYPE_POS 3
208#define MXC_F_HPB_MCR_DEV_TYPE ((uint32_t)(0x3UL << MXC_F_HPB_MCR_DEV_TYPE_POS))
209#define MXC_V_HPB_MCR_DEV_TYPE_HYPERFLASH ((uint32_t)0x0UL)
210#define MXC_S_HPB_MCR_DEV_TYPE_HYPERFLASH (MXC_V_HPB_MCR_DEV_TYPE_HYPERFLASH << MXC_F_HPB_MCR_DEV_TYPE_POS)
211#define MXC_V_HPB_MCR_DEV_TYPE_XCCELAPSRAM ((uint32_t)0x1UL)
212#define MXC_S_HPB_MCR_DEV_TYPE_XCCELAPSRAM (MXC_V_HPB_MCR_DEV_TYPE_XCCELAPSRAM << MXC_F_HPB_MCR_DEV_TYPE_POS)
213#define MXC_V_HPB_MCR_DEV_TYPE_HYPERRAM ((uint32_t)0x2UL)
214#define MXC_S_HPB_MCR_DEV_TYPE_HYPERRAM (MXC_V_HPB_MCR_DEV_TYPE_HYPERRAM << MXC_F_HPB_MCR_DEV_TYPE_POS)
216#define MXC_F_HPB_MCR_CRT_POS 5
217#define MXC_F_HPB_MCR_CRT ((uint32_t)(0x1UL << MXC_F_HPB_MCR_CRT_POS))
218#define MXC_V_HPB_MCR_CRT_MEM_SPACE ((uint32_t)0x0UL)
219#define MXC_S_HPB_MCR_CRT_MEM_SPACE (MXC_V_HPB_MCR_CRT_MEM_SPACE << MXC_F_HPB_MCR_CRT_POS)
220#define MXC_V_HPB_MCR_CRT_CONFIG_REG_SPACE ((uint32_t)0x1UL)
221#define MXC_S_HPB_MCR_CRT_CONFIG_REG_SPACE (MXC_V_HPB_MCR_CRT_CONFIG_REG_SPACE << MXC_F_HPB_MCR_CRT_POS)
223#define MXC_F_HPB_MCR_READ_LATENCY_POS 6
224#define MXC_F_HPB_MCR_READ_LATENCY ((uint32_t)(0x1UL << MXC_F_HPB_MCR_READ_LATENCY_POS))
225#define MXC_V_HPB_MCR_READ_LATENCY_VARIABLE ((uint32_t)0x0UL)
226#define MXC_S_HPB_MCR_READ_LATENCY_VARIABLE (MXC_V_HPB_MCR_READ_LATENCY_VARIABLE << MXC_F_HPB_MCR_READ_LATENCY_POS)
227#define MXC_V_HPB_MCR_READ_LATENCY_FIXED ((uint32_t)0x1UL)
228#define MXC_S_HPB_MCR_READ_LATENCY_FIXED (MXC_V_HPB_MCR_READ_LATENCY_FIXED << MXC_F_HPB_MCR_READ_LATENCY_POS)
230#define MXC_F_HPB_MCR_HSE_POS 7
231#define MXC_F_HPB_MCR_HSE ((uint32_t)(0x1UL << MXC_F_HPB_MCR_HSE_POS))
232#define MXC_V_HPB_MCR_HSE_DIS ((uint32_t)0x0UL)
233#define MXC_S_HPB_MCR_HSE_DIS (MXC_V_HPB_MCR_HSE_DIS << MXC_F_HPB_MCR_HSE_POS)
234#define MXC_V_HPB_MCR_HSE_EN ((uint32_t)0x1UL)
235#define MXC_S_HPB_MCR_HSE_EN (MXC_V_HPB_MCR_HSE_EN << MXC_F_HPB_MCR_HSE_POS)
237#define MXC_F_HPB_MCR_MAXLEN_POS 18
238#define MXC_F_HPB_MCR_MAXLEN ((uint32_t)(0x1FFUL << MXC_F_HPB_MCR_MAXLEN_POS))
240#define MXC_F_HPB_MCR_MAXLEN_EN_POS 31
241#define MXC_F_HPB_MCR_MAXLEN_EN ((uint32_t)(0x1UL << MXC_F_HPB_MCR_MAXLEN_EN_POS))
242#define MXC_V_HPB_MCR_MAXLEN_EN_DIS ((uint32_t)0x0UL)
243#define MXC_S_HPB_MCR_MAXLEN_EN_DIS (MXC_V_HPB_MCR_MAXLEN_EN_DIS << MXC_F_HPB_MCR_MAXLEN_EN_POS)
244#define MXC_V_HPB_MCR_MAXLEN_EN_EN ((uint32_t)0x1UL)
245#define MXC_S_HPB_MCR_MAXLEN_EN_EN (MXC_V_HPB_MCR_MAXLEN_EN_EN << MXC_F_HPB_MCR_MAXLEN_EN_POS)
255#define MXC_F_HPB_MTR_LATENCY_POS 0
256#define MXC_F_HPB_MTR_LATENCY ((uint32_t)(0xFUL << MXC_F_HPB_MTR_LATENCY_POS))
257#define MXC_V_HPB_MTR_LATENCY_5CLK ((uint32_t)0x0UL)
258#define MXC_S_HPB_MTR_LATENCY_5CLK (MXC_V_HPB_MTR_LATENCY_5CLK << MXC_F_HPB_MTR_LATENCY_POS)
259#define MXC_V_HPB_MTR_LATENCY_6CLK ((uint32_t)0x1UL)
260#define MXC_S_HPB_MTR_LATENCY_6CLK (MXC_V_HPB_MTR_LATENCY_6CLK << MXC_F_HPB_MTR_LATENCY_POS)
261#define MXC_V_HPB_MTR_LATENCY_3CLK ((uint32_t)0xEUL)
262#define MXC_S_HPB_MTR_LATENCY_3CLK (MXC_V_HPB_MTR_LATENCY_3CLK << MXC_F_HPB_MTR_LATENCY_POS)
263#define MXC_V_HPB_MTR_LATENCY_4CLK ((uint32_t)0xFUL)
264#define MXC_S_HPB_MTR_LATENCY_4CLK (MXC_V_HPB_MTR_LATENCY_4CLK << MXC_F_HPB_MTR_LATENCY_POS)
266#define MXC_F_HPB_MTR_WCSH_POS 8
267#define MXC_F_HPB_MTR_WCSH ((uint32_t)(0xFUL << MXC_F_HPB_MTR_WCSH_POS))
269#define MXC_F_HPB_MTR_RCSH_POS 12
270#define MXC_F_HPB_MTR_RCSH ((uint32_t)(0xFUL << MXC_F_HPB_MTR_RCSH_POS))
272#define MXC_F_HPB_MTR_WCSS_POS 16
273#define MXC_F_HPB_MTR_WCSS ((uint32_t)(0xFUL << MXC_F_HPB_MTR_WCSS_POS))
275#define MXC_F_HPB_MTR_RCSS_POS 20
276#define MXC_F_HPB_MTR_RCSS ((uint32_t)(0xFUL << MXC_F_HPB_MTR_RCSS_POS))
278#define MXC_F_HPB_MTR_WCSHI_POS 24
279#define MXC_F_HPB_MTR_WCSHI ((uint32_t)(0xFUL << MXC_F_HPB_MTR_WCSHI_POS))
281#define MXC_F_HPB_MTR_RCSHI_POS 28
282#define MXC_F_HPB_MTR_RCSHI ((uint32_t)(0xFUL << MXC_F_HPB_MTR_RCSHI_POS))
286#ifdef __cplusplus
287}
288#endif
289
290#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32650_INCLUDE_HPB_REGS_H_
__IO uint32_t intfl
Definition: hpb_regs.h:79
__IO uint32_t inten
Definition: hpb_regs.h:78
__IO uint32_t status
Definition: hpb_regs.h:77
Definition: hpb_regs.h:76