From 72c21bf86801957c97f11f3b6146d03538d4a76c Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Sun, 17 Oct 2021 20:43:27 +1100 Subject: [PATCH 1/7] Arrayify interrupt registers This commit arrayifies the following interrupt registers: PROC0_INTE[0-3], PROC0_INTF[0-3], PROC0_INTS[0-3], PROC1_INTE[0-3], PROC1_INTF[0-3], PROC1_INTS[0-3], INTR[0-3] There are still a few more that are are not yet covered. At the least, the DORMANT_* ones. The interrupt signals for the RP2040 are spread over several registers. There are 4 types of interrupt: Edge-high, Edge-low, Level-High, Level-Low and these are sequential bits in the register, presumably so you can read/write all 4 for a single register in one pass. This does make it somewhat painful for use to deal with. To make matters worse, there are only 30 gpio on RP2040, which means that the last register has more fields than the rest. In order to get svdtools array to be happy, we have to add fields for the non-existant GPIO to the last register. Another option would be to erase the fields entirely, and leave a 32bit int in it's place. Maybe that's a better option. --- svd/rp2040.yaml | 252 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) diff --git a/svd/rp2040.yaml b/svd/rp2040.yaml index b9b76d372..310ac3fc2 100644 --- a/svd/rp2040.yaml +++ b/svd/rp2040.yaml @@ -181,6 +181,258 @@ PWM: name: "TOP" IO_BANK0: + # Can't array registers unless they have the same number of fields, so add "pseudo" GPIO here + INTR3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + PROC0_INTE3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + PROC0_INTF3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + PROC0_INTS3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-only + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-only + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-only + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-only + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-only + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-only + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-only + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-only + + PROC1_INTE3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + PROC1_INTF3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + PROC1_INTS3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-only + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-only + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-only + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-only + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-only + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-only + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-only + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-only + + + _array: + "INTR*": {} + "PROC0_INTE*": {} + "PROC0_INTF*": {} + "PROC0_INTS*": {} + "PROC1_INTE*": {} + "PROC1_INTF*": {} + "PROC1_INTS*": {} + + _cluster: "GPIO%s": "GPIO*_STATUS": {} From f03aec4113fb7a878956a1ee5cbd31dc397fb54b Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Sun, 17 Oct 2021 20:59:01 +1100 Subject: [PATCH 2/7] Add patched SVD --- svd/rp2040.svd.patched | 3844 +++------------------------------------- 1 file changed, 276 insertions(+), 3568 deletions(-) diff --git a/svd/rp2040.svd.patched b/svd/rp2040.svd.patched index 2d7a9a757..f1bb06b58 100644 --- a/svd/rp2040.svd.patched +++ b/svd/rp2040.svd.patched @@ -4307,7 +4307,7 @@ - INTR0 + 40x40,1,2,3INTR%s Raw Interrupts 0x00f0 0x00000000 @@ -4491,517 +4491,513 @@ - INTR1 - Raw Interrupts - 0x00f4 + 40x40,1,2,3PROC0_INTE%s + Interrupt Enable for proc%s + 0x0100 0x00000000 - GPIO15_EDGE_HIGH + GPIO7_EDGE_HIGH [31:31] read-write - oneToClear - GPIO15_EDGE_LOW + GPIO7_EDGE_LOW [30:30] read-write - oneToClear - GPIO15_LEVEL_HIGH + GPIO7_LEVEL_HIGH [29:29] - read-only + read-write - GPIO15_LEVEL_LOW + GPIO7_LEVEL_LOW [28:28] - read-only + read-write - GPIO14_EDGE_HIGH + GPIO6_EDGE_HIGH [27:27] read-write - oneToClear - GPIO14_EDGE_LOW + GPIO6_EDGE_LOW [26:26] read-write - oneToClear - GPIO14_LEVEL_HIGH + GPIO6_LEVEL_HIGH [25:25] - read-only + read-write - GPIO14_LEVEL_LOW + GPIO6_LEVEL_LOW [24:24] - read-only + read-write - GPIO13_EDGE_HIGH + GPIO5_EDGE_HIGH [23:23] read-write - oneToClear - GPIO13_EDGE_LOW + GPIO5_EDGE_LOW [22:22] read-write - oneToClear - GPIO13_LEVEL_HIGH + GPIO5_LEVEL_HIGH [21:21] - read-only + read-write - GPIO13_LEVEL_LOW + GPIO5_LEVEL_LOW [20:20] - read-only + read-write - GPIO12_EDGE_HIGH + GPIO4_EDGE_HIGH [19:19] read-write - oneToClear - GPIO12_EDGE_LOW + GPIO4_EDGE_LOW [18:18] read-write - oneToClear - GPIO12_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] - read-only + read-write - GPIO12_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] - read-only + read-write - GPIO11_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] read-write - oneToClear - GPIO11_EDGE_LOW + GPIO3_EDGE_LOW [14:14] read-write - oneToClear - GPIO11_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] - read-only + read-write - GPIO11_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] - read-only + read-write - GPIO10_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] read-write - oneToClear - GPIO10_EDGE_LOW + GPIO2_EDGE_LOW [10:10] read-write - oneToClear - GPIO10_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] - read-only + read-write - GPIO10_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] - read-only + read-write - GPIO9_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] read-write - oneToClear - GPIO9_EDGE_LOW + GPIO1_EDGE_LOW [6:6] read-write - oneToClear - GPIO9_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] - read-only + read-write - GPIO9_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] - read-only + read-write - GPIO8_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] read-write - oneToClear - GPIO8_EDGE_LOW + GPIO0_EDGE_LOW [2:2] read-write - oneToClear - GPIO8_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] - read-only + read-write - GPIO8_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] - read-only + read-write - INTR2 - Raw Interrupts - 0x00f8 + 40x40,1,2,3PROC0_INTF%s + Interrupt Force for proc%s + 0x0110 0x00000000 - GPIO23_EDGE_HIGH + GPIO7_EDGE_HIGH [31:31] read-write - oneToClear - GPIO23_EDGE_LOW + GPIO7_EDGE_LOW [30:30] read-write - oneToClear - GPIO23_LEVEL_HIGH + GPIO7_LEVEL_HIGH [29:29] - read-only + read-write - GPIO23_LEVEL_LOW + GPIO7_LEVEL_LOW [28:28] - read-only + read-write - GPIO22_EDGE_HIGH + GPIO6_EDGE_HIGH [27:27] read-write - oneToClear - GPIO22_EDGE_LOW + GPIO6_EDGE_LOW [26:26] read-write - oneToClear - GPIO22_LEVEL_HIGH + GPIO6_LEVEL_HIGH [25:25] - read-only + read-write - GPIO22_LEVEL_LOW + GPIO6_LEVEL_LOW [24:24] - read-only + read-write - GPIO21_EDGE_HIGH + GPIO5_EDGE_HIGH [23:23] read-write - oneToClear - GPIO21_EDGE_LOW + GPIO5_EDGE_LOW [22:22] read-write - oneToClear - GPIO21_LEVEL_HIGH + GPIO5_LEVEL_HIGH [21:21] - read-only + read-write - GPIO21_LEVEL_LOW + GPIO5_LEVEL_LOW [20:20] - read-only + read-write - GPIO20_EDGE_HIGH + GPIO4_EDGE_HIGH [19:19] read-write - oneToClear - GPIO20_EDGE_LOW + GPIO4_EDGE_LOW [18:18] read-write - oneToClear - GPIO20_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] - read-only + read-write - GPIO20_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] - read-only + read-write - GPIO19_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] read-write - oneToClear - GPIO19_EDGE_LOW + GPIO3_EDGE_LOW [14:14] read-write - oneToClear - GPIO19_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] - read-only + read-write - GPIO19_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] - read-only + read-write - GPIO18_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] read-write - oneToClear - GPIO18_EDGE_LOW + GPIO2_EDGE_LOW [10:10] read-write - oneToClear - GPIO18_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] - read-only + read-write - GPIO18_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] - read-only + read-write - GPIO17_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] read-write - oneToClear - GPIO17_EDGE_LOW + GPIO1_EDGE_LOW [6:6] read-write - oneToClear - GPIO17_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] - read-only + read-write - GPIO17_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] - read-only + read-write - GPIO16_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] read-write - oneToClear - GPIO16_EDGE_LOW + GPIO0_EDGE_LOW [2:2] read-write - oneToClear - GPIO16_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] - read-only + read-write - GPIO16_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] - read-only + read-write - INTR3 - Raw Interrupts - 0x00fc + 40x40,1,2,3PROC0_INTS%s + Interrupt status after masking & forcing for proc%s + 0x0120 0x00000000 - GPIO29_EDGE_HIGH - [23:23] - read-write - oneToClear + GPIO7_EDGE_HIGH + [31:31] + read-only - GPIO29_EDGE_LOW - [22:22] - read-write - oneToClear + GPIO7_EDGE_LOW + [30:30] + read-only - GPIO29_LEVEL_HIGH - [21:21] + GPIO7_LEVEL_HIGH + [29:29] read-only - GPIO29_LEVEL_LOW - [20:20] + GPIO7_LEVEL_LOW + [28:28] read-only - GPIO28_EDGE_HIGH + GPIO6_EDGE_HIGH + [27:27] + read-only + + + GPIO6_EDGE_LOW + [26:26] + read-only + + + GPIO6_LEVEL_HIGH + [25:25] + read-only + + + GPIO6_LEVEL_LOW + [24:24] + read-only + + + GPIO5_EDGE_HIGH + [23:23] + read-only + + + GPIO5_EDGE_LOW + [22:22] + read-only + + + GPIO5_LEVEL_HIGH + [21:21] + read-only + + + GPIO5_LEVEL_LOW + [20:20] + read-only + + + GPIO4_EDGE_HIGH [19:19] - read-write - oneToClear + read-only - GPIO28_EDGE_LOW + GPIO4_EDGE_LOW [18:18] - read-write - oneToClear + read-only - GPIO28_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] read-only - GPIO28_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] read-only - GPIO27_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] - read-write - oneToClear + read-only - GPIO27_EDGE_LOW + GPIO3_EDGE_LOW [14:14] - read-write - oneToClear + read-only - GPIO27_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] read-only - GPIO27_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] read-only - GPIO26_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] - read-write - oneToClear + read-only - GPIO26_EDGE_LOW + GPIO2_EDGE_LOW [10:10] - read-write - oneToClear + read-only - GPIO26_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] read-only - GPIO26_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] read-only - GPIO25_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] - read-write - oneToClear + read-only - GPIO25_EDGE_LOW + GPIO1_EDGE_LOW [6:6] - read-write - oneToClear + read-only - GPIO25_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] read-only - GPIO25_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] read-only - GPIO24_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] - read-write - oneToClear + read-only - GPIO24_EDGE_LOW + GPIO0_EDGE_LOW [2:2] - read-write - oneToClear + read-only - GPIO24_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] read-only - GPIO24_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] read-only - PROC0_INTE0 - Interrupt Enable for proc0 - 0x0100 + 40x40,1,2,3PROC1_INTE%s + Interrupt Enable for proc1 + 0x0130 0x00000000 @@ -5167,3624 +5163,336 @@ - PROC0_INTE1 - Interrupt Enable for proc0 - 0x0104 + 40x40,1,2,3PROC1_INTF%s + Interrupt Force for proc1 + 0x0140 0x00000000 - GPIO15_EDGE_HIGH + GPIO7_EDGE_HIGH [31:31] read-write - GPIO15_EDGE_LOW + GPIO7_EDGE_LOW [30:30] read-write - GPIO15_LEVEL_HIGH + GPIO7_LEVEL_HIGH [29:29] read-write - GPIO15_LEVEL_LOW + GPIO7_LEVEL_LOW [28:28] read-write - GPIO14_EDGE_HIGH + GPIO6_EDGE_HIGH [27:27] read-write - GPIO14_EDGE_LOW + GPIO6_EDGE_LOW [26:26] read-write - GPIO14_LEVEL_HIGH + GPIO6_LEVEL_HIGH [25:25] read-write - GPIO14_LEVEL_LOW + GPIO6_LEVEL_LOW [24:24] read-write - GPIO13_EDGE_HIGH + GPIO5_EDGE_HIGH [23:23] read-write - GPIO13_EDGE_LOW + GPIO5_EDGE_LOW [22:22] read-write - GPIO13_LEVEL_HIGH + GPIO5_LEVEL_HIGH [21:21] read-write - GPIO13_LEVEL_LOW + GPIO5_LEVEL_LOW [20:20] read-write - GPIO12_EDGE_HIGH + GPIO4_EDGE_HIGH [19:19] read-write - GPIO12_EDGE_LOW + GPIO4_EDGE_LOW [18:18] read-write - GPIO12_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] read-write - GPIO12_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] read-write - GPIO11_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] read-write - GPIO11_EDGE_LOW + GPIO3_EDGE_LOW [14:14] read-write - GPIO11_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] read-write - GPIO11_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] read-write - GPIO10_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] read-write - GPIO10_EDGE_LOW + GPIO2_EDGE_LOW [10:10] read-write - GPIO10_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] read-write - GPIO10_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] read-write - GPIO9_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] read-write - GPIO9_EDGE_LOW + GPIO1_EDGE_LOW [6:6] read-write - GPIO9_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] read-write - GPIO9_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] read-write - GPIO8_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] read-write - GPIO8_EDGE_LOW + GPIO0_EDGE_LOW [2:2] read-write - GPIO8_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] read-write - GPIO8_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] read-write - PROC0_INTE2 - Interrupt Enable for proc0 - 0x0108 + 40x40,1,2,3PROC1_INTS%s + Interrupt status after masking & forcing for proc1 + 0x0150 0x00000000 - GPIO23_EDGE_HIGH + GPIO7_EDGE_HIGH [31:31] - read-write + read-only - GPIO23_EDGE_LOW + GPIO7_EDGE_LOW [30:30] - read-write + read-only - GPIO23_LEVEL_HIGH + GPIO7_LEVEL_HIGH [29:29] - read-write + read-only - GPIO23_LEVEL_LOW + GPIO7_LEVEL_LOW [28:28] - read-write + read-only - GPIO22_EDGE_HIGH + GPIO6_EDGE_HIGH [27:27] - read-write + read-only - GPIO22_EDGE_LOW + GPIO6_EDGE_LOW [26:26] - read-write + read-only - GPIO22_LEVEL_HIGH + GPIO6_LEVEL_HIGH [25:25] - read-write + read-only - GPIO22_LEVEL_LOW + GPIO6_LEVEL_LOW [24:24] - read-write + read-only - GPIO21_EDGE_HIGH + GPIO5_EDGE_HIGH [23:23] - read-write + read-only - GPIO21_EDGE_LOW + GPIO5_EDGE_LOW [22:22] - read-write + read-only - GPIO21_LEVEL_HIGH + GPIO5_LEVEL_HIGH [21:21] - read-write + read-only - GPIO21_LEVEL_LOW + GPIO5_LEVEL_LOW [20:20] - read-write + read-only - GPIO20_EDGE_HIGH + GPIO4_EDGE_HIGH [19:19] - read-write + read-only - GPIO20_EDGE_LOW + GPIO4_EDGE_LOW [18:18] - read-write + read-only - GPIO20_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] - read-write + read-only - GPIO20_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] - read-write + read-only - GPIO19_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] - read-write + read-only - GPIO19_EDGE_LOW - [14:14] - read-write - - - GPIO19_LEVEL_HIGH - [13:13] - read-write - - - GPIO19_LEVEL_LOW - [12:12] - read-write - - - GPIO18_EDGE_HIGH - [11:11] - read-write - - - GPIO18_EDGE_LOW - [10:10] - read-write - - - GPIO18_LEVEL_HIGH - [9:9] - read-write - - - GPIO18_LEVEL_LOW - [8:8] - read-write - - - GPIO17_EDGE_HIGH - [7:7] - read-write - - - GPIO17_EDGE_LOW - [6:6] - read-write - - - GPIO17_LEVEL_HIGH - [5:5] - read-write - - - GPIO17_LEVEL_LOW - [4:4] - read-write - - - GPIO16_EDGE_HIGH - [3:3] - read-write - - - GPIO16_EDGE_LOW - [2:2] - read-write - - - GPIO16_LEVEL_HIGH - [1:1] - read-write - - - GPIO16_LEVEL_LOW - [0:0] - read-write - - - - - PROC0_INTE3 - Interrupt Enable for proc0 - 0x010c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-write - - - GPIO29_EDGE_LOW - [22:22] - read-write - - - GPIO29_LEVEL_HIGH - [21:21] - read-write - - - GPIO29_LEVEL_LOW - [20:20] - read-write - - - GPIO28_EDGE_HIGH - [19:19] - read-write - - - GPIO28_EDGE_LOW - [18:18] - read-write - - - GPIO28_LEVEL_HIGH - [17:17] - read-write - - - GPIO28_LEVEL_LOW - [16:16] - read-write - - - GPIO27_EDGE_HIGH - [15:15] - read-write - - - GPIO27_EDGE_LOW - [14:14] - read-write - - - GPIO27_LEVEL_HIGH - [13:13] - read-write - - - GPIO27_LEVEL_LOW - [12:12] - read-write - - - GPIO26_EDGE_HIGH - [11:11] - read-write - - - GPIO26_EDGE_LOW - [10:10] - read-write - - - GPIO26_LEVEL_HIGH - [9:9] - read-write - - - GPIO26_LEVEL_LOW - [8:8] - read-write - - - GPIO25_EDGE_HIGH - [7:7] - read-write - - - GPIO25_EDGE_LOW - [6:6] - read-write - - - GPIO25_LEVEL_HIGH - [5:5] - read-write - - - GPIO25_LEVEL_LOW - [4:4] - read-write - - - GPIO24_EDGE_HIGH - [3:3] - read-write - - - GPIO24_EDGE_LOW - [2:2] - read-write - - - GPIO24_LEVEL_HIGH - [1:1] - read-write - - - GPIO24_LEVEL_LOW - [0:0] - read-write - - - - - PROC0_INTF0 - Interrupt Force for proc0 - 0x0110 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-write - - - GPIO7_EDGE_LOW - [30:30] - read-write - - - GPIO7_LEVEL_HIGH - [29:29] - read-write - - - GPIO7_LEVEL_LOW - [28:28] - read-write - - - GPIO6_EDGE_HIGH - [27:27] - read-write - - - GPIO6_EDGE_LOW - [26:26] - read-write - - - GPIO6_LEVEL_HIGH - [25:25] - read-write - - - GPIO6_LEVEL_LOW - [24:24] - read-write - - - GPIO5_EDGE_HIGH - [23:23] - read-write - - - GPIO5_EDGE_LOW - [22:22] - read-write - - - GPIO5_LEVEL_HIGH - [21:21] - read-write - - - GPIO5_LEVEL_LOW - [20:20] - read-write - - - GPIO4_EDGE_HIGH - [19:19] - read-write - - - GPIO4_EDGE_LOW - [18:18] - read-write - - - GPIO4_LEVEL_HIGH - [17:17] - read-write - - - GPIO4_LEVEL_LOW - [16:16] - read-write - - - GPIO3_EDGE_HIGH - [15:15] - read-write - - - GPIO3_EDGE_LOW - [14:14] - read-write - - - GPIO3_LEVEL_HIGH - [13:13] - read-write - - - GPIO3_LEVEL_LOW - [12:12] - read-write - - - GPIO2_EDGE_HIGH - [11:11] - read-write - - - GPIO2_EDGE_LOW - [10:10] - read-write - - - GPIO2_LEVEL_HIGH - [9:9] - read-write - - - GPIO2_LEVEL_LOW - [8:8] - read-write - - - GPIO1_EDGE_HIGH - [7:7] - read-write - - - GPIO1_EDGE_LOW - [6:6] - read-write - - - GPIO1_LEVEL_HIGH - [5:5] - read-write - - - GPIO1_LEVEL_LOW - [4:4] - read-write - - - GPIO0_EDGE_HIGH - [3:3] - read-write - - - GPIO0_EDGE_LOW - [2:2] - read-write - - - GPIO0_LEVEL_HIGH - [1:1] - read-write - - - GPIO0_LEVEL_LOW - [0:0] - read-write - - - - - PROC0_INTF1 - Interrupt Force for proc0 - 0x0114 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-write - - - GPIO15_EDGE_LOW - [30:30] - read-write - - - GPIO15_LEVEL_HIGH - [29:29] - read-write - - - GPIO15_LEVEL_LOW - [28:28] - read-write - - - GPIO14_EDGE_HIGH - [27:27] - read-write - - - GPIO14_EDGE_LOW - [26:26] - read-write - - - GPIO14_LEVEL_HIGH - [25:25] - read-write - - - GPIO14_LEVEL_LOW - [24:24] - read-write - - - GPIO13_EDGE_HIGH - [23:23] - read-write - - - GPIO13_EDGE_LOW - [22:22] - read-write - - - GPIO13_LEVEL_HIGH - [21:21] - read-write - - - GPIO13_LEVEL_LOW - [20:20] - read-write - - - GPIO12_EDGE_HIGH - [19:19] - read-write - - - GPIO12_EDGE_LOW - [18:18] - read-write - - - GPIO12_LEVEL_HIGH - [17:17] - read-write - - - GPIO12_LEVEL_LOW - [16:16] - read-write - - - GPIO11_EDGE_HIGH - [15:15] - read-write - - - GPIO11_EDGE_LOW - [14:14] - read-write - - - GPIO11_LEVEL_HIGH - [13:13] - read-write - - - GPIO11_LEVEL_LOW - [12:12] - read-write - - - GPIO10_EDGE_HIGH - [11:11] - read-write - - - GPIO10_EDGE_LOW - [10:10] - read-write - - - GPIO10_LEVEL_HIGH - [9:9] - read-write - - - GPIO10_LEVEL_LOW - [8:8] - read-write - - - GPIO9_EDGE_HIGH - [7:7] - read-write - - - GPIO9_EDGE_LOW - [6:6] - read-write - - - GPIO9_LEVEL_HIGH - [5:5] - read-write - - - GPIO9_LEVEL_LOW - [4:4] - read-write - - - GPIO8_EDGE_HIGH - [3:3] - read-write - - - GPIO8_EDGE_LOW - [2:2] - read-write - - - GPIO8_LEVEL_HIGH - [1:1] - read-write - - - GPIO8_LEVEL_LOW - [0:0] - read-write - - - - - PROC0_INTF2 - Interrupt Force for proc0 - 0x0118 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-write - - - GPIO23_EDGE_LOW - [30:30] - read-write - - - GPIO23_LEVEL_HIGH - [29:29] - read-write - - - GPIO23_LEVEL_LOW - [28:28] - read-write - - - GPIO22_EDGE_HIGH - [27:27] - read-write - - - GPIO22_EDGE_LOW - [26:26] - read-write - - - GPIO22_LEVEL_HIGH - [25:25] - read-write - - - GPIO22_LEVEL_LOW - [24:24] - read-write - - - GPIO21_EDGE_HIGH - [23:23] - read-write - - - GPIO21_EDGE_LOW - [22:22] - read-write - - - GPIO21_LEVEL_HIGH - [21:21] - read-write - - - GPIO21_LEVEL_LOW - [20:20] - read-write - - - GPIO20_EDGE_HIGH - [19:19] - read-write - - - GPIO20_EDGE_LOW - [18:18] - read-write - - - GPIO20_LEVEL_HIGH - [17:17] - read-write - - - GPIO20_LEVEL_LOW - [16:16] - read-write - - - GPIO19_EDGE_HIGH - [15:15] - read-write - - - GPIO19_EDGE_LOW - [14:14] - read-write - - - GPIO19_LEVEL_HIGH - [13:13] - read-write - - - GPIO19_LEVEL_LOW - [12:12] - read-write - - - GPIO18_EDGE_HIGH - [11:11] - read-write - - - GPIO18_EDGE_LOW - [10:10] - read-write - - - GPIO18_LEVEL_HIGH - [9:9] - read-write - - - GPIO18_LEVEL_LOW - [8:8] - read-write - - - GPIO17_EDGE_HIGH - [7:7] - read-write - - - GPIO17_EDGE_LOW - [6:6] - read-write - - - GPIO17_LEVEL_HIGH - [5:5] - read-write - - - GPIO17_LEVEL_LOW - [4:4] - read-write - - - GPIO16_EDGE_HIGH - [3:3] - read-write - - - GPIO16_EDGE_LOW - [2:2] - read-write - - - GPIO16_LEVEL_HIGH - [1:1] - read-write - - - GPIO16_LEVEL_LOW - [0:0] - read-write - - - - - PROC0_INTF3 - Interrupt Force for proc0 - 0x011c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-write - - - GPIO29_EDGE_LOW - [22:22] - read-write - - - GPIO29_LEVEL_HIGH - [21:21] - read-write - - - GPIO29_LEVEL_LOW - [20:20] - read-write - - - GPIO28_EDGE_HIGH - [19:19] - read-write - - - GPIO28_EDGE_LOW - [18:18] - read-write - - - GPIO28_LEVEL_HIGH - [17:17] - read-write - - - GPIO28_LEVEL_LOW - [16:16] - read-write - - - GPIO27_EDGE_HIGH - [15:15] - read-write - - - GPIO27_EDGE_LOW - [14:14] - read-write - - - GPIO27_LEVEL_HIGH - [13:13] - read-write - - - GPIO27_LEVEL_LOW - [12:12] - read-write - - - GPIO26_EDGE_HIGH - [11:11] - read-write - - - GPIO26_EDGE_LOW - [10:10] - read-write - - - GPIO26_LEVEL_HIGH - [9:9] - read-write - - - GPIO26_LEVEL_LOW - [8:8] - read-write - - - GPIO25_EDGE_HIGH - [7:7] - read-write - - - GPIO25_EDGE_LOW - [6:6] - read-write - - - GPIO25_LEVEL_HIGH - [5:5] - read-write - - - GPIO25_LEVEL_LOW - [4:4] - read-write - - - GPIO24_EDGE_HIGH - [3:3] - read-write - - - GPIO24_EDGE_LOW - [2:2] - read-write - - - GPIO24_LEVEL_HIGH - [1:1] - read-write - - - GPIO24_LEVEL_LOW - [0:0] - read-write - - - - - PROC0_INTS0 - Interrupt status after masking & forcing for proc0 - 0x0120 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-only - - - GPIO7_EDGE_LOW - [30:30] - read-only - - - GPIO7_LEVEL_HIGH - [29:29] - read-only - - - GPIO7_LEVEL_LOW - [28:28] - read-only - - - GPIO6_EDGE_HIGH - [27:27] - read-only - - - GPIO6_EDGE_LOW - [26:26] - read-only - - - GPIO6_LEVEL_HIGH - [25:25] - read-only - - - GPIO6_LEVEL_LOW - [24:24] - read-only - - - GPIO5_EDGE_HIGH - [23:23] - read-only - - - GPIO5_EDGE_LOW - [22:22] - read-only - - - GPIO5_LEVEL_HIGH - [21:21] - read-only - - - GPIO5_LEVEL_LOW - [20:20] - read-only - - - GPIO4_EDGE_HIGH - [19:19] - read-only - - - GPIO4_EDGE_LOW - [18:18] - read-only - - - GPIO4_LEVEL_HIGH - [17:17] - read-only - - - GPIO4_LEVEL_LOW - [16:16] - read-only - - - GPIO3_EDGE_HIGH - [15:15] - read-only - - - GPIO3_EDGE_LOW - [14:14] - read-only - - - GPIO3_LEVEL_HIGH - [13:13] - read-only - - - GPIO3_LEVEL_LOW - [12:12] - read-only - - - GPIO2_EDGE_HIGH - [11:11] - read-only - - - GPIO2_EDGE_LOW - [10:10] - read-only - - - GPIO2_LEVEL_HIGH - [9:9] - read-only - - - GPIO2_LEVEL_LOW - [8:8] - read-only - - - GPIO1_EDGE_HIGH - [7:7] - read-only - - - GPIO1_EDGE_LOW - [6:6] - read-only - - - GPIO1_LEVEL_HIGH - [5:5] - read-only - - - GPIO1_LEVEL_LOW - [4:4] - read-only - - - GPIO0_EDGE_HIGH - [3:3] - read-only - - - GPIO0_EDGE_LOW - [2:2] - read-only - - - GPIO0_LEVEL_HIGH - [1:1] - read-only - - - GPIO0_LEVEL_LOW - [0:0] - read-only - - - - - PROC0_INTS1 - Interrupt status after masking & forcing for proc0 - 0x0124 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-only - - - GPIO15_EDGE_LOW - [30:30] - read-only - - - GPIO15_LEVEL_HIGH - [29:29] - read-only - - - GPIO15_LEVEL_LOW - [28:28] - read-only - - - GPIO14_EDGE_HIGH - [27:27] - read-only - - - GPIO14_EDGE_LOW - [26:26] - read-only - - - GPIO14_LEVEL_HIGH - [25:25] - read-only - - - GPIO14_LEVEL_LOW - [24:24] - read-only - - - GPIO13_EDGE_HIGH - [23:23] - read-only - - - GPIO13_EDGE_LOW - [22:22] - read-only - - - GPIO13_LEVEL_HIGH - [21:21] - read-only - - - GPIO13_LEVEL_LOW - [20:20] - read-only - - - GPIO12_EDGE_HIGH - [19:19] - read-only - - - GPIO12_EDGE_LOW - [18:18] - read-only - - - GPIO12_LEVEL_HIGH - [17:17] - read-only - - - GPIO12_LEVEL_LOW - [16:16] - read-only - - - GPIO11_EDGE_HIGH - [15:15] - read-only - - - GPIO11_EDGE_LOW - [14:14] - read-only - - - GPIO11_LEVEL_HIGH - [13:13] - read-only - - - GPIO11_LEVEL_LOW - [12:12] - read-only - - - GPIO10_EDGE_HIGH - [11:11] - read-only - - - GPIO10_EDGE_LOW - [10:10] - read-only - - - GPIO10_LEVEL_HIGH - [9:9] - read-only - - - GPIO10_LEVEL_LOW - [8:8] - read-only - - - GPIO9_EDGE_HIGH - [7:7] - read-only - - - GPIO9_EDGE_LOW - [6:6] - read-only - - - GPIO9_LEVEL_HIGH - [5:5] - read-only - - - GPIO9_LEVEL_LOW - [4:4] - read-only - - - GPIO8_EDGE_HIGH - [3:3] - read-only - - - GPIO8_EDGE_LOW - [2:2] - read-only - - - GPIO8_LEVEL_HIGH - [1:1] - read-only - - - GPIO8_LEVEL_LOW - [0:0] - read-only - - - - - PROC0_INTS2 - Interrupt status after masking & forcing for proc0 - 0x0128 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-only - - - GPIO23_EDGE_LOW - [30:30] - read-only - - - GPIO23_LEVEL_HIGH - [29:29] - read-only - - - GPIO23_LEVEL_LOW - [28:28] - read-only - - - GPIO22_EDGE_HIGH - [27:27] - read-only - - - GPIO22_EDGE_LOW - [26:26] - read-only - - - GPIO22_LEVEL_HIGH - [25:25] - read-only - - - GPIO22_LEVEL_LOW - [24:24] - read-only - - - GPIO21_EDGE_HIGH - [23:23] - read-only - - - GPIO21_EDGE_LOW - [22:22] - read-only - - - GPIO21_LEVEL_HIGH - [21:21] - read-only - - - GPIO21_LEVEL_LOW - [20:20] - read-only - - - GPIO20_EDGE_HIGH - [19:19] - read-only - - - GPIO20_EDGE_LOW - [18:18] - read-only - - - GPIO20_LEVEL_HIGH - [17:17] - read-only - - - GPIO20_LEVEL_LOW - [16:16] - read-only - - - GPIO19_EDGE_HIGH - [15:15] - read-only - - - GPIO19_EDGE_LOW - [14:14] - read-only - - - GPIO19_LEVEL_HIGH - [13:13] - read-only - - - GPIO19_LEVEL_LOW - [12:12] - read-only - - - GPIO18_EDGE_HIGH - [11:11] - read-only - - - GPIO18_EDGE_LOW - [10:10] - read-only - - - GPIO18_LEVEL_HIGH - [9:9] - read-only - - - GPIO18_LEVEL_LOW - [8:8] - read-only - - - GPIO17_EDGE_HIGH - [7:7] - read-only - - - GPIO17_EDGE_LOW - [6:6] - read-only - - - GPIO17_LEVEL_HIGH - [5:5] - read-only - - - GPIO17_LEVEL_LOW - [4:4] - read-only - - - GPIO16_EDGE_HIGH - [3:3] - read-only - - - GPIO16_EDGE_LOW - [2:2] - read-only - - - GPIO16_LEVEL_HIGH - [1:1] - read-only - - - GPIO16_LEVEL_LOW - [0:0] - read-only - - - - - PROC0_INTS3 - Interrupt status after masking & forcing for proc0 - 0x012c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-only - - - GPIO29_EDGE_LOW - [22:22] - read-only - - - GPIO29_LEVEL_HIGH - [21:21] - read-only - - - GPIO29_LEVEL_LOW - [20:20] - read-only - - - GPIO28_EDGE_HIGH - [19:19] - read-only - - - GPIO28_EDGE_LOW - [18:18] - read-only - - - GPIO28_LEVEL_HIGH - [17:17] - read-only - - - GPIO28_LEVEL_LOW - [16:16] - read-only - - - GPIO27_EDGE_HIGH - [15:15] - read-only - - - GPIO27_EDGE_LOW - [14:14] - read-only - - - GPIO27_LEVEL_HIGH - [13:13] - read-only - - - GPIO27_LEVEL_LOW - [12:12] - read-only - - - GPIO26_EDGE_HIGH - [11:11] - read-only - - - GPIO26_EDGE_LOW - [10:10] - read-only - - - GPIO26_LEVEL_HIGH - [9:9] - read-only - - - GPIO26_LEVEL_LOW - [8:8] - read-only - - - GPIO25_EDGE_HIGH - [7:7] - read-only - - - GPIO25_EDGE_LOW - [6:6] - read-only - - - GPIO25_LEVEL_HIGH - [5:5] - read-only - - - GPIO25_LEVEL_LOW - [4:4] - read-only - - - GPIO24_EDGE_HIGH - [3:3] - read-only - - - GPIO24_EDGE_LOW - [2:2] - read-only - - - GPIO24_LEVEL_HIGH - [1:1] - read-only - - - GPIO24_LEVEL_LOW - [0:0] - read-only - - - - - PROC1_INTE0 - Interrupt Enable for proc1 - 0x0130 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-write - - - GPIO7_EDGE_LOW - [30:30] - read-write - - - GPIO7_LEVEL_HIGH - [29:29] - read-write - - - GPIO7_LEVEL_LOW - [28:28] - read-write - - - GPIO6_EDGE_HIGH - [27:27] - read-write - - - GPIO6_EDGE_LOW - [26:26] - read-write - - - GPIO6_LEVEL_HIGH - [25:25] - read-write - - - GPIO6_LEVEL_LOW - [24:24] - read-write - - - GPIO5_EDGE_HIGH - [23:23] - read-write - - - GPIO5_EDGE_LOW - [22:22] - read-write - - - GPIO5_LEVEL_HIGH - [21:21] - read-write - - - GPIO5_LEVEL_LOW - [20:20] - read-write - - - GPIO4_EDGE_HIGH - [19:19] - read-write - - - GPIO4_EDGE_LOW - [18:18] - read-write - - - GPIO4_LEVEL_HIGH - [17:17] - read-write - - - GPIO4_LEVEL_LOW - [16:16] - read-write - - - GPIO3_EDGE_HIGH - [15:15] - read-write - - - GPIO3_EDGE_LOW - [14:14] - read-write - - - GPIO3_LEVEL_HIGH - [13:13] - read-write - - - GPIO3_LEVEL_LOW - [12:12] - read-write - - - GPIO2_EDGE_HIGH - [11:11] - read-write - - - GPIO2_EDGE_LOW - [10:10] - read-write - - - GPIO2_LEVEL_HIGH - [9:9] - read-write - - - GPIO2_LEVEL_LOW - [8:8] - read-write - - - GPIO1_EDGE_HIGH - [7:7] - read-write - - - GPIO1_EDGE_LOW - [6:6] - read-write - - - GPIO1_LEVEL_HIGH - [5:5] - read-write - - - GPIO1_LEVEL_LOW - [4:4] - read-write - - - GPIO0_EDGE_HIGH - [3:3] - read-write - - - GPIO0_EDGE_LOW - [2:2] - read-write - - - GPIO0_LEVEL_HIGH - [1:1] - read-write - - - GPIO0_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTE1 - Interrupt Enable for proc1 - 0x0134 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-write - - - GPIO15_EDGE_LOW - [30:30] - read-write - - - GPIO15_LEVEL_HIGH - [29:29] - read-write - - - GPIO15_LEVEL_LOW - [28:28] - read-write - - - GPIO14_EDGE_HIGH - [27:27] - read-write - - - GPIO14_EDGE_LOW - [26:26] - read-write - - - GPIO14_LEVEL_HIGH - [25:25] - read-write - - - GPIO14_LEVEL_LOW - [24:24] - read-write - - - GPIO13_EDGE_HIGH - [23:23] - read-write - - - GPIO13_EDGE_LOW - [22:22] - read-write - - - GPIO13_LEVEL_HIGH - [21:21] - read-write - - - GPIO13_LEVEL_LOW - [20:20] - read-write - - - GPIO12_EDGE_HIGH - [19:19] - read-write - - - GPIO12_EDGE_LOW - [18:18] - read-write - - - GPIO12_LEVEL_HIGH - [17:17] - read-write - - - GPIO12_LEVEL_LOW - [16:16] - read-write - - - GPIO11_EDGE_HIGH - [15:15] - read-write - - - GPIO11_EDGE_LOW - [14:14] - read-write - - - GPIO11_LEVEL_HIGH - [13:13] - read-write - - - GPIO11_LEVEL_LOW - [12:12] - read-write - - - GPIO10_EDGE_HIGH - [11:11] - read-write - - - GPIO10_EDGE_LOW - [10:10] - read-write - - - GPIO10_LEVEL_HIGH - [9:9] - read-write - - - GPIO10_LEVEL_LOW - [8:8] - read-write - - - GPIO9_EDGE_HIGH - [7:7] - read-write - - - GPIO9_EDGE_LOW - [6:6] - read-write - - - GPIO9_LEVEL_HIGH - [5:5] - read-write - - - GPIO9_LEVEL_LOW - [4:4] - read-write - - - GPIO8_EDGE_HIGH - [3:3] - read-write - - - GPIO8_EDGE_LOW - [2:2] - read-write - - - GPIO8_LEVEL_HIGH - [1:1] - read-write - - - GPIO8_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTE2 - Interrupt Enable for proc1 - 0x0138 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-write - - - GPIO23_EDGE_LOW - [30:30] - read-write - - - GPIO23_LEVEL_HIGH - [29:29] - read-write - - - GPIO23_LEVEL_LOW - [28:28] - read-write - - - GPIO22_EDGE_HIGH - [27:27] - read-write - - - GPIO22_EDGE_LOW - [26:26] - read-write - - - GPIO22_LEVEL_HIGH - [25:25] - read-write - - - GPIO22_LEVEL_LOW - [24:24] - read-write - - - GPIO21_EDGE_HIGH - [23:23] - read-write - - - GPIO21_EDGE_LOW - [22:22] - read-write - - - GPIO21_LEVEL_HIGH - [21:21] - read-write - - - GPIO21_LEVEL_LOW - [20:20] - read-write - - - GPIO20_EDGE_HIGH - [19:19] - read-write - - - GPIO20_EDGE_LOW - [18:18] - read-write - - - GPIO20_LEVEL_HIGH - [17:17] - read-write - - - GPIO20_LEVEL_LOW - [16:16] - read-write - - - GPIO19_EDGE_HIGH - [15:15] - read-write - - - GPIO19_EDGE_LOW - [14:14] - read-write - - - GPIO19_LEVEL_HIGH - [13:13] - read-write - - - GPIO19_LEVEL_LOW - [12:12] - read-write - - - GPIO18_EDGE_HIGH - [11:11] - read-write - - - GPIO18_EDGE_LOW - [10:10] - read-write - - - GPIO18_LEVEL_HIGH - [9:9] - read-write - - - GPIO18_LEVEL_LOW - [8:8] - read-write - - - GPIO17_EDGE_HIGH - [7:7] - read-write - - - GPIO17_EDGE_LOW - [6:6] - read-write - - - GPIO17_LEVEL_HIGH - [5:5] - read-write - - - GPIO17_LEVEL_LOW - [4:4] - read-write - - - GPIO16_EDGE_HIGH - [3:3] - read-write - - - GPIO16_EDGE_LOW - [2:2] - read-write - - - GPIO16_LEVEL_HIGH - [1:1] - read-write - - - GPIO16_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTE3 - Interrupt Enable for proc1 - 0x013c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-write - - - GPIO29_EDGE_LOW - [22:22] - read-write - - - GPIO29_LEVEL_HIGH - [21:21] - read-write - - - GPIO29_LEVEL_LOW - [20:20] - read-write - - - GPIO28_EDGE_HIGH - [19:19] - read-write - - - GPIO28_EDGE_LOW - [18:18] - read-write - - - GPIO28_LEVEL_HIGH - [17:17] - read-write - - - GPIO28_LEVEL_LOW - [16:16] - read-write - - - GPIO27_EDGE_HIGH - [15:15] - read-write - - - GPIO27_EDGE_LOW - [14:14] - read-write - - - GPIO27_LEVEL_HIGH - [13:13] - read-write - - - GPIO27_LEVEL_LOW - [12:12] - read-write - - - GPIO26_EDGE_HIGH - [11:11] - read-write - - - GPIO26_EDGE_LOW - [10:10] - read-write - - - GPIO26_LEVEL_HIGH - [9:9] - read-write - - - GPIO26_LEVEL_LOW - [8:8] - read-write - - - GPIO25_EDGE_HIGH - [7:7] - read-write - - - GPIO25_EDGE_LOW - [6:6] - read-write - - - GPIO25_LEVEL_HIGH - [5:5] - read-write - - - GPIO25_LEVEL_LOW - [4:4] - read-write - - - GPIO24_EDGE_HIGH - [3:3] - read-write - - - GPIO24_EDGE_LOW - [2:2] - read-write - - - GPIO24_LEVEL_HIGH - [1:1] - read-write - - - GPIO24_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTF0 - Interrupt Force for proc1 - 0x0140 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-write - - - GPIO7_EDGE_LOW - [30:30] - read-write - - - GPIO7_LEVEL_HIGH - [29:29] - read-write - - - GPIO7_LEVEL_LOW - [28:28] - read-write - - - GPIO6_EDGE_HIGH - [27:27] - read-write - - - GPIO6_EDGE_LOW - [26:26] - read-write - - - GPIO6_LEVEL_HIGH - [25:25] - read-write - - - GPIO6_LEVEL_LOW - [24:24] - read-write - - - GPIO5_EDGE_HIGH - [23:23] - read-write - - - GPIO5_EDGE_LOW - [22:22] - read-write - - - GPIO5_LEVEL_HIGH - [21:21] - read-write - - - GPIO5_LEVEL_LOW - [20:20] - read-write - - - GPIO4_EDGE_HIGH - [19:19] - read-write - - - GPIO4_EDGE_LOW - [18:18] - read-write - - - GPIO4_LEVEL_HIGH - [17:17] - read-write - - - GPIO4_LEVEL_LOW - [16:16] - read-write - - - GPIO3_EDGE_HIGH - [15:15] - read-write - - - GPIO3_EDGE_LOW - [14:14] - read-write - - - GPIO3_LEVEL_HIGH - [13:13] - read-write - - - GPIO3_LEVEL_LOW - [12:12] - read-write - - - GPIO2_EDGE_HIGH - [11:11] - read-write - - - GPIO2_EDGE_LOW - [10:10] - read-write - - - GPIO2_LEVEL_HIGH - [9:9] - read-write - - - GPIO2_LEVEL_LOW - [8:8] - read-write - - - GPIO1_EDGE_HIGH - [7:7] - read-write - - - GPIO1_EDGE_LOW - [6:6] - read-write - - - GPIO1_LEVEL_HIGH - [5:5] - read-write - - - GPIO1_LEVEL_LOW - [4:4] - read-write - - - GPIO0_EDGE_HIGH - [3:3] - read-write - - - GPIO0_EDGE_LOW - [2:2] - read-write - - - GPIO0_LEVEL_HIGH - [1:1] - read-write - - - GPIO0_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTF1 - Interrupt Force for proc1 - 0x0144 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-write - - - GPIO15_EDGE_LOW - [30:30] - read-write - - - GPIO15_LEVEL_HIGH - [29:29] - read-write - - - GPIO15_LEVEL_LOW - [28:28] - read-write - - - GPIO14_EDGE_HIGH - [27:27] - read-write - - - GPIO14_EDGE_LOW - [26:26] - read-write - - - GPIO14_LEVEL_HIGH - [25:25] - read-write - - - GPIO14_LEVEL_LOW - [24:24] - read-write - - - GPIO13_EDGE_HIGH - [23:23] - read-write - - - GPIO13_EDGE_LOW - [22:22] - read-write - - - GPIO13_LEVEL_HIGH - [21:21] - read-write - - - GPIO13_LEVEL_LOW - [20:20] - read-write - - - GPIO12_EDGE_HIGH - [19:19] - read-write - - - GPIO12_EDGE_LOW - [18:18] - read-write - - - GPIO12_LEVEL_HIGH - [17:17] - read-write - - - GPIO12_LEVEL_LOW - [16:16] - read-write - - - GPIO11_EDGE_HIGH - [15:15] - read-write - - - GPIO11_EDGE_LOW - [14:14] - read-write - - - GPIO11_LEVEL_HIGH - [13:13] - read-write - - - GPIO11_LEVEL_LOW - [12:12] - read-write - - - GPIO10_EDGE_HIGH - [11:11] - read-write - - - GPIO10_EDGE_LOW - [10:10] - read-write - - - GPIO10_LEVEL_HIGH - [9:9] - read-write - - - GPIO10_LEVEL_LOW - [8:8] - read-write - - - GPIO9_EDGE_HIGH - [7:7] - read-write - - - GPIO9_EDGE_LOW - [6:6] - read-write - - - GPIO9_LEVEL_HIGH - [5:5] - read-write - - - GPIO9_LEVEL_LOW - [4:4] - read-write - - - GPIO8_EDGE_HIGH - [3:3] - read-write - - - GPIO8_EDGE_LOW - [2:2] - read-write - - - GPIO8_LEVEL_HIGH - [1:1] - read-write - - - GPIO8_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTF2 - Interrupt Force for proc1 - 0x0148 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-write - - - GPIO23_EDGE_LOW - [30:30] - read-write - - - GPIO23_LEVEL_HIGH - [29:29] - read-write - - - GPIO23_LEVEL_LOW - [28:28] - read-write - - - GPIO22_EDGE_HIGH - [27:27] - read-write - - - GPIO22_EDGE_LOW - [26:26] - read-write - - - GPIO22_LEVEL_HIGH - [25:25] - read-write - - - GPIO22_LEVEL_LOW - [24:24] - read-write - - - GPIO21_EDGE_HIGH - [23:23] - read-write - - - GPIO21_EDGE_LOW - [22:22] - read-write - - - GPIO21_LEVEL_HIGH - [21:21] - read-write - - - GPIO21_LEVEL_LOW - [20:20] - read-write - - - GPIO20_EDGE_HIGH - [19:19] - read-write - - - GPIO20_EDGE_LOW - [18:18] - read-write - - - GPIO20_LEVEL_HIGH - [17:17] - read-write - - - GPIO20_LEVEL_LOW - [16:16] - read-write - - - GPIO19_EDGE_HIGH - [15:15] - read-write - - - GPIO19_EDGE_LOW - [14:14] - read-write - - - GPIO19_LEVEL_HIGH - [13:13] - read-write - - - GPIO19_LEVEL_LOW - [12:12] - read-write - - - GPIO18_EDGE_HIGH - [11:11] - read-write - - - GPIO18_EDGE_LOW - [10:10] - read-write - - - GPIO18_LEVEL_HIGH - [9:9] - read-write - - - GPIO18_LEVEL_LOW - [8:8] - read-write - - - GPIO17_EDGE_HIGH - [7:7] - read-write - - - GPIO17_EDGE_LOW - [6:6] - read-write - - - GPIO17_LEVEL_HIGH - [5:5] - read-write - - - GPIO17_LEVEL_LOW - [4:4] - read-write - - - GPIO16_EDGE_HIGH - [3:3] - read-write - - - GPIO16_EDGE_LOW - [2:2] - read-write - - - GPIO16_LEVEL_HIGH - [1:1] - read-write - - - GPIO16_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTF3 - Interrupt Force for proc1 - 0x014c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-write - - - GPIO29_EDGE_LOW - [22:22] - read-write - - - GPIO29_LEVEL_HIGH - [21:21] - read-write - - - GPIO29_LEVEL_LOW - [20:20] - read-write - - - GPIO28_EDGE_HIGH - [19:19] - read-write - - - GPIO28_EDGE_LOW - [18:18] - read-write - - - GPIO28_LEVEL_HIGH - [17:17] - read-write - - - GPIO28_LEVEL_LOW - [16:16] - read-write - - - GPIO27_EDGE_HIGH - [15:15] - read-write - - - GPIO27_EDGE_LOW - [14:14] - read-write - - - GPIO27_LEVEL_HIGH - [13:13] - read-write - - - GPIO27_LEVEL_LOW - [12:12] - read-write - - - GPIO26_EDGE_HIGH - [11:11] - read-write - - - GPIO26_EDGE_LOW - [10:10] - read-write - - - GPIO26_LEVEL_HIGH - [9:9] - read-write - - - GPIO26_LEVEL_LOW - [8:8] - read-write - - - GPIO25_EDGE_HIGH - [7:7] - read-write - - - GPIO25_EDGE_LOW - [6:6] - read-write - - - GPIO25_LEVEL_HIGH - [5:5] - read-write - - - GPIO25_LEVEL_LOW - [4:4] - read-write - - - GPIO24_EDGE_HIGH - [3:3] - read-write - - - GPIO24_EDGE_LOW - [2:2] - read-write - - - GPIO24_LEVEL_HIGH - [1:1] - read-write - - - GPIO24_LEVEL_LOW - [0:0] - read-write - - - - - PROC1_INTS0 - Interrupt status after masking & forcing for proc1 - 0x0150 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-only - - - GPIO7_EDGE_LOW - [30:30] - read-only - - - GPIO7_LEVEL_HIGH - [29:29] - read-only - - - GPIO7_LEVEL_LOW - [28:28] - read-only - - - GPIO6_EDGE_HIGH - [27:27] - read-only - - - GPIO6_EDGE_LOW - [26:26] - read-only - - - GPIO6_LEVEL_HIGH - [25:25] - read-only - - - GPIO6_LEVEL_LOW - [24:24] - read-only - - - GPIO5_EDGE_HIGH - [23:23] - read-only - - - GPIO5_EDGE_LOW - [22:22] - read-only - - - GPIO5_LEVEL_HIGH - [21:21] - read-only - - - GPIO5_LEVEL_LOW - [20:20] - read-only - - - GPIO4_EDGE_HIGH - [19:19] - read-only - - - GPIO4_EDGE_LOW - [18:18] - read-only - - - GPIO4_LEVEL_HIGH - [17:17] - read-only - - - GPIO4_LEVEL_LOW - [16:16] - read-only - - - GPIO3_EDGE_HIGH - [15:15] - read-only - - - GPIO3_EDGE_LOW - [14:14] - read-only - - - GPIO3_LEVEL_HIGH - [13:13] - read-only - - - GPIO3_LEVEL_LOW - [12:12] - read-only - - - GPIO2_EDGE_HIGH - [11:11] - read-only - - - GPIO2_EDGE_LOW - [10:10] - read-only - - - GPIO2_LEVEL_HIGH - [9:9] - read-only - - - GPIO2_LEVEL_LOW - [8:8] - read-only - - - GPIO1_EDGE_HIGH - [7:7] - read-only - - - GPIO1_EDGE_LOW - [6:6] - read-only - - - GPIO1_LEVEL_HIGH - [5:5] - read-only - - - GPIO1_LEVEL_LOW - [4:4] - read-only - - - GPIO0_EDGE_HIGH - [3:3] - read-only - - - GPIO0_EDGE_LOW - [2:2] - read-only - - - GPIO0_LEVEL_HIGH - [1:1] - read-only - - - GPIO0_LEVEL_LOW - [0:0] - read-only - - - - - PROC1_INTS1 - Interrupt status after masking & forcing for proc1 - 0x0154 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-only - - - GPIO15_EDGE_LOW - [30:30] - read-only - - - GPIO15_LEVEL_HIGH - [29:29] - read-only - - - GPIO15_LEVEL_LOW - [28:28] - read-only - - - GPIO14_EDGE_HIGH - [27:27] - read-only - - - GPIO14_EDGE_LOW - [26:26] - read-only - - - GPIO14_LEVEL_HIGH - [25:25] - read-only - - - GPIO14_LEVEL_LOW - [24:24] - read-only - - - GPIO13_EDGE_HIGH - [23:23] - read-only - - - GPIO13_EDGE_LOW - [22:22] - read-only - - - GPIO13_LEVEL_HIGH - [21:21] - read-only - - - GPIO13_LEVEL_LOW - [20:20] - read-only - - - GPIO12_EDGE_HIGH - [19:19] - read-only - - - GPIO12_EDGE_LOW - [18:18] - read-only - - - GPIO12_LEVEL_HIGH - [17:17] - read-only - - - GPIO12_LEVEL_LOW - [16:16] - read-only - - - GPIO11_EDGE_HIGH - [15:15] - read-only - - - GPIO11_EDGE_LOW - [14:14] - read-only - - - GPIO11_LEVEL_HIGH - [13:13] - read-only - - - GPIO11_LEVEL_LOW - [12:12] - read-only - - - GPIO10_EDGE_HIGH - [11:11] - read-only - - - GPIO10_EDGE_LOW - [10:10] - read-only - - - GPIO10_LEVEL_HIGH - [9:9] - read-only - - - GPIO10_LEVEL_LOW - [8:8] - read-only - - - GPIO9_EDGE_HIGH - [7:7] - read-only - - - GPIO9_EDGE_LOW - [6:6] - read-only - - - GPIO9_LEVEL_HIGH - [5:5] - read-only - - - GPIO9_LEVEL_LOW - [4:4] - read-only - - - GPIO8_EDGE_HIGH - [3:3] - read-only - - - GPIO8_EDGE_LOW - [2:2] - read-only - - - GPIO8_LEVEL_HIGH - [1:1] - read-only - - - GPIO8_LEVEL_LOW - [0:0] - read-only - - - - - PROC1_INTS2 - Interrupt status after masking & forcing for proc1 - 0x0158 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-only - - - GPIO23_EDGE_LOW - [30:30] - read-only - - - GPIO23_LEVEL_HIGH - [29:29] - read-only - - - GPIO23_LEVEL_LOW - [28:28] - read-only - - - GPIO22_EDGE_HIGH - [27:27] - read-only - - - GPIO22_EDGE_LOW - [26:26] - read-only - - - GPIO22_LEVEL_HIGH - [25:25] - read-only - - - GPIO22_LEVEL_LOW - [24:24] - read-only - - - GPIO21_EDGE_HIGH - [23:23] - read-only - - - GPIO21_EDGE_LOW - [22:22] - read-only - - - GPIO21_LEVEL_HIGH - [21:21] - read-only - - - GPIO21_LEVEL_LOW - [20:20] - read-only - - - GPIO20_EDGE_HIGH - [19:19] - read-only - - - GPIO20_EDGE_LOW - [18:18] - read-only - - - GPIO20_LEVEL_HIGH - [17:17] - read-only - - - GPIO20_LEVEL_LOW - [16:16] - read-only - - - GPIO19_EDGE_HIGH - [15:15] - read-only - - - GPIO19_EDGE_LOW - [14:14] - read-only - - - GPIO19_LEVEL_HIGH - [13:13] - read-only - - - GPIO19_LEVEL_LOW - [12:12] - read-only - - - GPIO18_EDGE_HIGH - [11:11] - read-only - - - GPIO18_EDGE_LOW - [10:10] - read-only - - - GPIO18_LEVEL_HIGH - [9:9] - read-only - - - GPIO18_LEVEL_LOW - [8:8] - read-only - - - GPIO17_EDGE_HIGH - [7:7] - read-only - - - GPIO17_EDGE_LOW - [6:6] - read-only - - - GPIO17_LEVEL_HIGH - [5:5] - read-only - - - GPIO17_LEVEL_LOW - [4:4] - read-only - - - GPIO16_EDGE_HIGH - [3:3] - read-only - - - GPIO16_EDGE_LOW - [2:2] - read-only - - - GPIO16_LEVEL_HIGH - [1:1] - read-only - - - GPIO16_LEVEL_LOW - [0:0] - read-only - - - - - PROC1_INTS3 - Interrupt status after masking & forcing for proc1 - 0x015c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-only - - - GPIO29_EDGE_LOW - [22:22] - read-only - - - GPIO29_LEVEL_HIGH - [21:21] - read-only - - - GPIO29_LEVEL_LOW - [20:20] - read-only - - - GPIO28_EDGE_HIGH - [19:19] - read-only - - - GPIO28_EDGE_LOW - [18:18] - read-only - - - GPIO28_LEVEL_HIGH - [17:17] - read-only - - - GPIO28_LEVEL_LOW - [16:16] - read-only - - - GPIO27_EDGE_HIGH - [15:15] - read-only - - - GPIO27_EDGE_LOW + GPIO3_EDGE_LOW [14:14] read-only - GPIO27_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] read-only - GPIO27_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] read-only - GPIO26_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] read-only - GPIO26_EDGE_LOW + GPIO2_EDGE_LOW [10:10] read-only - GPIO26_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] read-only - GPIO26_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] read-only - GPIO25_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] read-only - GPIO25_EDGE_LOW + GPIO1_EDGE_LOW [6:6] read-only - GPIO25_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] read-only - GPIO25_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] read-only - GPIO24_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] read-only - GPIO24_EDGE_LOW + GPIO0_EDGE_LOW [2:2] read-only - GPIO24_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] read-only - GPIO24_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] read-only From 0d845736c1c2ee02e1f2200221b0ec9e01637821 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Sun, 17 Oct 2021 21:00:03 +1100 Subject: [PATCH 3/7] Add generated files --- src/io_bank0.rs | 202 +-- src/io_bank0/{intr0.rs => intr.rs} | 38 +- src/io_bank0/intr1.rs | 1110 ------------ src/io_bank0/intr2.rs | 1110 ------------ src/io_bank0/intr3.rs | 850 --------- .../{proc0_intf0.rs => proc0_inte.rs} | 40 +- src/io_bank0/proc0_inte1.rs | 1542 ----------------- src/io_bank0/proc0_inte2.rs | 1542 ----------------- src/io_bank0/proc0_inte3.rs | 1174 ------------- .../{proc0_inte0.rs => proc0_intf.rs} | 40 +- src/io_bank0/proc0_intf1.rs | 1542 ----------------- src/io_bank0/proc0_intf2.rs | 1542 ----------------- src/io_bank0/proc0_intf3.rs | 1174 ------------- .../{proc0_ints0.rs => proc0_ints.rs} | 26 +- src/io_bank0/proc0_ints1.rs | 645 ------- src/io_bank0/proc0_ints2.rs | 645 ------- src/io_bank0/proc0_ints3.rs | 493 ------ .../{proc1_inte0.rs => proc1_inte.rs} | 38 +- src/io_bank0/proc1_inte1.rs | 1542 ----------------- src/io_bank0/proc1_inte2.rs | 1542 ----------------- src/io_bank0/proc1_inte3.rs | 1174 ------------- .../{proc1_intf0.rs => proc1_intf.rs} | 38 +- src/io_bank0/proc1_intf1.rs | 1542 ----------------- src/io_bank0/proc1_intf2.rs | 1542 ----------------- src/io_bank0/proc1_intf3.rs | 1174 ------------- .../{proc1_ints0.rs => proc1_ints.rs} | 24 +- src/io_bank0/proc1_ints1.rs | 645 ------- src/io_bank0/proc1_ints2.rs | 645 ------- src/io_bank0/proc1_ints3.rs | 493 ------ 29 files changed, 160 insertions(+), 23954 deletions(-) rename src/io_bank0/{intr0.rs => intr.rs} (97%) delete mode 100644 src/io_bank0/intr1.rs delete mode 100644 src/io_bank0/intr2.rs delete mode 100644 src/io_bank0/intr3.rs rename src/io_bank0/{proc0_intf0.rs => proc0_inte.rs} (97%) delete mode 100644 src/io_bank0/proc0_inte1.rs delete mode 100644 src/io_bank0/proc0_inte2.rs delete mode 100644 src/io_bank0/proc0_inte3.rs rename src/io_bank0/{proc0_inte0.rs => proc0_intf.rs} (97%) delete mode 100644 src/io_bank0/proc0_intf1.rs delete mode 100644 src/io_bank0/proc0_intf2.rs delete mode 100644 src/io_bank0/proc0_intf3.rs rename src/io_bank0/{proc0_ints0.rs => proc0_ints.rs} (96%) delete mode 100644 src/io_bank0/proc0_ints1.rs delete mode 100644 src/io_bank0/proc0_ints2.rs delete mode 100644 src/io_bank0/proc0_ints3.rs rename src/io_bank0/{proc1_inte0.rs => proc1_inte.rs} (97%) delete mode 100644 src/io_bank0/proc1_inte1.rs delete mode 100644 src/io_bank0/proc1_inte2.rs delete mode 100644 src/io_bank0/proc1_inte3.rs rename src/io_bank0/{proc1_intf0.rs => proc1_intf.rs} (97%) delete mode 100644 src/io_bank0/proc1_intf1.rs delete mode 100644 src/io_bank0/proc1_intf2.rs delete mode 100644 src/io_bank0/proc1_intf3.rs rename src/io_bank0/{proc1_ints0.rs => proc1_ints.rs} (96%) delete mode 100644 src/io_bank0/proc1_ints1.rs delete mode 100644 src/io_bank0/proc1_ints2.rs delete mode 100644 src/io_bank0/proc1_ints3.rs diff --git a/src/io_bank0.rs b/src/io_bank0.rs index 34cd3e338..730aa924e 100644 --- a/src/io_bank0.rs +++ b/src/io_bank0.rs @@ -3,62 +3,20 @@ pub struct RegisterBlock { #[doc = "0x00..0xf0 - Cluster GPIO%s, containing GPIO*_STATUS, GPIO*_CTRL"] pub gpio: [GPIO; 30], - #[doc = "0xf0 - Raw Interrupts"] - pub intr0: crate::Reg, - #[doc = "0xf4 - Raw Interrupts"] - pub intr1: crate::Reg, - #[doc = "0xf8 - Raw Interrupts"] - pub intr2: crate::Reg, - #[doc = "0xfc - Raw Interrupts"] - pub intr3: crate::Reg, - #[doc = "0x100 - Interrupt Enable for proc0"] - pub proc0_inte0: crate::Reg, - #[doc = "0x104 - Interrupt Enable for proc0"] - pub proc0_inte1: crate::Reg, - #[doc = "0x108 - Interrupt Enable for proc0"] - pub proc0_inte2: crate::Reg, - #[doc = "0x10c - Interrupt Enable for proc0"] - pub proc0_inte3: crate::Reg, - #[doc = "0x110 - Interrupt Force for proc0"] - pub proc0_intf0: crate::Reg, - #[doc = "0x114 - Interrupt Force for proc0"] - pub proc0_intf1: crate::Reg, - #[doc = "0x118 - Interrupt Force for proc0"] - pub proc0_intf2: crate::Reg, - #[doc = "0x11c - Interrupt Force for proc0"] - pub proc0_intf3: crate::Reg, - #[doc = "0x120 - Interrupt status after masking & forcing for proc0"] - pub proc0_ints0: crate::Reg, - #[doc = "0x124 - Interrupt status after masking & forcing for proc0"] - pub proc0_ints1: crate::Reg, - #[doc = "0x128 - Interrupt status after masking & forcing for proc0"] - pub proc0_ints2: crate::Reg, - #[doc = "0x12c - Interrupt status after masking & forcing for proc0"] - pub proc0_ints3: crate::Reg, - #[doc = "0x130 - Interrupt Enable for proc1"] - pub proc1_inte0: crate::Reg, - #[doc = "0x134 - Interrupt Enable for proc1"] - pub proc1_inte1: crate::Reg, - #[doc = "0x138 - Interrupt Enable for proc1"] - pub proc1_inte2: crate::Reg, - #[doc = "0x13c - Interrupt Enable for proc1"] - pub proc1_inte3: crate::Reg, - #[doc = "0x140 - Interrupt Force for proc1"] - pub proc1_intf0: crate::Reg, - #[doc = "0x144 - Interrupt Force for proc1"] - pub proc1_intf1: crate::Reg, - #[doc = "0x148 - Interrupt Force for proc1"] - pub proc1_intf2: crate::Reg, - #[doc = "0x14c - Interrupt Force for proc1"] - pub proc1_intf3: crate::Reg, - #[doc = "0x150 - Interrupt status after masking & forcing for proc1"] - pub proc1_ints0: crate::Reg, - #[doc = "0x154 - Interrupt status after masking & forcing for proc1"] - pub proc1_ints1: crate::Reg, - #[doc = "0x158 - Interrupt status after masking & forcing for proc1"] - pub proc1_ints2: crate::Reg, - #[doc = "0x15c - Interrupt status after masking & forcing for proc1"] - pub proc1_ints3: crate::Reg, + #[doc = "0xf0..0x100 - Raw Interrupts"] + pub intr: [crate::Reg; 4], + #[doc = "0x100..0x110 - Interrupt Enable for proc%s"] + pub proc0_inte: [crate::Reg; 4], + #[doc = "0x110..0x120 - Interrupt Force for proc%s"] + pub proc0_intf: [crate::Reg; 4], + #[doc = "0x120..0x130 - Interrupt status after masking & forcing for proc%s"] + pub proc0_ints: [crate::Reg; 4], + #[doc = "0x130..0x140 - Interrupt Enable for proc1"] + pub proc1_inte: [crate::Reg; 4], + #[doc = "0x140..0x150 - Interrupt Force for proc1"] + pub proc1_intf: [crate::Reg; 4], + #[doc = "0x150..0x160 - Interrupt status after masking & forcing for proc1"] + pub proc1_ints: [crate::Reg; 4], #[doc = "0x160 - Interrupt Enable for dormant_wake"] pub dormant_wake_inte0: crate::Reg, #[doc = "0x164 - Interrupt Enable for dormant_wake"] @@ -95,118 +53,34 @@ pub struct GPIO { #[doc = r"Register block"] #[doc = "Cluster GPIO%s, containing GPIO*_STATUS, GPIO*_CTRL"] pub mod gpio; -#[doc = "INTR0 register accessor: an alias for `Reg`"] -pub type INTR0 = crate::Reg; +#[doc = "INTR register accessor: an alias for `Reg`"] +pub type INTR = crate::Reg; #[doc = "Raw Interrupts"] -pub mod intr0; -#[doc = "INTR1 register accessor: an alias for `Reg`"] -pub type INTR1 = crate::Reg; -#[doc = "Raw Interrupts"] -pub mod intr1; -#[doc = "INTR2 register accessor: an alias for `Reg`"] -pub type INTR2 = crate::Reg; -#[doc = "Raw Interrupts"] -pub mod intr2; -#[doc = "INTR3 register accessor: an alias for `Reg`"] -pub type INTR3 = crate::Reg; -#[doc = "Raw Interrupts"] -pub mod intr3; -#[doc = "PROC0_INTE0 register accessor: an alias for `Reg`"] -pub type PROC0_INTE0 = crate::Reg; -#[doc = "Interrupt Enable for proc0"] -pub mod proc0_inte0; -#[doc = "PROC0_INTE1 register accessor: an alias for `Reg`"] -pub type PROC0_INTE1 = crate::Reg; -#[doc = "Interrupt Enable for proc0"] -pub mod proc0_inte1; -#[doc = "PROC0_INTE2 register accessor: an alias for `Reg`"] -pub type PROC0_INTE2 = crate::Reg; -#[doc = "Interrupt Enable for proc0"] -pub mod proc0_inte2; -#[doc = "PROC0_INTE3 register accessor: an alias for `Reg`"] -pub type PROC0_INTE3 = crate::Reg; -#[doc = "Interrupt Enable for proc0"] -pub mod proc0_inte3; -#[doc = "PROC0_INTF0 register accessor: an alias for `Reg`"] -pub type PROC0_INTF0 = crate::Reg; -#[doc = "Interrupt Force for proc0"] -pub mod proc0_intf0; -#[doc = "PROC0_INTF1 register accessor: an alias for `Reg`"] -pub type PROC0_INTF1 = crate::Reg; -#[doc = "Interrupt Force for proc0"] -pub mod proc0_intf1; -#[doc = "PROC0_INTF2 register accessor: an alias for `Reg`"] -pub type PROC0_INTF2 = crate::Reg; -#[doc = "Interrupt Force for proc0"] -pub mod proc0_intf2; -#[doc = "PROC0_INTF3 register accessor: an alias for `Reg`"] -pub type PROC0_INTF3 = crate::Reg; -#[doc = "Interrupt Force for proc0"] -pub mod proc0_intf3; -#[doc = "PROC0_INTS0 register accessor: an alias for `Reg`"] -pub type PROC0_INTS0 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc0"] -pub mod proc0_ints0; -#[doc = "PROC0_INTS1 register accessor: an alias for `Reg`"] -pub type PROC0_INTS1 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc0"] -pub mod proc0_ints1; -#[doc = "PROC0_INTS2 register accessor: an alias for `Reg`"] -pub type PROC0_INTS2 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc0"] -pub mod proc0_ints2; -#[doc = "PROC0_INTS3 register accessor: an alias for `Reg`"] -pub type PROC0_INTS3 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc0"] -pub mod proc0_ints3; -#[doc = "PROC1_INTE0 register accessor: an alias for `Reg`"] -pub type PROC1_INTE0 = crate::Reg; -#[doc = "Interrupt Enable for proc1"] -pub mod proc1_inte0; -#[doc = "PROC1_INTE1 register accessor: an alias for `Reg`"] -pub type PROC1_INTE1 = crate::Reg; -#[doc = "Interrupt Enable for proc1"] -pub mod proc1_inte1; -#[doc = "PROC1_INTE2 register accessor: an alias for `Reg`"] -pub type PROC1_INTE2 = crate::Reg; -#[doc = "Interrupt Enable for proc1"] -pub mod proc1_inte2; -#[doc = "PROC1_INTE3 register accessor: an alias for `Reg`"] -pub type PROC1_INTE3 = crate::Reg; +pub mod intr; +#[doc = "PROC0_INTE register accessor: an alias for `Reg`"] +pub type PROC0_INTE = crate::Reg; +#[doc = "Interrupt Enable for proc%s"] +pub mod proc0_inte; +#[doc = "PROC0_INTF register accessor: an alias for `Reg`"] +pub type PROC0_INTF = crate::Reg; +#[doc = "Interrupt Force for proc%s"] +pub mod proc0_intf; +#[doc = "PROC0_INTS register accessor: an alias for `Reg`"] +pub type PROC0_INTS = crate::Reg; +#[doc = "Interrupt status after masking & forcing for proc%s"] +pub mod proc0_ints; +#[doc = "PROC1_INTE register accessor: an alias for `Reg`"] +pub type PROC1_INTE = crate::Reg; #[doc = "Interrupt Enable for proc1"] -pub mod proc1_inte3; -#[doc = "PROC1_INTF0 register accessor: an alias for `Reg`"] -pub type PROC1_INTF0 = crate::Reg; +pub mod proc1_inte; +#[doc = "PROC1_INTF register accessor: an alias for `Reg`"] +pub type PROC1_INTF = crate::Reg; #[doc = "Interrupt Force for proc1"] -pub mod proc1_intf0; -#[doc = "PROC1_INTF1 register accessor: an alias for `Reg`"] -pub type PROC1_INTF1 = crate::Reg; -#[doc = "Interrupt Force for proc1"] -pub mod proc1_intf1; -#[doc = "PROC1_INTF2 register accessor: an alias for `Reg`"] -pub type PROC1_INTF2 = crate::Reg; -#[doc = "Interrupt Force for proc1"] -pub mod proc1_intf2; -#[doc = "PROC1_INTF3 register accessor: an alias for `Reg`"] -pub type PROC1_INTF3 = crate::Reg; -#[doc = "Interrupt Force for proc1"] -pub mod proc1_intf3; -#[doc = "PROC1_INTS0 register accessor: an alias for `Reg`"] -pub type PROC1_INTS0 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc1"] -pub mod proc1_ints0; -#[doc = "PROC1_INTS1 register accessor: an alias for `Reg`"] -pub type PROC1_INTS1 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc1"] -pub mod proc1_ints1; -#[doc = "PROC1_INTS2 register accessor: an alias for `Reg`"] -pub type PROC1_INTS2 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for proc1"] -pub mod proc1_ints2; -#[doc = "PROC1_INTS3 register accessor: an alias for `Reg`"] -pub type PROC1_INTS3 = crate::Reg; +pub mod proc1_intf; +#[doc = "PROC1_INTS register accessor: an alias for `Reg`"] +pub type PROC1_INTS = crate::Reg; #[doc = "Interrupt status after masking & forcing for proc1"] -pub mod proc1_ints3; +pub mod proc1_ints; #[doc = "DORMANT_WAKE_INTE0 register accessor: an alias for `Reg`"] pub type DORMANT_WAKE_INTE0 = crate::Reg; #[doc = "Interrupt Enable for dormant_wake"] diff --git a/src/io_bank0/intr0.rs b/src/io_bank0/intr.rs similarity index 97% rename from src/io_bank0/intr0.rs rename to src/io_bank0/intr.rs index 64a962ff7..87aaaa88b 100644 --- a/src/io_bank0/intr0.rs +++ b/src/io_bank0/intr.rs @@ -1,22 +1,22 @@ -#[doc = "Register `INTR0` reader"] -pub struct R(crate::R); +#[doc = "Register `INTR%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `INTR0` writer"] -pub struct W(crate::W); +#[doc = "Register `INTR%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1088,21 +1088,21 @@ impl W { This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [intr0](index.html) module"] -pub struct INTR0_SPEC; -impl crate::RegisterSpec for INTR0_SPEC { +For information about available fields see [intr](index.html) module"] +pub struct INTR_SPEC; +impl crate::RegisterSpec for INTR_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [intr0::R](R) reader structure"] -impl crate::Readable for INTR0_SPEC { +#[doc = "`read()` method returns [intr::R](R) reader structure"] +impl crate::Readable for INTR_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [intr0::W](W) writer structure"] -impl crate::Writable for INTR0_SPEC { +#[doc = "`write(|w| ..)` method takes [intr::W](W) writer structure"] +impl crate::Writable for INTR_SPEC { type Writer = W; } -#[doc = "`reset()` method sets INTR0 to value 0"] -impl crate::Resettable for INTR0_SPEC { +#[doc = "`reset()` method sets INTR%s to value 0"] +impl crate::Resettable for INTR_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/intr1.rs b/src/io_bank0/intr1.rs deleted file mode 100644 index 2cf63faaa..000000000 --- a/src/io_bank0/intr1.rs +++ /dev/null @@ -1,1110 +0,0 @@ -#[doc = "Register `INTR1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `INTR1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Raw Interrupts - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [intr1](index.html) module"] -pub struct INTR1_SPEC; -impl crate::RegisterSpec for INTR1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [intr1::R](R) reader structure"] -impl crate::Readable for INTR1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [intr1::W](W) writer structure"] -impl crate::Writable for INTR1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets INTR1 to value 0"] -impl crate::Resettable for INTR1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/intr2.rs b/src/io_bank0/intr2.rs deleted file mode 100644 index 1e374e0c7..000000000 --- a/src/io_bank0/intr2.rs +++ /dev/null @@ -1,1110 +0,0 @@ -#[doc = "Register `INTR2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `INTR2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Raw Interrupts - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [intr2](index.html) module"] -pub struct INTR2_SPEC; -impl crate::RegisterSpec for INTR2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [intr2::R](R) reader structure"] -impl crate::Readable for INTR2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [intr2::W](W) writer structure"] -impl crate::Writable for INTR2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets INTR2 to value 0"] -impl crate::Resettable for INTR2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/intr3.rs b/src/io_bank0/intr3.rs deleted file mode 100644 index 104671e2d..000000000 --- a/src/io_bank0/intr3.rs +++ /dev/null @@ -1,850 +0,0 @@ -#[doc = "Register `INTR3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `INTR3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Raw Interrupts - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [intr3](index.html) module"] -pub struct INTR3_SPEC; -impl crate::RegisterSpec for INTR3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [intr3::R](R) reader structure"] -impl crate::Readable for INTR3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [intr3::W](W) writer structure"] -impl crate::Writable for INTR3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets INTR3 to value 0"] -impl crate::Resettable for INTR3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_intf0.rs b/src/io_bank0/proc0_inte.rs similarity index 97% rename from src/io_bank0/proc0_intf0.rs rename to src/io_bank0/proc0_inte.rs index 8914d1fdf..029635eec 100644 --- a/src/io_bank0/proc0_intf0.rs +++ b/src/io_bank0/proc0_inte.rs @@ -1,22 +1,22 @@ -#[doc = "Register `PROC0_INTF0` reader"] -pub struct R(crate::R); +#[doc = "Register `PROC0_INTE%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `PROC0_INTF0` writer"] -pub struct W(crate::W); +#[doc = "Register `PROC0_INTE%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1516,25 +1516,25 @@ impl W { self } } -#[doc = "Interrupt Force for proc0 +#[doc = "Interrupt Enable for proc%s This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [proc0_intf0](index.html) module"] -pub struct PROC0_INTF0_SPEC; -impl crate::RegisterSpec for PROC0_INTF0_SPEC { +For information about available fields see [proc0_inte](index.html) module"] +pub struct PROC0_INTE_SPEC; +impl crate::RegisterSpec for PROC0_INTE_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [proc0_intf0::R](R) reader structure"] -impl crate::Readable for PROC0_INTF0_SPEC { +#[doc = "`read()` method returns [proc0_inte::R](R) reader structure"] +impl crate::Readable for PROC0_INTE_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [proc0_intf0::W](W) writer structure"] -impl crate::Writable for PROC0_INTF0_SPEC { +#[doc = "`write(|w| ..)` method takes [proc0_inte::W](W) writer structure"] +impl crate::Writable for PROC0_INTE_SPEC { type Writer = W; } -#[doc = "`reset()` method sets PROC0_INTF0 to value 0"] -impl crate::Resettable for PROC0_INTF0_SPEC { +#[doc = "`reset()` method sets PROC0_INTE%s to value 0"] +impl crate::Resettable for PROC0_INTE_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/proc0_inte1.rs b/src/io_bank0/proc0_inte1.rs deleted file mode 100644 index 8b94db239..000000000 --- a/src/io_bank0/proc0_inte1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC0_INTE1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC0_INTE1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for proc0 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_inte1](index.html) module"] -pub struct PROC0_INTE1_SPEC; -impl crate::RegisterSpec for PROC0_INTE1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_inte1::R](R) reader structure"] -impl crate::Readable for PROC0_INTE1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc0_inte1::W](W) writer structure"] -impl crate::Writable for PROC0_INTE1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC0_INTE1 to value 0"] -impl crate::Resettable for PROC0_INTE1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_inte2.rs b/src/io_bank0/proc0_inte2.rs deleted file mode 100644 index 04414f159..000000000 --- a/src/io_bank0/proc0_inte2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC0_INTE2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC0_INTE2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for proc0 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_inte2](index.html) module"] -pub struct PROC0_INTE2_SPEC; -impl crate::RegisterSpec for PROC0_INTE2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_inte2::R](R) reader structure"] -impl crate::Readable for PROC0_INTE2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc0_inte2::W](W) writer structure"] -impl crate::Writable for PROC0_INTE2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC0_INTE2 to value 0"] -impl crate::Resettable for PROC0_INTE2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_inte3.rs b/src/io_bank0/proc0_inte3.rs deleted file mode 100644 index 046b3e7c1..000000000 --- a/src/io_bank0/proc0_inte3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `PROC0_INTE3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC0_INTE3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for proc0 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_inte3](index.html) module"] -pub struct PROC0_INTE3_SPEC; -impl crate::RegisterSpec for PROC0_INTE3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_inte3::R](R) reader structure"] -impl crate::Readable for PROC0_INTE3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc0_inte3::W](W) writer structure"] -impl crate::Writable for PROC0_INTE3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC0_INTE3 to value 0"] -impl crate::Resettable for PROC0_INTE3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_inte0.rs b/src/io_bank0/proc0_intf.rs similarity index 97% rename from src/io_bank0/proc0_inte0.rs rename to src/io_bank0/proc0_intf.rs index c9efa9917..a65c182a7 100644 --- a/src/io_bank0/proc0_inte0.rs +++ b/src/io_bank0/proc0_intf.rs @@ -1,22 +1,22 @@ -#[doc = "Register `PROC0_INTE0` reader"] -pub struct R(crate::R); +#[doc = "Register `PROC0_INTF%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `PROC0_INTE0` writer"] -pub struct W(crate::W); +#[doc = "Register `PROC0_INTF%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1516,25 +1516,25 @@ impl W { self } } -#[doc = "Interrupt Enable for proc0 +#[doc = "Interrupt Force for proc%s This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [proc0_inte0](index.html) module"] -pub struct PROC0_INTE0_SPEC; -impl crate::RegisterSpec for PROC0_INTE0_SPEC { +For information about available fields see [proc0_intf](index.html) module"] +pub struct PROC0_INTF_SPEC; +impl crate::RegisterSpec for PROC0_INTF_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [proc0_inte0::R](R) reader structure"] -impl crate::Readable for PROC0_INTE0_SPEC { +#[doc = "`read()` method returns [proc0_intf::R](R) reader structure"] +impl crate::Readable for PROC0_INTF_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [proc0_inte0::W](W) writer structure"] -impl crate::Writable for PROC0_INTE0_SPEC { +#[doc = "`write(|w| ..)` method takes [proc0_intf::W](W) writer structure"] +impl crate::Writable for PROC0_INTF_SPEC { type Writer = W; } -#[doc = "`reset()` method sets PROC0_INTE0 to value 0"] -impl crate::Resettable for PROC0_INTE0_SPEC { +#[doc = "`reset()` method sets PROC0_INTF%s to value 0"] +impl crate::Resettable for PROC0_INTF_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/proc0_intf1.rs b/src/io_bank0/proc0_intf1.rs deleted file mode 100644 index 2dc969cee..000000000 --- a/src/io_bank0/proc0_intf1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC0_INTF1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC0_INTF1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for proc0 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_intf1](index.html) module"] -pub struct PROC0_INTF1_SPEC; -impl crate::RegisterSpec for PROC0_INTF1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_intf1::R](R) reader structure"] -impl crate::Readable for PROC0_INTF1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc0_intf1::W](W) writer structure"] -impl crate::Writable for PROC0_INTF1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC0_INTF1 to value 0"] -impl crate::Resettable for PROC0_INTF1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_intf2.rs b/src/io_bank0/proc0_intf2.rs deleted file mode 100644 index 8bd8a7587..000000000 --- a/src/io_bank0/proc0_intf2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC0_INTF2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC0_INTF2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for proc0 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_intf2](index.html) module"] -pub struct PROC0_INTF2_SPEC; -impl crate::RegisterSpec for PROC0_INTF2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_intf2::R](R) reader structure"] -impl crate::Readable for PROC0_INTF2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc0_intf2::W](W) writer structure"] -impl crate::Writable for PROC0_INTF2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC0_INTF2 to value 0"] -impl crate::Resettable for PROC0_INTF2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_intf3.rs b/src/io_bank0/proc0_intf3.rs deleted file mode 100644 index b253e66e4..000000000 --- a/src/io_bank0/proc0_intf3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `PROC0_INTF3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC0_INTF3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for proc0 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_intf3](index.html) module"] -pub struct PROC0_INTF3_SPEC; -impl crate::RegisterSpec for PROC0_INTF3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_intf3::R](R) reader structure"] -impl crate::Readable for PROC0_INTF3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc0_intf3::W](W) writer structure"] -impl crate::Writable for PROC0_INTF3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC0_INTF3 to value 0"] -impl crate::Resettable for PROC0_INTF3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_ints0.rs b/src/io_bank0/proc0_ints.rs similarity index 96% rename from src/io_bank0/proc0_ints0.rs rename to src/io_bank0/proc0_ints.rs index 0db840268..f9be6e12f 100644 --- a/src/io_bank0/proc0_ints0.rs +++ b/src/io_bank0/proc0_ints.rs @@ -1,15 +1,15 @@ -#[doc = "Register `PROC0_INTS0` reader"] -pub struct R(crate::R); +#[doc = "Register `PROC0_INTS%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } @@ -623,21 +623,21 @@ impl R { GPIO0_LEVEL_LOW_R::new((self.bits & 0x01) != 0) } } -#[doc = "Interrupt status after masking & forcing for proc0 +#[doc = "Interrupt status after masking & forcing for proc%s This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [proc0_ints0](index.html) module"] -pub struct PROC0_INTS0_SPEC; -impl crate::RegisterSpec for PROC0_INTS0_SPEC { +For information about available fields see [proc0_ints](index.html) module"] +pub struct PROC0_INTS_SPEC; +impl crate::RegisterSpec for PROC0_INTS_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [proc0_ints0::R](R) reader structure"] -impl crate::Readable for PROC0_INTS0_SPEC { +#[doc = "`read()` method returns [proc0_ints::R](R) reader structure"] +impl crate::Readable for PROC0_INTS_SPEC { type Reader = R; } -#[doc = "`reset()` method sets PROC0_INTS0 to value 0"] -impl crate::Resettable for PROC0_INTS0_SPEC { +#[doc = "`reset()` method sets PROC0_INTS%s to value 0"] +impl crate::Resettable for PROC0_INTS_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/proc0_ints1.rs b/src/io_bank0/proc0_ints1.rs deleted file mode 100644 index a41790952..000000000 --- a/src/io_bank0/proc0_ints1.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `PROC0_INTS1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for proc0 - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_ints1](index.html) module"] -pub struct PROC0_INTS1_SPEC; -impl crate::RegisterSpec for PROC0_INTS1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_ints1::R](R) reader structure"] -impl crate::Readable for PROC0_INTS1_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets PROC0_INTS1 to value 0"] -impl crate::Resettable for PROC0_INTS1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_ints2.rs b/src/io_bank0/proc0_ints2.rs deleted file mode 100644 index 40cda7564..000000000 --- a/src/io_bank0/proc0_ints2.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `PROC0_INTS2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for proc0 - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_ints2](index.html) module"] -pub struct PROC0_INTS2_SPEC; -impl crate::RegisterSpec for PROC0_INTS2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_ints2::R](R) reader structure"] -impl crate::Readable for PROC0_INTS2_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets PROC0_INTS2 to value 0"] -impl crate::Resettable for PROC0_INTS2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc0_ints3.rs b/src/io_bank0/proc0_ints3.rs deleted file mode 100644 index 8d95fb1b6..000000000 --- a/src/io_bank0/proc0_ints3.rs +++ /dev/null @@ -1,493 +0,0 @@ -#[doc = "Register `PROC0_INTS3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for proc0 - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc0_ints3](index.html) module"] -pub struct PROC0_INTS3_SPEC; -impl crate::RegisterSpec for PROC0_INTS3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc0_ints3::R](R) reader structure"] -impl crate::Readable for PROC0_INTS3_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets PROC0_INTS3 to value 0"] -impl crate::Resettable for PROC0_INTS3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_inte0.rs b/src/io_bank0/proc1_inte.rs similarity index 97% rename from src/io_bank0/proc1_inte0.rs rename to src/io_bank0/proc1_inte.rs index d24ae42f0..8e29e7ce8 100644 --- a/src/io_bank0/proc1_inte0.rs +++ b/src/io_bank0/proc1_inte.rs @@ -1,22 +1,22 @@ -#[doc = "Register `PROC1_INTE0` reader"] -pub struct R(crate::R); +#[doc = "Register `PROC1_INTE%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `PROC1_INTE0` writer"] -pub struct W(crate::W); +#[doc = "Register `PROC1_INTE%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1520,21 +1520,21 @@ impl W { This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [proc1_inte0](index.html) module"] -pub struct PROC1_INTE0_SPEC; -impl crate::RegisterSpec for PROC1_INTE0_SPEC { +For information about available fields see [proc1_inte](index.html) module"] +pub struct PROC1_INTE_SPEC; +impl crate::RegisterSpec for PROC1_INTE_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [proc1_inte0::R](R) reader structure"] -impl crate::Readable for PROC1_INTE0_SPEC { +#[doc = "`read()` method returns [proc1_inte::R](R) reader structure"] +impl crate::Readable for PROC1_INTE_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [proc1_inte0::W](W) writer structure"] -impl crate::Writable for PROC1_INTE0_SPEC { +#[doc = "`write(|w| ..)` method takes [proc1_inte::W](W) writer structure"] +impl crate::Writable for PROC1_INTE_SPEC { type Writer = W; } -#[doc = "`reset()` method sets PROC1_INTE0 to value 0"] -impl crate::Resettable for PROC1_INTE0_SPEC { +#[doc = "`reset()` method sets PROC1_INTE%s to value 0"] +impl crate::Resettable for PROC1_INTE_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/proc1_inte1.rs b/src/io_bank0/proc1_inte1.rs deleted file mode 100644 index 44b9792d3..000000000 --- a/src/io_bank0/proc1_inte1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC1_INTE1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC1_INTE1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for proc1 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_inte1](index.html) module"] -pub struct PROC1_INTE1_SPEC; -impl crate::RegisterSpec for PROC1_INTE1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_inte1::R](R) reader structure"] -impl crate::Readable for PROC1_INTE1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc1_inte1::W](W) writer structure"] -impl crate::Writable for PROC1_INTE1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC1_INTE1 to value 0"] -impl crate::Resettable for PROC1_INTE1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_inte2.rs b/src/io_bank0/proc1_inte2.rs deleted file mode 100644 index bda6034ae..000000000 --- a/src/io_bank0/proc1_inte2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC1_INTE2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC1_INTE2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for proc1 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_inte2](index.html) module"] -pub struct PROC1_INTE2_SPEC; -impl crate::RegisterSpec for PROC1_INTE2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_inte2::R](R) reader structure"] -impl crate::Readable for PROC1_INTE2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc1_inte2::W](W) writer structure"] -impl crate::Writable for PROC1_INTE2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC1_INTE2 to value 0"] -impl crate::Resettable for PROC1_INTE2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_inte3.rs b/src/io_bank0/proc1_inte3.rs deleted file mode 100644 index f292c7c0b..000000000 --- a/src/io_bank0/proc1_inte3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `PROC1_INTE3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC1_INTE3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for proc1 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_inte3](index.html) module"] -pub struct PROC1_INTE3_SPEC; -impl crate::RegisterSpec for PROC1_INTE3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_inte3::R](R) reader structure"] -impl crate::Readable for PROC1_INTE3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc1_inte3::W](W) writer structure"] -impl crate::Writable for PROC1_INTE3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC1_INTE3 to value 0"] -impl crate::Resettable for PROC1_INTE3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_intf0.rs b/src/io_bank0/proc1_intf.rs similarity index 97% rename from src/io_bank0/proc1_intf0.rs rename to src/io_bank0/proc1_intf.rs index dc95967ca..fd88fb2c2 100644 --- a/src/io_bank0/proc1_intf0.rs +++ b/src/io_bank0/proc1_intf.rs @@ -1,22 +1,22 @@ -#[doc = "Register `PROC1_INTF0` reader"] -pub struct R(crate::R); +#[doc = "Register `PROC1_INTF%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `PROC1_INTF0` writer"] -pub struct W(crate::W); +#[doc = "Register `PROC1_INTF%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1520,21 +1520,21 @@ impl W { This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [proc1_intf0](index.html) module"] -pub struct PROC1_INTF0_SPEC; -impl crate::RegisterSpec for PROC1_INTF0_SPEC { +For information about available fields see [proc1_intf](index.html) module"] +pub struct PROC1_INTF_SPEC; +impl crate::RegisterSpec for PROC1_INTF_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [proc1_intf0::R](R) reader structure"] -impl crate::Readable for PROC1_INTF0_SPEC { +#[doc = "`read()` method returns [proc1_intf::R](R) reader structure"] +impl crate::Readable for PROC1_INTF_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [proc1_intf0::W](W) writer structure"] -impl crate::Writable for PROC1_INTF0_SPEC { +#[doc = "`write(|w| ..)` method takes [proc1_intf::W](W) writer structure"] +impl crate::Writable for PROC1_INTF_SPEC { type Writer = W; } -#[doc = "`reset()` method sets PROC1_INTF0 to value 0"] -impl crate::Resettable for PROC1_INTF0_SPEC { +#[doc = "`reset()` method sets PROC1_INTF%s to value 0"] +impl crate::Resettable for PROC1_INTF_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/proc1_intf1.rs b/src/io_bank0/proc1_intf1.rs deleted file mode 100644 index e4ff0871f..000000000 --- a/src/io_bank0/proc1_intf1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC1_INTF1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC1_INTF1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for proc1 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_intf1](index.html) module"] -pub struct PROC1_INTF1_SPEC; -impl crate::RegisterSpec for PROC1_INTF1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_intf1::R](R) reader structure"] -impl crate::Readable for PROC1_INTF1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc1_intf1::W](W) writer structure"] -impl crate::Writable for PROC1_INTF1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC1_INTF1 to value 0"] -impl crate::Resettable for PROC1_INTF1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_intf2.rs b/src/io_bank0/proc1_intf2.rs deleted file mode 100644 index 7ec48ac03..000000000 --- a/src/io_bank0/proc1_intf2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `PROC1_INTF2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC1_INTF2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for proc1 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_intf2](index.html) module"] -pub struct PROC1_INTF2_SPEC; -impl crate::RegisterSpec for PROC1_INTF2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_intf2::R](R) reader structure"] -impl crate::Readable for PROC1_INTF2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc1_intf2::W](W) writer structure"] -impl crate::Writable for PROC1_INTF2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC1_INTF2 to value 0"] -impl crate::Resettable for PROC1_INTF2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_intf3.rs b/src/io_bank0/proc1_intf3.rs deleted file mode 100644 index a10579447..000000000 --- a/src/io_bank0/proc1_intf3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `PROC1_INTF3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `PROC1_INTF3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for proc1 - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_intf3](index.html) module"] -pub struct PROC1_INTF3_SPEC; -impl crate::RegisterSpec for PROC1_INTF3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_intf3::R](R) reader structure"] -impl crate::Readable for PROC1_INTF3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [proc1_intf3::W](W) writer structure"] -impl crate::Writable for PROC1_INTF3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets PROC1_INTF3 to value 0"] -impl crate::Resettable for PROC1_INTF3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_ints0.rs b/src/io_bank0/proc1_ints.rs similarity index 96% rename from src/io_bank0/proc1_ints0.rs rename to src/io_bank0/proc1_ints.rs index f9c33b4a8..f3b6aded3 100644 --- a/src/io_bank0/proc1_ints0.rs +++ b/src/io_bank0/proc1_ints.rs @@ -1,15 +1,15 @@ -#[doc = "Register `PROC1_INTS0` reader"] -pub struct R(crate::R); +#[doc = "Register `PROC1_INTS%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } @@ -627,17 +627,17 @@ impl R { This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [proc1_ints0](index.html) module"] -pub struct PROC1_INTS0_SPEC; -impl crate::RegisterSpec for PROC1_INTS0_SPEC { +For information about available fields see [proc1_ints](index.html) module"] +pub struct PROC1_INTS_SPEC; +impl crate::RegisterSpec for PROC1_INTS_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [proc1_ints0::R](R) reader structure"] -impl crate::Readable for PROC1_INTS0_SPEC { +#[doc = "`read()` method returns [proc1_ints::R](R) reader structure"] +impl crate::Readable for PROC1_INTS_SPEC { type Reader = R; } -#[doc = "`reset()` method sets PROC1_INTS0 to value 0"] -impl crate::Resettable for PROC1_INTS0_SPEC { +#[doc = "`reset()` method sets PROC1_INTS%s to value 0"] +impl crate::Resettable for PROC1_INTS_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/proc1_ints1.rs b/src/io_bank0/proc1_ints1.rs deleted file mode 100644 index de8a9c984..000000000 --- a/src/io_bank0/proc1_ints1.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `PROC1_INTS1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for proc1 - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_ints1](index.html) module"] -pub struct PROC1_INTS1_SPEC; -impl crate::RegisterSpec for PROC1_INTS1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_ints1::R](R) reader structure"] -impl crate::Readable for PROC1_INTS1_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets PROC1_INTS1 to value 0"] -impl crate::Resettable for PROC1_INTS1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_ints2.rs b/src/io_bank0/proc1_ints2.rs deleted file mode 100644 index 1cdb3637d..000000000 --- a/src/io_bank0/proc1_ints2.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `PROC1_INTS2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for proc1 - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_ints2](index.html) module"] -pub struct PROC1_INTS2_SPEC; -impl crate::RegisterSpec for PROC1_INTS2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_ints2::R](R) reader structure"] -impl crate::Readable for PROC1_INTS2_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets PROC1_INTS2 to value 0"] -impl crate::Resettable for PROC1_INTS2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/proc1_ints3.rs b/src/io_bank0/proc1_ints3.rs deleted file mode 100644 index 161496d80..000000000 --- a/src/io_bank0/proc1_ints3.rs +++ /dev/null @@ -1,493 +0,0 @@ -#[doc = "Register `PROC1_INTS3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for proc1 - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [proc1_ints3](index.html) module"] -pub struct PROC1_INTS3_SPEC; -impl crate::RegisterSpec for PROC1_INTS3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [proc1_ints3::R](R) reader structure"] -impl crate::Readable for PROC1_INTS3_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets PROC1_INTS3 to value 0"] -impl crate::Resettable for PROC1_INTS3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} From 7dc5bdca350687611f2d34cf1f9cbf0bc5875b99 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:50:35 +1100 Subject: [PATCH 4/7] Fix up access and modifiers on IO_BANK0::INTR3 --- svd/rp2040.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/svd/rp2040.yaml b/svd/rp2040.yaml index 310ac3fc2..deee4d207 100644 --- a/svd/rp2040.yaml +++ b/svd/rp2040.yaml @@ -188,34 +188,38 @@ IO_BANK0: bitOffset: 31 bitWidth: 1 access: read-write + modifiedWriteValues: oneToClear GPIO31_EDGE_LOW: bitOffset: 30 bitWidth: 1 access: read-write + modifiedWriteValues: oneToClear GPIO31_LEVEL_HIGH: bitOffset: 29 bitWidth: 1 - access: read-write + access: read-only GPIO31_LEVEL_LOW: bitOffset: 28 bitWidth: 1 - access: read-write + access: read-only GPIO30_EDGE_HIGH: bitOffset: 27 bitWidth: 1 access: read-write + modifiedWriteValues: oneToClear GPIO30_EDGE_LOW: bitOffset: 26 bitWidth: 1 access: read-write + modifiedWriteValues: oneToClear GPIO30_LEVEL_HIGH: bitOffset: 25 bitWidth: 1 - access: read-write + access: read-only GPIO30_LEVEL_LOW: bitOffset: 24 bitWidth: 1 - access: read-write + access: read-only PROC0_INTE3: _add: GPIO31_EDGE_HIGH: From ad6b2632c513e423c66776892c3e20f33ac5dc91 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:52:09 +1100 Subject: [PATCH 5/7] Arrayify DORMANT_WAKE_* interrupts as well --- svd/rp2040.yaml | 107 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/svd/rp2040.yaml b/svd/rp2040.yaml index deee4d207..7e66924c8 100644 --- a/svd/rp2040.yaml +++ b/svd/rp2040.yaml @@ -425,7 +425,110 @@ IO_BANK0: bitOffset: 24 bitWidth: 1 access: read-only + DORMANT_WAKE_INTE3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + DORMANT_WAKE_INTF3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-write + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-write + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-write + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-write + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-write + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-write + + DORMANT_WAKE_INTS3: + _add: + GPIO31_EDGE_HIGH: + bitOffset: 31 + bitWidth: 1 + access: read-only + GPIO31_EDGE_LOW: + bitOffset: 30 + bitWidth: 1 + access: read-only + GPIO31_LEVEL_HIGH: + bitOffset: 29 + bitWidth: 1 + access: read-only + GPIO31_LEVEL_LOW: + bitOffset: 28 + bitWidth: 1 + access: read-only + GPIO30_EDGE_HIGH: + bitOffset: 27 + bitWidth: 1 + access: read-only + GPIO30_EDGE_LOW: + bitOffset: 26 + bitWidth: 1 + access: read-only + GPIO30_LEVEL_HIGH: + bitOffset: 25 + bitWidth: 1 + access: read-only + GPIO30_LEVEL_LOW: + bitOffset: 24 + bitWidth: 1 + access: read-only _array: "INTR*": {} @@ -435,7 +538,9 @@ IO_BANK0: "PROC1_INTE*": {} "PROC1_INTF*": {} "PROC1_INTS*": {} - + "DORMANT_WAKE_INTE*": {} + "DORMANT_WAKE_INTF*": {} + "DORMANT_WAKE_INTS*": {} _cluster: "GPIO%s": From 62270196dec6336f8f716397de0c4abe4eecc6f3 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:54:02 +1100 Subject: [PATCH 6/7] Add patched svd --- svd/rp2040.svd.patched | 1598 +++------------------------------------- 1 file changed, 103 insertions(+), 1495 deletions(-) diff --git a/svd/rp2040.svd.patched b/svd/rp2040.svd.patched index f1bb06b58..61e8e0cb2 100644 --- a/svd/rp2040.svd.patched +++ b/svd/rp2040.svd.patched @@ -5499,7 +5499,7 @@ - DORMANT_WAKE_INTE0 + 40x40,1,2,3DORMANT_WAKE_INTE%s Interrupt Enable for dormant_wake 0x0160 0x00000000 @@ -5667,1734 +5667,342 @@ - DORMANT_WAKE_INTE1 - Interrupt Enable for dormant_wake - 0x0164 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-write - - - GPIO15_EDGE_LOW - [30:30] - read-write - - - GPIO15_LEVEL_HIGH - [29:29] - read-write - - - GPIO15_LEVEL_LOW - [28:28] - read-write - - - GPIO14_EDGE_HIGH - [27:27] - read-write - - - GPIO14_EDGE_LOW - [26:26] - read-write - - - GPIO14_LEVEL_HIGH - [25:25] - read-write - - - GPIO14_LEVEL_LOW - [24:24] - read-write - - - GPIO13_EDGE_HIGH - [23:23] - read-write - - - GPIO13_EDGE_LOW - [22:22] - read-write - - - GPIO13_LEVEL_HIGH - [21:21] - read-write - - - GPIO13_LEVEL_LOW - [20:20] - read-write - - - GPIO12_EDGE_HIGH - [19:19] - read-write - - - GPIO12_EDGE_LOW - [18:18] - read-write - - - GPIO12_LEVEL_HIGH - [17:17] - read-write - - - GPIO12_LEVEL_LOW - [16:16] - read-write - - - GPIO11_EDGE_HIGH - [15:15] - read-write - - - GPIO11_EDGE_LOW - [14:14] - read-write - - - GPIO11_LEVEL_HIGH - [13:13] - read-write - - - GPIO11_LEVEL_LOW - [12:12] - read-write - - - GPIO10_EDGE_HIGH - [11:11] - read-write - - - GPIO10_EDGE_LOW - [10:10] - read-write - - - GPIO10_LEVEL_HIGH - [9:9] - read-write - - - GPIO10_LEVEL_LOW - [8:8] - read-write - - - GPIO9_EDGE_HIGH - [7:7] - read-write - - - GPIO9_EDGE_LOW - [6:6] - read-write - - - GPIO9_LEVEL_HIGH - [5:5] - read-write - - - GPIO9_LEVEL_LOW - [4:4] - read-write - - - GPIO8_EDGE_HIGH - [3:3] - read-write - - - GPIO8_EDGE_LOW - [2:2] - read-write - - - GPIO8_LEVEL_HIGH - [1:1] - read-write - - - GPIO8_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTE2 - Interrupt Enable for dormant_wake - 0x0168 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-write - - - GPIO23_EDGE_LOW - [30:30] - read-write - - - GPIO23_LEVEL_HIGH - [29:29] - read-write - - - GPIO23_LEVEL_LOW - [28:28] - read-write - - - GPIO22_EDGE_HIGH - [27:27] - read-write - - - GPIO22_EDGE_LOW - [26:26] - read-write - - - GPIO22_LEVEL_HIGH - [25:25] - read-write - - - GPIO22_LEVEL_LOW - [24:24] - read-write - - - GPIO21_EDGE_HIGH - [23:23] - read-write - - - GPIO21_EDGE_LOW - [22:22] - read-write - - - GPIO21_LEVEL_HIGH - [21:21] - read-write - - - GPIO21_LEVEL_LOW - [20:20] - read-write - - - GPIO20_EDGE_HIGH - [19:19] - read-write - - - GPIO20_EDGE_LOW - [18:18] - read-write - - - GPIO20_LEVEL_HIGH - [17:17] - read-write - - - GPIO20_LEVEL_LOW - [16:16] - read-write - - - GPIO19_EDGE_HIGH - [15:15] - read-write - - - GPIO19_EDGE_LOW - [14:14] - read-write - - - GPIO19_LEVEL_HIGH - [13:13] - read-write - - - GPIO19_LEVEL_LOW - [12:12] - read-write - - - GPIO18_EDGE_HIGH - [11:11] - read-write - - - GPIO18_EDGE_LOW - [10:10] - read-write - - - GPIO18_LEVEL_HIGH - [9:9] - read-write - - - GPIO18_LEVEL_LOW - [8:8] - read-write - - - GPIO17_EDGE_HIGH - [7:7] - read-write - - - GPIO17_EDGE_LOW - [6:6] - read-write - - - GPIO17_LEVEL_HIGH - [5:5] - read-write - - - GPIO17_LEVEL_LOW - [4:4] - read-write - - - GPIO16_EDGE_HIGH - [3:3] - read-write - - - GPIO16_EDGE_LOW - [2:2] - read-write - - - GPIO16_LEVEL_HIGH - [1:1] - read-write - - - GPIO16_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTE3 - Interrupt Enable for dormant_wake - 0x016c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-write - - - GPIO29_EDGE_LOW - [22:22] - read-write - - - GPIO29_LEVEL_HIGH - [21:21] - read-write - - - GPIO29_LEVEL_LOW - [20:20] - read-write - - - GPIO28_EDGE_HIGH - [19:19] - read-write - - - GPIO28_EDGE_LOW - [18:18] - read-write - - - GPIO28_LEVEL_HIGH - [17:17] - read-write - - - GPIO28_LEVEL_LOW - [16:16] - read-write - - - GPIO27_EDGE_HIGH - [15:15] - read-write - - - GPIO27_EDGE_LOW - [14:14] - read-write - - - GPIO27_LEVEL_HIGH - [13:13] - read-write - - - GPIO27_LEVEL_LOW - [12:12] - read-write - - - GPIO26_EDGE_HIGH - [11:11] - read-write - - - GPIO26_EDGE_LOW - [10:10] - read-write - - - GPIO26_LEVEL_HIGH - [9:9] - read-write - - - GPIO26_LEVEL_LOW - [8:8] - read-write - - - GPIO25_EDGE_HIGH - [7:7] - read-write - - - GPIO25_EDGE_LOW - [6:6] - read-write - - - GPIO25_LEVEL_HIGH - [5:5] - read-write - - - GPIO25_LEVEL_LOW - [4:4] - read-write - - - GPIO24_EDGE_HIGH - [3:3] - read-write - - - GPIO24_EDGE_LOW - [2:2] - read-write - - - GPIO24_LEVEL_HIGH - [1:1] - read-write - - - GPIO24_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTF0 - Interrupt Force for dormant_wake - 0x0170 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-write - - - GPIO7_EDGE_LOW - [30:30] - read-write - - - GPIO7_LEVEL_HIGH - [29:29] - read-write - - - GPIO7_LEVEL_LOW - [28:28] - read-write - - - GPIO6_EDGE_HIGH - [27:27] - read-write - - - GPIO6_EDGE_LOW - [26:26] - read-write - - - GPIO6_LEVEL_HIGH - [25:25] - read-write - - - GPIO6_LEVEL_LOW - [24:24] - read-write - - - GPIO5_EDGE_HIGH - [23:23] - read-write - - - GPIO5_EDGE_LOW - [22:22] - read-write - - - GPIO5_LEVEL_HIGH - [21:21] - read-write - - - GPIO5_LEVEL_LOW - [20:20] - read-write - - - GPIO4_EDGE_HIGH - [19:19] - read-write - - - GPIO4_EDGE_LOW - [18:18] - read-write - - - GPIO4_LEVEL_HIGH - [17:17] - read-write - - - GPIO4_LEVEL_LOW - [16:16] - read-write - - - GPIO3_EDGE_HIGH - [15:15] - read-write - - - GPIO3_EDGE_LOW - [14:14] - read-write - - - GPIO3_LEVEL_HIGH - [13:13] - read-write - - - GPIO3_LEVEL_LOW - [12:12] - read-write - - - GPIO2_EDGE_HIGH - [11:11] - read-write - - - GPIO2_EDGE_LOW - [10:10] - read-write - - - GPIO2_LEVEL_HIGH - [9:9] - read-write - - - GPIO2_LEVEL_LOW - [8:8] - read-write - - - GPIO1_EDGE_HIGH - [7:7] - read-write - - - GPIO1_EDGE_LOW - [6:6] - read-write - - - GPIO1_LEVEL_HIGH - [5:5] - read-write - - - GPIO1_LEVEL_LOW - [4:4] - read-write - - - GPIO0_EDGE_HIGH - [3:3] - read-write - - - GPIO0_EDGE_LOW - [2:2] - read-write - - - GPIO0_LEVEL_HIGH - [1:1] - read-write - - - GPIO0_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTF1 - Interrupt Force for dormant_wake - 0x0174 - 0x00000000 - - - GPIO15_EDGE_HIGH - [31:31] - read-write - - - GPIO15_EDGE_LOW - [30:30] - read-write - - - GPIO15_LEVEL_HIGH - [29:29] - read-write - - - GPIO15_LEVEL_LOW - [28:28] - read-write - - - GPIO14_EDGE_HIGH - [27:27] - read-write - - - GPIO14_EDGE_LOW - [26:26] - read-write - - - GPIO14_LEVEL_HIGH - [25:25] - read-write - - - GPIO14_LEVEL_LOW - [24:24] - read-write - - - GPIO13_EDGE_HIGH - [23:23] - read-write - - - GPIO13_EDGE_LOW - [22:22] - read-write - - - GPIO13_LEVEL_HIGH - [21:21] - read-write - - - GPIO13_LEVEL_LOW - [20:20] - read-write - - - GPIO12_EDGE_HIGH - [19:19] - read-write - - - GPIO12_EDGE_LOW - [18:18] - read-write - - - GPIO12_LEVEL_HIGH - [17:17] - read-write - - - GPIO12_LEVEL_LOW - [16:16] - read-write - - - GPIO11_EDGE_HIGH - [15:15] - read-write - - - GPIO11_EDGE_LOW - [14:14] - read-write - - - GPIO11_LEVEL_HIGH - [13:13] - read-write - - - GPIO11_LEVEL_LOW - [12:12] - read-write - - - GPIO10_EDGE_HIGH - [11:11] - read-write - - - GPIO10_EDGE_LOW - [10:10] - read-write - - - GPIO10_LEVEL_HIGH - [9:9] - read-write - - - GPIO10_LEVEL_LOW - [8:8] - read-write - - - GPIO9_EDGE_HIGH - [7:7] - read-write - - - GPIO9_EDGE_LOW - [6:6] - read-write - - - GPIO9_LEVEL_HIGH - [5:5] - read-write - - - GPIO9_LEVEL_LOW - [4:4] - read-write - - - GPIO8_EDGE_HIGH - [3:3] - read-write - - - GPIO8_EDGE_LOW - [2:2] - read-write - - - GPIO8_LEVEL_HIGH - [1:1] - read-write - - - GPIO8_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTF2 - Interrupt Force for dormant_wake - 0x0178 - 0x00000000 - - - GPIO23_EDGE_HIGH - [31:31] - read-write - - - GPIO23_EDGE_LOW - [30:30] - read-write - - - GPIO23_LEVEL_HIGH - [29:29] - read-write - - - GPIO23_LEVEL_LOW - [28:28] - read-write - - - GPIO22_EDGE_HIGH - [27:27] - read-write - - - GPIO22_EDGE_LOW - [26:26] - read-write - - - GPIO22_LEVEL_HIGH - [25:25] - read-write - - - GPIO22_LEVEL_LOW - [24:24] - read-write - - - GPIO21_EDGE_HIGH - [23:23] - read-write - - - GPIO21_EDGE_LOW - [22:22] - read-write - - - GPIO21_LEVEL_HIGH - [21:21] - read-write - - - GPIO21_LEVEL_LOW - [20:20] - read-write - - - GPIO20_EDGE_HIGH - [19:19] - read-write - - - GPIO20_EDGE_LOW - [18:18] - read-write - - - GPIO20_LEVEL_HIGH - [17:17] - read-write - - - GPIO20_LEVEL_LOW - [16:16] - read-write - - - GPIO19_EDGE_HIGH - [15:15] - read-write - - - GPIO19_EDGE_LOW - [14:14] - read-write - - - GPIO19_LEVEL_HIGH - [13:13] - read-write - - - GPIO19_LEVEL_LOW - [12:12] - read-write - - - GPIO18_EDGE_HIGH - [11:11] - read-write - - - GPIO18_EDGE_LOW - [10:10] - read-write - - - GPIO18_LEVEL_HIGH - [9:9] - read-write - - - GPIO18_LEVEL_LOW - [8:8] - read-write - - - GPIO17_EDGE_HIGH - [7:7] - read-write - - - GPIO17_EDGE_LOW - [6:6] - read-write - - - GPIO17_LEVEL_HIGH - [5:5] - read-write - - - GPIO17_LEVEL_LOW - [4:4] - read-write - - - GPIO16_EDGE_HIGH - [3:3] - read-write - - - GPIO16_EDGE_LOW - [2:2] - read-write - - - GPIO16_LEVEL_HIGH - [1:1] - read-write - - - GPIO16_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTF3 - Interrupt Force for dormant_wake - 0x017c - 0x00000000 - - - GPIO29_EDGE_HIGH - [23:23] - read-write - - - GPIO29_EDGE_LOW - [22:22] - read-write - - - GPIO29_LEVEL_HIGH - [21:21] - read-write - - - GPIO29_LEVEL_LOW - [20:20] - read-write - - - GPIO28_EDGE_HIGH - [19:19] - read-write - - - GPIO28_EDGE_LOW - [18:18] - read-write - - - GPIO28_LEVEL_HIGH - [17:17] - read-write - - - GPIO28_LEVEL_LOW - [16:16] - read-write - - - GPIO27_EDGE_HIGH - [15:15] - read-write - - - GPIO27_EDGE_LOW - [14:14] - read-write - - - GPIO27_LEVEL_HIGH - [13:13] - read-write - - - GPIO27_LEVEL_LOW - [12:12] - read-write - - - GPIO26_EDGE_HIGH - [11:11] - read-write - - - GPIO26_EDGE_LOW - [10:10] - read-write - - - GPIO26_LEVEL_HIGH - [9:9] - read-write - - - GPIO26_LEVEL_LOW - [8:8] - read-write - - - GPIO25_EDGE_HIGH - [7:7] - read-write - - - GPIO25_EDGE_LOW - [6:6] - read-write - - - GPIO25_LEVEL_HIGH - [5:5] - read-write - - - GPIO25_LEVEL_LOW - [4:4] - read-write - - - GPIO24_EDGE_HIGH - [3:3] - read-write - - - GPIO24_EDGE_LOW - [2:2] - read-write - - - GPIO24_LEVEL_HIGH - [1:1] - read-write - - - GPIO24_LEVEL_LOW - [0:0] - read-write - - - - - DORMANT_WAKE_INTS0 - Interrupt status after masking & forcing for dormant_wake - 0x0180 - 0x00000000 - - - GPIO7_EDGE_HIGH - [31:31] - read-only - - - GPIO7_EDGE_LOW - [30:30] - read-only - - - GPIO7_LEVEL_HIGH - [29:29] - read-only - - - GPIO7_LEVEL_LOW - [28:28] - read-only - - - GPIO6_EDGE_HIGH - [27:27] - read-only - - - GPIO6_EDGE_LOW - [26:26] - read-only - - - GPIO6_LEVEL_HIGH - [25:25] - read-only - - - GPIO6_LEVEL_LOW - [24:24] - read-only - - - GPIO5_EDGE_HIGH - [23:23] - read-only - - - GPIO5_EDGE_LOW - [22:22] - read-only - - - GPIO5_LEVEL_HIGH - [21:21] - read-only - - - GPIO5_LEVEL_LOW - [20:20] - read-only - - - GPIO4_EDGE_HIGH - [19:19] - read-only - - - GPIO4_EDGE_LOW - [18:18] - read-only - - - GPIO4_LEVEL_HIGH - [17:17] - read-only - - - GPIO4_LEVEL_LOW - [16:16] - read-only - - - GPIO3_EDGE_HIGH - [15:15] - read-only - - - GPIO3_EDGE_LOW - [14:14] - read-only - - - GPIO3_LEVEL_HIGH - [13:13] - read-only - - - GPIO3_LEVEL_LOW - [12:12] - read-only - - - GPIO2_EDGE_HIGH - [11:11] - read-only - - - GPIO2_EDGE_LOW - [10:10] - read-only - - - GPIO2_LEVEL_HIGH - [9:9] - read-only - - - GPIO2_LEVEL_LOW - [8:8] - read-only - - - GPIO1_EDGE_HIGH - [7:7] - read-only - - - GPIO1_EDGE_LOW - [6:6] - read-only - - - GPIO1_LEVEL_HIGH - [5:5] - read-only - - - GPIO1_LEVEL_LOW - [4:4] - read-only - - - GPIO0_EDGE_HIGH - [3:3] - read-only - - - GPIO0_EDGE_LOW - [2:2] - read-only - - - GPIO0_LEVEL_HIGH - [1:1] - read-only - - - GPIO0_LEVEL_LOW - [0:0] - read-only - - - - - DORMANT_WAKE_INTS1 - Interrupt status after masking & forcing for dormant_wake - 0x0184 + 40x40,1,2,3DORMANT_WAKE_INTF%s + Interrupt Force for dormant_wake + 0x0170 0x00000000 - GPIO15_EDGE_HIGH + GPIO7_EDGE_HIGH [31:31] - read-only + read-write - GPIO15_EDGE_LOW + GPIO7_EDGE_LOW [30:30] - read-only + read-write - GPIO15_LEVEL_HIGH + GPIO7_LEVEL_HIGH [29:29] - read-only + read-write - GPIO15_LEVEL_LOW + GPIO7_LEVEL_LOW [28:28] - read-only + read-write - GPIO14_EDGE_HIGH + GPIO6_EDGE_HIGH [27:27] - read-only + read-write - GPIO14_EDGE_LOW + GPIO6_EDGE_LOW [26:26] - read-only + read-write - GPIO14_LEVEL_HIGH + GPIO6_LEVEL_HIGH [25:25] - read-only + read-write - GPIO14_LEVEL_LOW + GPIO6_LEVEL_LOW [24:24] - read-only + read-write - GPIO13_EDGE_HIGH + GPIO5_EDGE_HIGH [23:23] - read-only + read-write - GPIO13_EDGE_LOW + GPIO5_EDGE_LOW [22:22] - read-only + read-write - GPIO13_LEVEL_HIGH + GPIO5_LEVEL_HIGH [21:21] - read-only + read-write - GPIO13_LEVEL_LOW + GPIO5_LEVEL_LOW [20:20] - read-only + read-write - GPIO12_EDGE_HIGH + GPIO4_EDGE_HIGH [19:19] - read-only + read-write - GPIO12_EDGE_LOW + GPIO4_EDGE_LOW [18:18] - read-only + read-write - GPIO12_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] - read-only + read-write - GPIO12_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] - read-only + read-write - GPIO11_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] - read-only + read-write - GPIO11_EDGE_LOW + GPIO3_EDGE_LOW [14:14] - read-only + read-write - GPIO11_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] - read-only + read-write - GPIO11_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] - read-only + read-write - GPIO10_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] - read-only + read-write - GPIO10_EDGE_LOW + GPIO2_EDGE_LOW [10:10] - read-only + read-write - GPIO10_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] - read-only + read-write - GPIO10_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] - read-only + read-write - GPIO9_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] - read-only + read-write - GPIO9_EDGE_LOW + GPIO1_EDGE_LOW [6:6] - read-only + read-write - GPIO9_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] - read-only + read-write - GPIO9_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] - read-only + read-write - GPIO8_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] - read-only + read-write - GPIO8_EDGE_LOW + GPIO0_EDGE_LOW [2:2] - read-only + read-write - GPIO8_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] - read-only + read-write - GPIO8_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] - read-only + read-write - DORMANT_WAKE_INTS2 + 40x40,1,2,3DORMANT_WAKE_INTS%s Interrupt status after masking & forcing for dormant_wake - 0x0188 + 0x0180 0x00000000 - GPIO23_EDGE_HIGH + GPIO7_EDGE_HIGH [31:31] read-only - GPIO23_EDGE_LOW + GPIO7_EDGE_LOW [30:30] read-only - GPIO23_LEVEL_HIGH + GPIO7_LEVEL_HIGH [29:29] read-only - GPIO23_LEVEL_LOW + GPIO7_LEVEL_LOW [28:28] read-only - GPIO22_EDGE_HIGH + GPIO6_EDGE_HIGH [27:27] read-only - GPIO22_EDGE_LOW + GPIO6_EDGE_LOW [26:26] read-only - GPIO22_LEVEL_HIGH + GPIO6_LEVEL_HIGH [25:25] read-only - GPIO22_LEVEL_LOW + GPIO6_LEVEL_LOW [24:24] read-only - GPIO21_EDGE_HIGH - [23:23] - read-only - - - GPIO21_EDGE_LOW - [22:22] - read-only - - - GPIO21_LEVEL_HIGH - [21:21] - read-only - - - GPIO21_LEVEL_LOW - [20:20] - read-only - - - GPIO20_EDGE_HIGH - [19:19] - read-only - - - GPIO20_EDGE_LOW - [18:18] - read-only - - - GPIO20_LEVEL_HIGH - [17:17] - read-only - - - GPIO20_LEVEL_LOW - [16:16] - read-only - - - GPIO19_EDGE_HIGH - [15:15] - read-only - - - GPIO19_EDGE_LOW - [14:14] - read-only - - - GPIO19_LEVEL_HIGH - [13:13] - read-only - - - GPIO19_LEVEL_LOW - [12:12] - read-only - - - GPIO18_EDGE_HIGH - [11:11] - read-only - - - GPIO18_EDGE_LOW - [10:10] - read-only - - - GPIO18_LEVEL_HIGH - [9:9] - read-only - - - GPIO18_LEVEL_LOW - [8:8] - read-only - - - GPIO17_EDGE_HIGH - [7:7] - read-only - - - GPIO17_EDGE_LOW - [6:6] - read-only - - - GPIO17_LEVEL_HIGH - [5:5] - read-only - - - GPIO17_LEVEL_LOW - [4:4] - read-only - - - GPIO16_EDGE_HIGH - [3:3] - read-only - - - GPIO16_EDGE_LOW - [2:2] - read-only - - - GPIO16_LEVEL_HIGH - [1:1] - read-only - - - GPIO16_LEVEL_LOW - [0:0] - read-only - - - - - DORMANT_WAKE_INTS3 - Interrupt status after masking & forcing for dormant_wake - 0x018c - 0x00000000 - - - GPIO29_EDGE_HIGH + GPIO5_EDGE_HIGH [23:23] read-only - GPIO29_EDGE_LOW + GPIO5_EDGE_LOW [22:22] read-only - GPIO29_LEVEL_HIGH + GPIO5_LEVEL_HIGH [21:21] read-only - GPIO29_LEVEL_LOW + GPIO5_LEVEL_LOW [20:20] read-only - GPIO28_EDGE_HIGH + GPIO4_EDGE_HIGH [19:19] read-only - GPIO28_EDGE_LOW + GPIO4_EDGE_LOW [18:18] read-only - GPIO28_LEVEL_HIGH + GPIO4_LEVEL_HIGH [17:17] read-only - GPIO28_LEVEL_LOW + GPIO4_LEVEL_LOW [16:16] read-only - GPIO27_EDGE_HIGH + GPIO3_EDGE_HIGH [15:15] read-only - GPIO27_EDGE_LOW + GPIO3_EDGE_LOW [14:14] read-only - GPIO27_LEVEL_HIGH + GPIO3_LEVEL_HIGH [13:13] read-only - GPIO27_LEVEL_LOW + GPIO3_LEVEL_LOW [12:12] read-only - GPIO26_EDGE_HIGH + GPIO2_EDGE_HIGH [11:11] read-only - GPIO26_EDGE_LOW + GPIO2_EDGE_LOW [10:10] read-only - GPIO26_LEVEL_HIGH + GPIO2_LEVEL_HIGH [9:9] read-only - GPIO26_LEVEL_LOW + GPIO2_LEVEL_LOW [8:8] read-only - GPIO25_EDGE_HIGH + GPIO1_EDGE_HIGH [7:7] read-only - GPIO25_EDGE_LOW + GPIO1_EDGE_LOW [6:6] read-only - GPIO25_LEVEL_HIGH + GPIO1_LEVEL_HIGH [5:5] read-only - GPIO25_LEVEL_LOW + GPIO1_LEVEL_LOW [4:4] read-only - GPIO24_EDGE_HIGH + GPIO0_EDGE_HIGH [3:3] read-only - GPIO24_EDGE_LOW + GPIO0_EDGE_LOW [2:2] read-only - GPIO24_LEVEL_HIGH + GPIO0_LEVEL_HIGH [1:1] read-only - GPIO24_LEVEL_LOW + GPIO0_LEVEL_LOW [0:0] read-only - + IO_QSPI From 40e4546ea7a94da9831a483023929dd74850d029 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:54:26 +1100 Subject: [PATCH 7/7] Add generated files --- src/io_bank0.rs | 84 +- ...ant_wake_inte0.rs => dormant_wake_inte.rs} | 38 +- src/io_bank0/dormant_wake_inte1.rs | 1542 ----------------- src/io_bank0/dormant_wake_inte2.rs | 1542 ----------------- src/io_bank0/dormant_wake_inte3.rs | 1174 ------------- ...ant_wake_intf0.rs => dormant_wake_intf.rs} | 38 +- src/io_bank0/dormant_wake_intf1.rs | 1542 ----------------- src/io_bank0/dormant_wake_intf2.rs | 1542 ----------------- src/io_bank0/dormant_wake_intf3.rs | 1174 ------------- ...ant_wake_ints0.rs => dormant_wake_ints.rs} | 24 +- src/io_bank0/dormant_wake_ints1.rs | 645 ------- src/io_bank0/dormant_wake_ints2.rs | 645 ------- src/io_bank0/dormant_wake_ints3.rs | 493 ------ 13 files changed, 65 insertions(+), 10418 deletions(-) rename src/io_bank0/{dormant_wake_inte0.rs => dormant_wake_inte.rs} (97%) delete mode 100644 src/io_bank0/dormant_wake_inte1.rs delete mode 100644 src/io_bank0/dormant_wake_inte2.rs delete mode 100644 src/io_bank0/dormant_wake_inte3.rs rename src/io_bank0/{dormant_wake_intf0.rs => dormant_wake_intf.rs} (97%) delete mode 100644 src/io_bank0/dormant_wake_intf1.rs delete mode 100644 src/io_bank0/dormant_wake_intf2.rs delete mode 100644 src/io_bank0/dormant_wake_intf3.rs rename src/io_bank0/{dormant_wake_ints0.rs => dormant_wake_ints.rs} (96%) delete mode 100644 src/io_bank0/dormant_wake_ints1.rs delete mode 100644 src/io_bank0/dormant_wake_ints2.rs delete mode 100644 src/io_bank0/dormant_wake_ints3.rs diff --git a/src/io_bank0.rs b/src/io_bank0.rs index 730aa924e..4644974e4 100644 --- a/src/io_bank0.rs +++ b/src/io_bank0.rs @@ -17,30 +17,12 @@ pub struct RegisterBlock { pub proc1_intf: [crate::Reg; 4], #[doc = "0x150..0x160 - Interrupt status after masking & forcing for proc1"] pub proc1_ints: [crate::Reg; 4], - #[doc = "0x160 - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte0: crate::Reg, - #[doc = "0x164 - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte1: crate::Reg, - #[doc = "0x168 - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte2: crate::Reg, - #[doc = "0x16c - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte3: crate::Reg, - #[doc = "0x170 - Interrupt Force for dormant_wake"] - pub dormant_wake_intf0: crate::Reg, - #[doc = "0x174 - Interrupt Force for dormant_wake"] - pub dormant_wake_intf1: crate::Reg, - #[doc = "0x178 - Interrupt Force for dormant_wake"] - pub dormant_wake_intf2: crate::Reg, - #[doc = "0x17c - Interrupt Force for dormant_wake"] - pub dormant_wake_intf3: crate::Reg, - #[doc = "0x180 - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints0: crate::Reg, - #[doc = "0x184 - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints1: crate::Reg, - #[doc = "0x188 - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints2: crate::Reg, - #[doc = "0x18c - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints3: crate::Reg, + #[doc = "0x160..0x170 - Interrupt Enable for dormant_wake"] + pub dormant_wake_inte: [crate::Reg; 4], + #[doc = "0x170..0x180 - Interrupt Force for dormant_wake"] + pub dormant_wake_intf: [crate::Reg; 4], + #[doc = "0x180..0x190 - Interrupt status after masking & forcing for dormant_wake"] + pub dormant_wake_ints: [crate::Reg; 4], } #[doc = r"Register block"] #[repr(C)] @@ -81,51 +63,15 @@ pub mod proc1_intf; pub type PROC1_INTS = crate::Reg; #[doc = "Interrupt status after masking & forcing for proc1"] pub mod proc1_ints; -#[doc = "DORMANT_WAKE_INTE0 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE0 = crate::Reg; +#[doc = "DORMANT_WAKE_INTE register accessor: an alias for `Reg`"] +pub type DORMANT_WAKE_INTE = crate::Reg; #[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte0; -#[doc = "DORMANT_WAKE_INTE1 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE1 = crate::Reg; -#[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte1; -#[doc = "DORMANT_WAKE_INTE2 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE2 = crate::Reg; -#[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte2; -#[doc = "DORMANT_WAKE_INTE3 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE3 = crate::Reg; -#[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte3; -#[doc = "DORMANT_WAKE_INTF0 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF0 = crate::Reg; -#[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf0; -#[doc = "DORMANT_WAKE_INTF1 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF1 = crate::Reg; -#[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf1; -#[doc = "DORMANT_WAKE_INTF2 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF2 = crate::Reg; +pub mod dormant_wake_inte; +#[doc = "DORMANT_WAKE_INTF register accessor: an alias for `Reg`"] +pub type DORMANT_WAKE_INTF = crate::Reg; #[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf2; -#[doc = "DORMANT_WAKE_INTF3 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF3 = crate::Reg; -#[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf3; -#[doc = "DORMANT_WAKE_INTS0 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS0 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints0; -#[doc = "DORMANT_WAKE_INTS1 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS1 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints1; -#[doc = "DORMANT_WAKE_INTS2 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS2 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints2; -#[doc = "DORMANT_WAKE_INTS3 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS3 = crate::Reg; +pub mod dormant_wake_intf; +#[doc = "DORMANT_WAKE_INTS register accessor: an alias for `Reg`"] +pub type DORMANT_WAKE_INTS = crate::Reg; #[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints3; +pub mod dormant_wake_ints; diff --git a/src/io_bank0/dormant_wake_inte0.rs b/src/io_bank0/dormant_wake_inte.rs similarity index 97% rename from src/io_bank0/dormant_wake_inte0.rs rename to src/io_bank0/dormant_wake_inte.rs index 67b96e6f5..7c341f162 100644 --- a/src/io_bank0/dormant_wake_inte0.rs +++ b/src/io_bank0/dormant_wake_inte.rs @@ -1,22 +1,22 @@ -#[doc = "Register `DORMANT_WAKE_INTE0` reader"] -pub struct R(crate::R); +#[doc = "Register `DORMANT_WAKE_INTE%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `DORMANT_WAKE_INTE0` writer"] -pub struct W(crate::W); +#[doc = "Register `DORMANT_WAKE_INTE%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1520,21 +1520,21 @@ impl W { This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [dormant_wake_inte0](index.html) module"] -pub struct DORMANT_WAKE_INTE0_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE0_SPEC { +For information about available fields see [dormant_wake_inte](index.html) module"] +pub struct DORMANT_WAKE_INTE_SPEC; +impl crate::RegisterSpec for DORMANT_WAKE_INTE_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [dormant_wake_inte0::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE0_SPEC { +#[doc = "`read()` method returns [dormant_wake_inte::R](R) reader structure"] +impl crate::Readable for DORMANT_WAKE_INTE_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte0::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE0_SPEC { +#[doc = "`write(|w| ..)` method takes [dormant_wake_inte::W](W) writer structure"] +impl crate::Writable for DORMANT_WAKE_INTE_SPEC { type Writer = W; } -#[doc = "`reset()` method sets DORMANT_WAKE_INTE0 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE0_SPEC { +#[doc = "`reset()` method sets DORMANT_WAKE_INTE%s to value 0"] +impl crate::Resettable for DORMANT_WAKE_INTE_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/dormant_wake_inte1.rs b/src/io_bank0/dormant_wake_inte1.rs deleted file mode 100644 index 7ea691711..000000000 --- a/src/io_bank0/dormant_wake_inte1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTE1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTE1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for dormant_wake - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_inte1](index.html) module"] -pub struct DORMANT_WAKE_INTE1_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_inte1::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte1::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTE1 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_inte2.rs b/src/io_bank0/dormant_wake_inte2.rs deleted file mode 100644 index c7178968c..000000000 --- a/src/io_bank0/dormant_wake_inte2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTE2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTE2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for dormant_wake - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_inte2](index.html) module"] -pub struct DORMANT_WAKE_INTE2_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_inte2::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte2::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTE2 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_inte3.rs b/src/io_bank0/dormant_wake_inte3.rs deleted file mode 100644 index eefb76331..000000000 --- a/src/io_bank0/dormant_wake_inte3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTE3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTE3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Enable for dormant_wake - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_inte3](index.html) module"] -pub struct DORMANT_WAKE_INTE3_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_inte3::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte3::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTE3 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_intf0.rs b/src/io_bank0/dormant_wake_intf.rs similarity index 97% rename from src/io_bank0/dormant_wake_intf0.rs rename to src/io_bank0/dormant_wake_intf.rs index b091bc2d4..37b5c3800 100644 --- a/src/io_bank0/dormant_wake_intf0.rs +++ b/src/io_bank0/dormant_wake_intf.rs @@ -1,22 +1,22 @@ -#[doc = "Register `DORMANT_WAKE_INTF0` reader"] -pub struct R(crate::R); +#[doc = "Register `DORMANT_WAKE_INTF%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `DORMANT_WAKE_INTF0` writer"] -pub struct W(crate::W); +#[doc = "Register `DORMANT_WAKE_INTF%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1520,21 +1520,21 @@ impl W { This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [dormant_wake_intf0](index.html) module"] -pub struct DORMANT_WAKE_INTF0_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF0_SPEC { +For information about available fields see [dormant_wake_intf](index.html) module"] +pub struct DORMANT_WAKE_INTF_SPEC; +impl crate::RegisterSpec for DORMANT_WAKE_INTF_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [dormant_wake_intf0::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF0_SPEC { +#[doc = "`read()` method returns [dormant_wake_intf::R](R) reader structure"] +impl crate::Readable for DORMANT_WAKE_INTF_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf0::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF0_SPEC { +#[doc = "`write(|w| ..)` method takes [dormant_wake_intf::W](W) writer structure"] +impl crate::Writable for DORMANT_WAKE_INTF_SPEC { type Writer = W; } -#[doc = "`reset()` method sets DORMANT_WAKE_INTF0 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF0_SPEC { +#[doc = "`reset()` method sets DORMANT_WAKE_INTF%s to value 0"] +impl crate::Resettable for DORMANT_WAKE_INTF_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/dormant_wake_intf1.rs b/src/io_bank0/dormant_wake_intf1.rs deleted file mode 100644 index 533241021..000000000 --- a/src/io_bank0/dormant_wake_intf1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTF1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTF1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for dormant_wake - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_intf1](index.html) module"] -pub struct DORMANT_WAKE_INTF1_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_intf1::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf1::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTF1 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_intf2.rs b/src/io_bank0/dormant_wake_intf2.rs deleted file mode 100644 index a02ac7543..000000000 --- a/src/io_bank0/dormant_wake_intf2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTF2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTF2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25); - self.w - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for dormant_wake - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_intf2](index.html) module"] -pub struct DORMANT_WAKE_INTF2_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_intf2::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf2::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTF2 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_intf3.rs b/src/io_bank0/dormant_wake_intf3.rs deleted file mode 100644 index 3cd167f2b..000000000 --- a/src/io_bank0/dormant_wake_intf3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTF3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTF3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl core::ops::DerefMut for W { - #[inline(always)] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} -impl From> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23); - self.w - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21); - self.w - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19); - self.w - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17); - self.w - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15); - self.w - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9); - self.w - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7); - self.w - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5); - self.w - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3); - self.w - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1); - self.w - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_W<'a> { - #[doc = r"Sets the field bit"] - #[inline(always)] - pub fn set_bit(self) -> &'a mut W { - self.bit(true) - } - #[doc = r"Clears the field bit"] - #[inline(always)] - pub fn clear_bit(self) -> &'a mut W { - self.bit(false) - } - #[doc = r"Writes raw bits to the field"] - #[inline(always)] - pub fn bit(self, value: bool) -> &'a mut W { - self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01); - self.w - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_W { w: self } - } - #[doc = "Writes raw bits to the register."] - #[inline(always)] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.0.bits(bits); - self - } -} -#[doc = "Interrupt Force for dormant_wake - -This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_intf3](index.html) module"] -pub struct DORMANT_WAKE_INTF3_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_intf3::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf3::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTF3 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_ints0.rs b/src/io_bank0/dormant_wake_ints.rs similarity index 96% rename from src/io_bank0/dormant_wake_ints0.rs rename to src/io_bank0/dormant_wake_ints.rs index aa1d373ce..8fcf83694 100644 --- a/src/io_bank0/dormant_wake_ints0.rs +++ b/src/io_bank0/dormant_wake_ints.rs @@ -1,15 +1,15 @@ -#[doc = "Register `DORMANT_WAKE_INTS0` reader"] -pub struct R(crate::R); +#[doc = "Register `DORMANT_WAKE_INTS%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } @@ -627,17 +627,17 @@ impl R { This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [dormant_wake_ints0](index.html) module"] -pub struct DORMANT_WAKE_INTS0_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS0_SPEC { +For information about available fields see [dormant_wake_ints](index.html) module"] +pub struct DORMANT_WAKE_INTS_SPEC; +impl crate::RegisterSpec for DORMANT_WAKE_INTS_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [dormant_wake_ints0::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS0_SPEC { +#[doc = "`read()` method returns [dormant_wake_ints::R](R) reader structure"] +impl crate::Readable for DORMANT_WAKE_INTS_SPEC { type Reader = R; } -#[doc = "`reset()` method sets DORMANT_WAKE_INTS0 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS0_SPEC { +#[doc = "`reset()` method sets DORMANT_WAKE_INTS%s to value 0"] +impl crate::Resettable for DORMANT_WAKE_INTS_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/dormant_wake_ints1.rs b/src/io_bank0/dormant_wake_ints1.rs deleted file mode 100644 index 0f8388b02..000000000 --- a/src/io_bank0/dormant_wake_ints1.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTS1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for dormant_wake - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_ints1](index.html) module"] -pub struct DORMANT_WAKE_INTS1_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_ints1::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS1_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTS1 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_ints2.rs b/src/io_bank0/dormant_wake_ints2.rs deleted file mode 100644 index c8ed614cc..000000000 --- a/src/io_bank0/dormant_wake_ints2.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTS2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for dormant_wake - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_ints2](index.html) module"] -pub struct DORMANT_WAKE_INTS2_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_ints2::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS2_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTS2 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_ints3.rs b/src/io_bank0/dormant_wake_ints3.rs deleted file mode 100644 index d6e0bd5cb..000000000 --- a/src/io_bank0/dormant_wake_ints3.rs +++ /dev/null @@ -1,493 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTS3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for dormant_wake - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_ints3](index.html) module"] -pub struct DORMANT_WAKE_INTS3_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_ints3::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS3_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTS3 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -}