v2.0.0-develop
pads_bank0.h
1// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8#ifndef _HARDWARE_STRUCTS_PADS_BANK0_H
9#define _HARDWARE_STRUCTS_PADS_BANK0_H
10
11#include "hardware/address_mapped.h"
12#include "hardware/regs/pads_bank0.h"
13
14// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_pads_bank0
15//
16// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
17// _REG_(x) will link to the corresponding register in hardware/regs/pads_bank0.h.
18//
19// Bit-field descriptions are of the form:
20// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
21
22 typedef struct {
23 _REG_(PADS_BANK0_VOLTAGE_SELECT_OFFSET) // PADS_BANK0_VOLTAGE_SELECT
24 // Voltage select
25 // 0x00000001 [0] VOLTAGE_SELECT (0)
26 io_rw_32 voltage_select;
27
28 // (Description copied from array index 0 register PADS_BANK0_GPIO0 applies similarly to other array indexes)
29 _REG_(PADS_BANK0_GPIO0_OFFSET) // PADS_BANK0_GPIO0
30 // 0x00000100 [8] ISO (1) Pad isolation control
31 // 0x00000080 [7] OD (0) Output disable
32 // 0x00000040 [6] IE (0) Input enable
33 // 0x00000030 [5:4] DRIVE (0x1) Drive strength
34 // 0x00000008 [3] PUE (0) Pull up enable
35 // 0x00000004 [2] PDE (1) Pull down enable
36 // 0x00000002 [1] SCHMITT (1) Enable schmitt trigger
37 // 0x00000001 [0] SLEWFAST (0) Slew rate control
38 io_rw_32 io[48];
39
40} pads_bank0_hw_t;
41
42#define pads_bank0_hw ((pads_bank0_hw_t *)PADS_BANK0_BASE)
43static_assert(sizeof (pads_bank0_hw_t) == 0x00c4, "");
44
45#endif // _HARDWARE_STRUCTS_PADS_BANK0_H
46
address_mapped.h
pads_bank0_hw_t
Definition: pads_bank0.h:22