From 0ecf30464cc3dc5dc596cecb67eaeccb8ec766ca Mon Sep 17 00:00:00 2001 From: Kjetil Kjeka Date: Tue, 4 Jul 2017 01:19:57 +0200 Subject: [PATCH] Made CANX embedded_ram an array in .svd file --- src/S32K144.svd | 14493 +------- src/lib.rs | 88797 +--------------------------------------------- 2 files changed, 405 insertions(+), 102885 deletions(-) diff --git a/src/S32K144.svd b/src/S32K144.svd index e16f403..f303983 100644 --- a/src/S32K144.svd +++ b/src/S32K144.svd @@ -32133,4838 +32133,15 @@ - EmbeddedRAM0 + EmbeddedRAM%s Embedded RAM 0x80 32 read-write 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM1 - Embedded RAM - 0x84 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM2 - Embedded RAM - 0x88 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM3 - Embedded RAM - 0x8C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM4 - Embedded RAM - 0x90 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM5 - Embedded RAM - 0x94 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM6 - Embedded RAM - 0x98 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM7 - Embedded RAM - 0x9C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM8 - Embedded RAM - 0xA0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM9 - Embedded RAM - 0xA4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM10 - Embedded RAM - 0xA8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM11 - Embedded RAM - 0xAC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM12 - Embedded RAM - 0xB0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM13 - Embedded RAM - 0xB4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM14 - Embedded RAM - 0xB8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM15 - Embedded RAM - 0xBC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM16 - Embedded RAM - 0xC0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM17 - Embedded RAM - 0xC4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM18 - Embedded RAM - 0xC8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM19 - Embedded RAM - 0xCC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM20 - Embedded RAM - 0xD0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM21 - Embedded RAM - 0xD4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM22 - Embedded RAM - 0xD8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM23 - Embedded RAM - 0xDC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM24 - Embedded RAM - 0xE0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM25 - Embedded RAM - 0xE4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM26 - Embedded RAM - 0xE8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM27 - Embedded RAM - 0xEC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM28 - Embedded RAM - 0xF0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM29 - Embedded RAM - 0xF4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM30 - Embedded RAM - 0xF8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM31 - Embedded RAM - 0xFC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM32 - Embedded RAM - 0x100 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM33 - Embedded RAM - 0x104 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM34 - Embedded RAM - 0x108 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM35 - Embedded RAM - 0x10C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM36 - Embedded RAM - 0x110 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM37 - Embedded RAM - 0x114 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM38 - Embedded RAM - 0x118 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM39 - Embedded RAM - 0x11C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM40 - Embedded RAM - 0x120 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM41 - Embedded RAM - 0x124 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM42 - Embedded RAM - 0x128 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM43 - Embedded RAM - 0x12C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM44 - Embedded RAM - 0x130 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM45 - Embedded RAM - 0x134 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM46 - Embedded RAM - 0x138 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM47 - Embedded RAM - 0x13C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM48 - Embedded RAM - 0x140 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM49 - Embedded RAM - 0x144 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM50 - Embedded RAM - 0x148 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM51 - Embedded RAM - 0x14C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM52 - Embedded RAM - 0x150 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM53 - Embedded RAM - 0x154 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM54 - Embedded RAM - 0x158 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM55 - Embedded RAM - 0x15C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM56 - Embedded RAM - 0x160 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM57 - Embedded RAM - 0x164 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM58 - Embedded RAM - 0x168 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM59 - Embedded RAM - 0x16C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM60 - Embedded RAM - 0x170 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM61 - Embedded RAM - 0x174 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM62 - Embedded RAM - 0x178 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM63 - Embedded RAM - 0x17C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM64 - Embedded RAM - 0x180 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM65 - Embedded RAM - 0x184 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM66 - Embedded RAM - 0x188 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM67 - Embedded RAM - 0x18C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM68 - Embedded RAM - 0x190 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM69 - Embedded RAM - 0x194 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM70 - Embedded RAM - 0x198 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM71 - Embedded RAM - 0x19C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM72 - Embedded RAM - 0x1A0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM73 - Embedded RAM - 0x1A4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM74 - Embedded RAM - 0x1A8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM75 - Embedded RAM - 0x1AC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM76 - Embedded RAM - 0x1B0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM77 - Embedded RAM - 0x1B4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM78 - Embedded RAM - 0x1B8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM79 - Embedded RAM - 0x1BC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM80 - Embedded RAM - 0x1C0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM81 - Embedded RAM - 0x1C4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM82 - Embedded RAM - 0x1C8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM83 - Embedded RAM - 0x1CC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM84 - Embedded RAM - 0x1D0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM85 - Embedded RAM - 0x1D4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM86 - Embedded RAM - 0x1D8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM87 - Embedded RAM - 0x1DC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM88 - Embedded RAM - 0x1E0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM89 - Embedded RAM - 0x1E4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM90 - Embedded RAM - 0x1E8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM91 - Embedded RAM - 0x1EC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM92 - Embedded RAM - 0x1F0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM93 - Embedded RAM - 0x1F4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM94 - Embedded RAM - 0x1F8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM95 - Embedded RAM - 0x1FC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM96 - Embedded RAM - 0x200 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM97 - Embedded RAM - 0x204 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM98 - Embedded RAM - 0x208 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM99 - Embedded RAM - 0x20C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM100 - Embedded RAM - 0x210 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM101 - Embedded RAM - 0x214 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM102 - Embedded RAM - 0x218 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM103 - Embedded RAM - 0x21C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM104 - Embedded RAM - 0x220 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM105 - Embedded RAM - 0x224 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM106 - Embedded RAM - 0x228 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM107 - Embedded RAM - 0x22C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM108 - Embedded RAM - 0x230 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM109 - Embedded RAM - 0x234 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM110 - Embedded RAM - 0x238 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM111 - Embedded RAM - 0x23C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM112 - Embedded RAM - 0x240 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM113 - Embedded RAM - 0x244 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM114 - Embedded RAM - 0x248 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM115 - Embedded RAM - 0x24C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM116 - Embedded RAM - 0x250 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM117 - Embedded RAM - 0x254 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM118 - Embedded RAM - 0x258 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM119 - Embedded RAM - 0x25C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM120 - Embedded RAM - 0x260 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM121 - Embedded RAM - 0x264 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM122 - Embedded RAM - 0x268 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM123 - Embedded RAM - 0x26C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM124 - Embedded RAM - 0x270 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM125 - Embedded RAM - 0x274 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM126 - Embedded RAM - 0x278 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM127 - Embedded RAM - 0x27C - 32 - read-write - 0 + 128 + 4 + 0-127 0xFFFFFFFF @@ -40301,4839 +35478,16 @@ - EmbeddedRAM0 + EmbeddedRAM%s Embedded RAM 0x80 32 read-write 0 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM1 - Embedded RAM - 0x84 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM2 - Embedded RAM - 0x88 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM3 - Embedded RAM - 0x8C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM4 - Embedded RAM - 0x90 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM5 - Embedded RAM - 0x94 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM6 - Embedded RAM - 0x98 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM7 - Embedded RAM - 0x9C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM8 - Embedded RAM - 0xA0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM9 - Embedded RAM - 0xA4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM10 - Embedded RAM - 0xA8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM11 - Embedded RAM - 0xAC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM12 - Embedded RAM - 0xB0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM13 - Embedded RAM - 0xB4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM14 - Embedded RAM - 0xB8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM15 - Embedded RAM - 0xBC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM16 - Embedded RAM - 0xC0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM17 - Embedded RAM - 0xC4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM18 - Embedded RAM - 0xC8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM19 - Embedded RAM - 0xCC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM20 - Embedded RAM - 0xD0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM21 - Embedded RAM - 0xD4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM22 - Embedded RAM - 0xD8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM23 - Embedded RAM - 0xDC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM24 - Embedded RAM - 0xE0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM25 - Embedded RAM - 0xE4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM26 - Embedded RAM - 0xE8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM27 - Embedded RAM - 0xEC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM28 - Embedded RAM - 0xF0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM29 - Embedded RAM - 0xF4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM30 - Embedded RAM - 0xF8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM31 - Embedded RAM - 0xFC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM32 - Embedded RAM - 0x100 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM33 - Embedded RAM - 0x104 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM34 - Embedded RAM - 0x108 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM35 - Embedded RAM - 0x10C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM36 - Embedded RAM - 0x110 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM37 - Embedded RAM - 0x114 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM38 - Embedded RAM - 0x118 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM39 - Embedded RAM - 0x11C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM40 - Embedded RAM - 0x120 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM41 - Embedded RAM - 0x124 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM42 - Embedded RAM - 0x128 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM43 - Embedded RAM - 0x12C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM44 - Embedded RAM - 0x130 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM45 - Embedded RAM - 0x134 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM46 - Embedded RAM - 0x138 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM47 - Embedded RAM - 0x13C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM48 - Embedded RAM - 0x140 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM49 - Embedded RAM - 0x144 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM50 - Embedded RAM - 0x148 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM51 - Embedded RAM - 0x14C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM52 - Embedded RAM - 0x150 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM53 - Embedded RAM - 0x154 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM54 - Embedded RAM - 0x158 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM55 - Embedded RAM - 0x15C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM56 - Embedded RAM - 0x160 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM57 - Embedded RAM - 0x164 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM58 - Embedded RAM - 0x168 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM59 - Embedded RAM - 0x16C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM60 - Embedded RAM - 0x170 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM61 - Embedded RAM - 0x174 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM62 - Embedded RAM - 0x178 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM63 - Embedded RAM - 0x17C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM64 - Embedded RAM - 0x180 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM65 - Embedded RAM - 0x184 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM66 - Embedded RAM - 0x188 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM67 - Embedded RAM - 0x18C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM68 - Embedded RAM - 0x190 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM69 - Embedded RAM - 0x194 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM70 - Embedded RAM - 0x198 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM71 - Embedded RAM - 0x19C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM72 - Embedded RAM - 0x1A0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM73 - Embedded RAM - 0x1A4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM74 - Embedded RAM - 0x1A8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM75 - Embedded RAM - 0x1AC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM76 - Embedded RAM - 0x1B0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM77 - Embedded RAM - 0x1B4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM78 - Embedded RAM - 0x1B8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM79 - Embedded RAM - 0x1BC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM80 - Embedded RAM - 0x1C0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM81 - Embedded RAM - 0x1C4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM82 - Embedded RAM - 0x1C8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM83 - Embedded RAM - 0x1CC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM84 - Embedded RAM - 0x1D0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM85 - Embedded RAM - 0x1D4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM86 - Embedded RAM - 0x1D8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM87 - Embedded RAM - 0x1DC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM88 - Embedded RAM - 0x1E0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM89 - Embedded RAM - 0x1E4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM90 - Embedded RAM - 0x1E8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM91 - Embedded RAM - 0x1EC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM92 - Embedded RAM - 0x1F0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM93 - Embedded RAM - 0x1F4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM94 - Embedded RAM - 0x1F8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM95 - Embedded RAM - 0x1FC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM96 - Embedded RAM - 0x200 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM97 - Embedded RAM - 0x204 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM98 - Embedded RAM - 0x208 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM99 - Embedded RAM - 0x20C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM100 - Embedded RAM - 0x210 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM101 - Embedded RAM - 0x214 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM102 - Embedded RAM - 0x218 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM103 - Embedded RAM - 0x21C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM104 - Embedded RAM - 0x220 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM105 - Embedded RAM - 0x224 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM106 - Embedded RAM - 0x228 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM107 - Embedded RAM - 0x22C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM108 - Embedded RAM - 0x230 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM109 - Embedded RAM - 0x234 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM110 - Embedded RAM - 0x238 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM111 - Embedded RAM - 0x23C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM112 - Embedded RAM - 0x240 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM113 - Embedded RAM - 0x244 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM114 - Embedded RAM - 0x248 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM115 - Embedded RAM - 0x24C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM116 - Embedded RAM - 0x250 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM117 - Embedded RAM - 0x254 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM118 - Embedded RAM - 0x258 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM119 - Embedded RAM - 0x25C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM120 - Embedded RAM - 0x260 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM121 - Embedded RAM - 0x264 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM122 - Embedded RAM - 0x268 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM123 - Embedded RAM - 0x26C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM124 - Embedded RAM - 0x270 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM125 - Embedded RAM - 0x274 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM126 - Embedded RAM - 0x278 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM127 - Embedded RAM - 0x27C - 32 - read-write - 0 - 0xFFFFFFFF + 128 + 4 + 0-127 DATA_BYTE_3 @@ -48469,4839 +38823,16 @@ - EmbeddedRAM0 + EmbeddedRAM%s Embedded RAM 0x80 32 read-write 0 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM1 - Embedded RAM - 0x84 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM2 - Embedded RAM - 0x88 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM3 - Embedded RAM - 0x8C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM4 - Embedded RAM - 0x90 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM5 - Embedded RAM - 0x94 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM6 - Embedded RAM - 0x98 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM7 - Embedded RAM - 0x9C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM8 - Embedded RAM - 0xA0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM9 - Embedded RAM - 0xA4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM10 - Embedded RAM - 0xA8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM11 - Embedded RAM - 0xAC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM12 - Embedded RAM - 0xB0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM13 - Embedded RAM - 0xB4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM14 - Embedded RAM - 0xB8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM15 - Embedded RAM - 0xBC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM16 - Embedded RAM - 0xC0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM17 - Embedded RAM - 0xC4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM18 - Embedded RAM - 0xC8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM19 - Embedded RAM - 0xCC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM20 - Embedded RAM - 0xD0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM21 - Embedded RAM - 0xD4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM22 - Embedded RAM - 0xD8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM23 - Embedded RAM - 0xDC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM24 - Embedded RAM - 0xE0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM25 - Embedded RAM - 0xE4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM26 - Embedded RAM - 0xE8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM27 - Embedded RAM - 0xEC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM28 - Embedded RAM - 0xF0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM29 - Embedded RAM - 0xF4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM30 - Embedded RAM - 0xF8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM31 - Embedded RAM - 0xFC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM32 - Embedded RAM - 0x100 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM33 - Embedded RAM - 0x104 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM34 - Embedded RAM - 0x108 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM35 - Embedded RAM - 0x10C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM36 - Embedded RAM - 0x110 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM37 - Embedded RAM - 0x114 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM38 - Embedded RAM - 0x118 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM39 - Embedded RAM - 0x11C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM40 - Embedded RAM - 0x120 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM41 - Embedded RAM - 0x124 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM42 - Embedded RAM - 0x128 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM43 - Embedded RAM - 0x12C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM44 - Embedded RAM - 0x130 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM45 - Embedded RAM - 0x134 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM46 - Embedded RAM - 0x138 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM47 - Embedded RAM - 0x13C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM48 - Embedded RAM - 0x140 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM49 - Embedded RAM - 0x144 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM50 - Embedded RAM - 0x148 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM51 - Embedded RAM - 0x14C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM52 - Embedded RAM - 0x150 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM53 - Embedded RAM - 0x154 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM54 - Embedded RAM - 0x158 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM55 - Embedded RAM - 0x15C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM56 - Embedded RAM - 0x160 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM57 - Embedded RAM - 0x164 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM58 - Embedded RAM - 0x168 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM59 - Embedded RAM - 0x16C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM60 - Embedded RAM - 0x170 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM61 - Embedded RAM - 0x174 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM62 - Embedded RAM - 0x178 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM63 - Embedded RAM - 0x17C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM64 - Embedded RAM - 0x180 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM65 - Embedded RAM - 0x184 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM66 - Embedded RAM - 0x188 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM67 - Embedded RAM - 0x18C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM68 - Embedded RAM - 0x190 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM69 - Embedded RAM - 0x194 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM70 - Embedded RAM - 0x198 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM71 - Embedded RAM - 0x19C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM72 - Embedded RAM - 0x1A0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM73 - Embedded RAM - 0x1A4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM74 - Embedded RAM - 0x1A8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM75 - Embedded RAM - 0x1AC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM76 - Embedded RAM - 0x1B0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM77 - Embedded RAM - 0x1B4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM78 - Embedded RAM - 0x1B8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM79 - Embedded RAM - 0x1BC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM80 - Embedded RAM - 0x1C0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM81 - Embedded RAM - 0x1C4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM82 - Embedded RAM - 0x1C8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM83 - Embedded RAM - 0x1CC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM84 - Embedded RAM - 0x1D0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM85 - Embedded RAM - 0x1D4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM86 - Embedded RAM - 0x1D8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM87 - Embedded RAM - 0x1DC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM88 - Embedded RAM - 0x1E0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM89 - Embedded RAM - 0x1E4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM90 - Embedded RAM - 0x1E8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM91 - Embedded RAM - 0x1EC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM92 - Embedded RAM - 0x1F0 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM93 - Embedded RAM - 0x1F4 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM94 - Embedded RAM - 0x1F8 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM95 - Embedded RAM - 0x1FC - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM96 - Embedded RAM - 0x200 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM97 - Embedded RAM - 0x204 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM98 - Embedded RAM - 0x208 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM99 - Embedded RAM - 0x20C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM100 - Embedded RAM - 0x210 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM101 - Embedded RAM - 0x214 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM102 - Embedded RAM - 0x218 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM103 - Embedded RAM - 0x21C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM104 - Embedded RAM - 0x220 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM105 - Embedded RAM - 0x224 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM106 - Embedded RAM - 0x228 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM107 - Embedded RAM - 0x22C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM108 - Embedded RAM - 0x230 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM109 - Embedded RAM - 0x234 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM110 - Embedded RAM - 0x238 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM111 - Embedded RAM - 0x23C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM112 - Embedded RAM - 0x240 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM113 - Embedded RAM - 0x244 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM114 - Embedded RAM - 0x248 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM115 - Embedded RAM - 0x24C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM116 - Embedded RAM - 0x250 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM117 - Embedded RAM - 0x254 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM118 - Embedded RAM - 0x258 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM119 - Embedded RAM - 0x25C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM120 - Embedded RAM - 0x260 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM121 - Embedded RAM - 0x264 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM122 - Embedded RAM - 0x268 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM123 - Embedded RAM - 0x26C - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM124 - Embedded RAM - 0x270 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM125 - Embedded RAM - 0x274 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM126 - Embedded RAM - 0x278 - 32 - read-write - 0 - 0xFFFFFFFF - - - DATA_BYTE_3 - Data byte 3 of Rx/Tx frame. - 0 - 8 - read-write - - - DATA_BYTE_2 - Data byte 2 of Rx/Tx frame. - 8 - 8 - read-write - - - DATA_BYTE_1 - Data byte 1 of Rx/Tx frame. - 16 - 8 - read-write - - - DATA_BYTE_0 - Data byte 0 of Rx/Tx frame. - 24 - 8 - read-write - - - - EmbeddedRAM127 - Embedded RAM - 0x27C - 32 - read-write - 0 - 0xFFFFFFFF + 128 + 4 + 0-127 DATA_BYTE_3 diff --git a/src/lib.rs b/src/lib.rs index 9cd3aac..c9586ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -140170,261 +140170,261 @@ pub mod can0 { pub cbt: CBT, _reserved4: [u8; 44usize], # [ doc = "0x80 - Embedded RAM" ] - pub embedded_ram0: EMBEDDEDRAM0, + pub embedded_ram0: EMBEDDEDRAM, # [ doc = "0x84 - Embedded RAM" ] - pub embedded_ram1: EMBEDDEDRAM1, + pub embedded_ram1: EMBEDDEDRAM, # [ doc = "0x88 - Embedded RAM" ] - pub embedded_ram2: EMBEDDEDRAM2, + pub embedded_ram2: EMBEDDEDRAM, # [ doc = "0x8c - Embedded RAM" ] - pub embedded_ram3: EMBEDDEDRAM3, + pub embedded_ram3: EMBEDDEDRAM, # [ doc = "0x90 - Embedded RAM" ] - pub embedded_ram4: EMBEDDEDRAM4, + pub embedded_ram4: EMBEDDEDRAM, # [ doc = "0x94 - Embedded RAM" ] - pub embedded_ram5: EMBEDDEDRAM5, + pub embedded_ram5: EMBEDDEDRAM, # [ doc = "0x98 - Embedded RAM" ] - pub embedded_ram6: EMBEDDEDRAM6, + pub embedded_ram6: EMBEDDEDRAM, # [ doc = "0x9c - Embedded RAM" ] - pub embedded_ram7: EMBEDDEDRAM7, + pub embedded_ram7: EMBEDDEDRAM, # [ doc = "0xa0 - Embedded RAM" ] - pub embedded_ram8: EMBEDDEDRAM8, + pub embedded_ram8: EMBEDDEDRAM, # [ doc = "0xa4 - Embedded RAM" ] - pub embedded_ram9: EMBEDDEDRAM9, + pub embedded_ram9: EMBEDDEDRAM, # [ doc = "0xa8 - Embedded RAM" ] - pub embedded_ram10: EMBEDDEDRAM10, + pub embedded_ram10: EMBEDDEDRAM, # [ doc = "0xac - Embedded RAM" ] - pub embedded_ram11: EMBEDDEDRAM11, + pub embedded_ram11: EMBEDDEDRAM, # [ doc = "0xb0 - Embedded RAM" ] - pub embedded_ram12: EMBEDDEDRAM12, + pub embedded_ram12: EMBEDDEDRAM, # [ doc = "0xb4 - Embedded RAM" ] - pub embedded_ram13: EMBEDDEDRAM13, + pub embedded_ram13: EMBEDDEDRAM, # [ doc = "0xb8 - Embedded RAM" ] - pub embedded_ram14: EMBEDDEDRAM14, + pub embedded_ram14: EMBEDDEDRAM, # [ doc = "0xbc - Embedded RAM" ] - pub embedded_ram15: EMBEDDEDRAM15, + pub embedded_ram15: EMBEDDEDRAM, # [ doc = "0xc0 - Embedded RAM" ] - pub embedded_ram16: EMBEDDEDRAM16, + pub embedded_ram16: EMBEDDEDRAM, # [ doc = "0xc4 - Embedded RAM" ] - pub embedded_ram17: EMBEDDEDRAM17, + pub embedded_ram17: EMBEDDEDRAM, # [ doc = "0xc8 - Embedded RAM" ] - pub embedded_ram18: EMBEDDEDRAM18, + pub embedded_ram18: EMBEDDEDRAM, # [ doc = "0xcc - Embedded RAM" ] - pub embedded_ram19: EMBEDDEDRAM19, + pub embedded_ram19: EMBEDDEDRAM, # [ doc = "0xd0 - Embedded RAM" ] - pub embedded_ram20: EMBEDDEDRAM20, + pub embedded_ram20: EMBEDDEDRAM, # [ doc = "0xd4 - Embedded RAM" ] - pub embedded_ram21: EMBEDDEDRAM21, + pub embedded_ram21: EMBEDDEDRAM, # [ doc = "0xd8 - Embedded RAM" ] - pub embedded_ram22: EMBEDDEDRAM22, + pub embedded_ram22: EMBEDDEDRAM, # [ doc = "0xdc - Embedded RAM" ] - pub embedded_ram23: EMBEDDEDRAM23, + pub embedded_ram23: EMBEDDEDRAM, # [ doc = "0xe0 - Embedded RAM" ] - pub embedded_ram24: EMBEDDEDRAM24, + pub embedded_ram24: EMBEDDEDRAM, # [ doc = "0xe4 - Embedded RAM" ] - pub embedded_ram25: EMBEDDEDRAM25, + pub embedded_ram25: EMBEDDEDRAM, # [ doc = "0xe8 - Embedded RAM" ] - pub embedded_ram26: EMBEDDEDRAM26, + pub embedded_ram26: EMBEDDEDRAM, # [ doc = "0xec - Embedded RAM" ] - pub embedded_ram27: EMBEDDEDRAM27, + pub embedded_ram27: EMBEDDEDRAM, # [ doc = "0xf0 - Embedded RAM" ] - pub embedded_ram28: EMBEDDEDRAM28, + pub embedded_ram28: EMBEDDEDRAM, # [ doc = "0xf4 - Embedded RAM" ] - pub embedded_ram29: EMBEDDEDRAM29, + pub embedded_ram29: EMBEDDEDRAM, # [ doc = "0xf8 - Embedded RAM" ] - pub embedded_ram30: EMBEDDEDRAM30, + pub embedded_ram30: EMBEDDEDRAM, # [ doc = "0xfc - Embedded RAM" ] - pub embedded_ram31: EMBEDDEDRAM31, + pub embedded_ram31: EMBEDDEDRAM, # [ doc = "0x100 - Embedded RAM" ] - pub embedded_ram32: EMBEDDEDRAM32, + pub embedded_ram32: EMBEDDEDRAM, # [ doc = "0x104 - Embedded RAM" ] - pub embedded_ram33: EMBEDDEDRAM33, + pub embedded_ram33: EMBEDDEDRAM, # [ doc = "0x108 - Embedded RAM" ] - pub embedded_ram34: EMBEDDEDRAM34, + pub embedded_ram34: EMBEDDEDRAM, # [ doc = "0x10c - Embedded RAM" ] - pub embedded_ram35: EMBEDDEDRAM35, + pub embedded_ram35: EMBEDDEDRAM, # [ doc = "0x110 - Embedded RAM" ] - pub embedded_ram36: EMBEDDEDRAM36, + pub embedded_ram36: EMBEDDEDRAM, # [ doc = "0x114 - Embedded RAM" ] - pub embedded_ram37: EMBEDDEDRAM37, + pub embedded_ram37: EMBEDDEDRAM, # [ doc = "0x118 - Embedded RAM" ] - pub embedded_ram38: EMBEDDEDRAM38, + pub embedded_ram38: EMBEDDEDRAM, # [ doc = "0x11c - Embedded RAM" ] - pub embedded_ram39: EMBEDDEDRAM39, + pub embedded_ram39: EMBEDDEDRAM, # [ doc = "0x120 - Embedded RAM" ] - pub embedded_ram40: EMBEDDEDRAM40, + pub embedded_ram40: EMBEDDEDRAM, # [ doc = "0x124 - Embedded RAM" ] - pub embedded_ram41: EMBEDDEDRAM41, + pub embedded_ram41: EMBEDDEDRAM, # [ doc = "0x128 - Embedded RAM" ] - pub embedded_ram42: EMBEDDEDRAM42, + pub embedded_ram42: EMBEDDEDRAM, # [ doc = "0x12c - Embedded RAM" ] - pub embedded_ram43: EMBEDDEDRAM43, + pub embedded_ram43: EMBEDDEDRAM, # [ doc = "0x130 - Embedded RAM" ] - pub embedded_ram44: EMBEDDEDRAM44, + pub embedded_ram44: EMBEDDEDRAM, # [ doc = "0x134 - Embedded RAM" ] - pub embedded_ram45: EMBEDDEDRAM45, + pub embedded_ram45: EMBEDDEDRAM, # [ doc = "0x138 - Embedded RAM" ] - pub embedded_ram46: EMBEDDEDRAM46, + pub embedded_ram46: EMBEDDEDRAM, # [ doc = "0x13c - Embedded RAM" ] - pub embedded_ram47: EMBEDDEDRAM47, + pub embedded_ram47: EMBEDDEDRAM, # [ doc = "0x140 - Embedded RAM" ] - pub embedded_ram48: EMBEDDEDRAM48, + pub embedded_ram48: EMBEDDEDRAM, # [ doc = "0x144 - Embedded RAM" ] - pub embedded_ram49: EMBEDDEDRAM49, + pub embedded_ram49: EMBEDDEDRAM, # [ doc = "0x148 - Embedded RAM" ] - pub embedded_ram50: EMBEDDEDRAM50, + pub embedded_ram50: EMBEDDEDRAM, # [ doc = "0x14c - Embedded RAM" ] - pub embedded_ram51: EMBEDDEDRAM51, + pub embedded_ram51: EMBEDDEDRAM, # [ doc = "0x150 - Embedded RAM" ] - pub embedded_ram52: EMBEDDEDRAM52, + pub embedded_ram52: EMBEDDEDRAM, # [ doc = "0x154 - Embedded RAM" ] - pub embedded_ram53: EMBEDDEDRAM53, + pub embedded_ram53: EMBEDDEDRAM, # [ doc = "0x158 - Embedded RAM" ] - pub embedded_ram54: EMBEDDEDRAM54, + pub embedded_ram54: EMBEDDEDRAM, # [ doc = "0x15c - Embedded RAM" ] - pub embedded_ram55: EMBEDDEDRAM55, + pub embedded_ram55: EMBEDDEDRAM, # [ doc = "0x160 - Embedded RAM" ] - pub embedded_ram56: EMBEDDEDRAM56, + pub embedded_ram56: EMBEDDEDRAM, # [ doc = "0x164 - Embedded RAM" ] - pub embedded_ram57: EMBEDDEDRAM57, + pub embedded_ram57: EMBEDDEDRAM, # [ doc = "0x168 - Embedded RAM" ] - pub embedded_ram58: EMBEDDEDRAM58, + pub embedded_ram58: EMBEDDEDRAM, # [ doc = "0x16c - Embedded RAM" ] - pub embedded_ram59: EMBEDDEDRAM59, + pub embedded_ram59: EMBEDDEDRAM, # [ doc = "0x170 - Embedded RAM" ] - pub embedded_ram60: EMBEDDEDRAM60, + pub embedded_ram60: EMBEDDEDRAM, # [ doc = "0x174 - Embedded RAM" ] - pub embedded_ram61: EMBEDDEDRAM61, + pub embedded_ram61: EMBEDDEDRAM, # [ doc = "0x178 - Embedded RAM" ] - pub embedded_ram62: EMBEDDEDRAM62, + pub embedded_ram62: EMBEDDEDRAM, # [ doc = "0x17c - Embedded RAM" ] - pub embedded_ram63: EMBEDDEDRAM63, + pub embedded_ram63: EMBEDDEDRAM, # [ doc = "0x180 - Embedded RAM" ] - pub embedded_ram64: EMBEDDEDRAM64, + pub embedded_ram64: EMBEDDEDRAM, # [ doc = "0x184 - Embedded RAM" ] - pub embedded_ram65: EMBEDDEDRAM65, + pub embedded_ram65: EMBEDDEDRAM, # [ doc = "0x188 - Embedded RAM" ] - pub embedded_ram66: EMBEDDEDRAM66, + pub embedded_ram66: EMBEDDEDRAM, # [ doc = "0x18c - Embedded RAM" ] - pub embedded_ram67: EMBEDDEDRAM67, + pub embedded_ram67: EMBEDDEDRAM, # [ doc = "0x190 - Embedded RAM" ] - pub embedded_ram68: EMBEDDEDRAM68, + pub embedded_ram68: EMBEDDEDRAM, # [ doc = "0x194 - Embedded RAM" ] - pub embedded_ram69: EMBEDDEDRAM69, + pub embedded_ram69: EMBEDDEDRAM, # [ doc = "0x198 - Embedded RAM" ] - pub embedded_ram70: EMBEDDEDRAM70, + pub embedded_ram70: EMBEDDEDRAM, # [ doc = "0x19c - Embedded RAM" ] - pub embedded_ram71: EMBEDDEDRAM71, + pub embedded_ram71: EMBEDDEDRAM, # [ doc = "0x1a0 - Embedded RAM" ] - pub embedded_ram72: EMBEDDEDRAM72, + pub embedded_ram72: EMBEDDEDRAM, # [ doc = "0x1a4 - Embedded RAM" ] - pub embedded_ram73: EMBEDDEDRAM73, + pub embedded_ram73: EMBEDDEDRAM, # [ doc = "0x1a8 - Embedded RAM" ] - pub embedded_ram74: EMBEDDEDRAM74, + pub embedded_ram74: EMBEDDEDRAM, # [ doc = "0x1ac - Embedded RAM" ] - pub embedded_ram75: EMBEDDEDRAM75, + pub embedded_ram75: EMBEDDEDRAM, # [ doc = "0x1b0 - Embedded RAM" ] - pub embedded_ram76: EMBEDDEDRAM76, + pub embedded_ram76: EMBEDDEDRAM, # [ doc = "0x1b4 - Embedded RAM" ] - pub embedded_ram77: EMBEDDEDRAM77, + pub embedded_ram77: EMBEDDEDRAM, # [ doc = "0x1b8 - Embedded RAM" ] - pub embedded_ram78: EMBEDDEDRAM78, + pub embedded_ram78: EMBEDDEDRAM, # [ doc = "0x1bc - Embedded RAM" ] - pub embedded_ram79: EMBEDDEDRAM79, + pub embedded_ram79: EMBEDDEDRAM, # [ doc = "0x1c0 - Embedded RAM" ] - pub embedded_ram80: EMBEDDEDRAM80, + pub embedded_ram80: EMBEDDEDRAM, # [ doc = "0x1c4 - Embedded RAM" ] - pub embedded_ram81: EMBEDDEDRAM81, + pub embedded_ram81: EMBEDDEDRAM, # [ doc = "0x1c8 - Embedded RAM" ] - pub embedded_ram82: EMBEDDEDRAM82, + pub embedded_ram82: EMBEDDEDRAM, # [ doc = "0x1cc - Embedded RAM" ] - pub embedded_ram83: EMBEDDEDRAM83, + pub embedded_ram83: EMBEDDEDRAM, # [ doc = "0x1d0 - Embedded RAM" ] - pub embedded_ram84: EMBEDDEDRAM84, + pub embedded_ram84: EMBEDDEDRAM, # [ doc = "0x1d4 - Embedded RAM" ] - pub embedded_ram85: EMBEDDEDRAM85, + pub embedded_ram85: EMBEDDEDRAM, # [ doc = "0x1d8 - Embedded RAM" ] - pub embedded_ram86: EMBEDDEDRAM86, + pub embedded_ram86: EMBEDDEDRAM, # [ doc = "0x1dc - Embedded RAM" ] - pub embedded_ram87: EMBEDDEDRAM87, + pub embedded_ram87: EMBEDDEDRAM, # [ doc = "0x1e0 - Embedded RAM" ] - pub embedded_ram88: EMBEDDEDRAM88, + pub embedded_ram88: EMBEDDEDRAM, # [ doc = "0x1e4 - Embedded RAM" ] - pub embedded_ram89: EMBEDDEDRAM89, + pub embedded_ram89: EMBEDDEDRAM, # [ doc = "0x1e8 - Embedded RAM" ] - pub embedded_ram90: EMBEDDEDRAM90, + pub embedded_ram90: EMBEDDEDRAM, # [ doc = "0x1ec - Embedded RAM" ] - pub embedded_ram91: EMBEDDEDRAM91, + pub embedded_ram91: EMBEDDEDRAM, # [ doc = "0x1f0 - Embedded RAM" ] - pub embedded_ram92: EMBEDDEDRAM92, + pub embedded_ram92: EMBEDDEDRAM, # [ doc = "0x1f4 - Embedded RAM" ] - pub embedded_ram93: EMBEDDEDRAM93, + pub embedded_ram93: EMBEDDEDRAM, # [ doc = "0x1f8 - Embedded RAM" ] - pub embedded_ram94: EMBEDDEDRAM94, + pub embedded_ram94: EMBEDDEDRAM, # [ doc = "0x1fc - Embedded RAM" ] - pub embedded_ram95: EMBEDDEDRAM95, + pub embedded_ram95: EMBEDDEDRAM, # [ doc = "0x200 - Embedded RAM" ] - pub embedded_ram96: EMBEDDEDRAM96, + pub embedded_ram96: EMBEDDEDRAM, # [ doc = "0x204 - Embedded RAM" ] - pub embedded_ram97: EMBEDDEDRAM97, + pub embedded_ram97: EMBEDDEDRAM, # [ doc = "0x208 - Embedded RAM" ] - pub embedded_ram98: EMBEDDEDRAM98, + pub embedded_ram98: EMBEDDEDRAM, # [ doc = "0x20c - Embedded RAM" ] - pub embedded_ram99: EMBEDDEDRAM99, + pub embedded_ram99: EMBEDDEDRAM, # [ doc = "0x210 - Embedded RAM" ] - pub embedded_ram100: EMBEDDEDRAM100, + pub embedded_ram100: EMBEDDEDRAM, # [ doc = "0x214 - Embedded RAM" ] - pub embedded_ram101: EMBEDDEDRAM101, + pub embedded_ram101: EMBEDDEDRAM, # [ doc = "0x218 - Embedded RAM" ] - pub embedded_ram102: EMBEDDEDRAM102, + pub embedded_ram102: EMBEDDEDRAM, # [ doc = "0x21c - Embedded RAM" ] - pub embedded_ram103: EMBEDDEDRAM103, + pub embedded_ram103: EMBEDDEDRAM, # [ doc = "0x220 - Embedded RAM" ] - pub embedded_ram104: EMBEDDEDRAM104, + pub embedded_ram104: EMBEDDEDRAM, # [ doc = "0x224 - Embedded RAM" ] - pub embedded_ram105: EMBEDDEDRAM105, + pub embedded_ram105: EMBEDDEDRAM, # [ doc = "0x228 - Embedded RAM" ] - pub embedded_ram106: EMBEDDEDRAM106, + pub embedded_ram106: EMBEDDEDRAM, # [ doc = "0x22c - Embedded RAM" ] - pub embedded_ram107: EMBEDDEDRAM107, + pub embedded_ram107: EMBEDDEDRAM, # [ doc = "0x230 - Embedded RAM" ] - pub embedded_ram108: EMBEDDEDRAM108, + pub embedded_ram108: EMBEDDEDRAM, # [ doc = "0x234 - Embedded RAM" ] - pub embedded_ram109: EMBEDDEDRAM109, + pub embedded_ram109: EMBEDDEDRAM, # [ doc = "0x238 - Embedded RAM" ] - pub embedded_ram110: EMBEDDEDRAM110, + pub embedded_ram110: EMBEDDEDRAM, # [ doc = "0x23c - Embedded RAM" ] - pub embedded_ram111: EMBEDDEDRAM111, + pub embedded_ram111: EMBEDDEDRAM, # [ doc = "0x240 - Embedded RAM" ] - pub embedded_ram112: EMBEDDEDRAM112, + pub embedded_ram112: EMBEDDEDRAM, # [ doc = "0x244 - Embedded RAM" ] - pub embedded_ram113: EMBEDDEDRAM113, + pub embedded_ram113: EMBEDDEDRAM, # [ doc = "0x248 - Embedded RAM" ] - pub embedded_ram114: EMBEDDEDRAM114, + pub embedded_ram114: EMBEDDEDRAM, # [ doc = "0x24c - Embedded RAM" ] - pub embedded_ram115: EMBEDDEDRAM115, + pub embedded_ram115: EMBEDDEDRAM, # [ doc = "0x250 - Embedded RAM" ] - pub embedded_ram116: EMBEDDEDRAM116, + pub embedded_ram116: EMBEDDEDRAM, # [ doc = "0x254 - Embedded RAM" ] - pub embedded_ram117: EMBEDDEDRAM117, + pub embedded_ram117: EMBEDDEDRAM, # [ doc = "0x258 - Embedded RAM" ] - pub embedded_ram118: EMBEDDEDRAM118, + pub embedded_ram118: EMBEDDEDRAM, # [ doc = "0x25c - Embedded RAM" ] - pub embedded_ram119: EMBEDDEDRAM119, + pub embedded_ram119: EMBEDDEDRAM, # [ doc = "0x260 - Embedded RAM" ] - pub embedded_ram120: EMBEDDEDRAM120, + pub embedded_ram120: EMBEDDEDRAM, # [ doc = "0x264 - Embedded RAM" ] - pub embedded_ram121: EMBEDDEDRAM121, + pub embedded_ram121: EMBEDDEDRAM, # [ doc = "0x268 - Embedded RAM" ] - pub embedded_ram122: EMBEDDEDRAM122, + pub embedded_ram122: EMBEDDEDRAM, # [ doc = "0x26c - Embedded RAM" ] - pub embedded_ram123: EMBEDDEDRAM123, + pub embedded_ram123: EMBEDDEDRAM, # [ doc = "0x270 - Embedded RAM" ] - pub embedded_ram124: EMBEDDEDRAM124, + pub embedded_ram124: EMBEDDEDRAM, # [ doc = "0x274 - Embedded RAM" ] - pub embedded_ram125: EMBEDDEDRAM125, + pub embedded_ram125: EMBEDDEDRAM, # [ doc = "0x278 - Embedded RAM" ] - pub embedded_ram126: EMBEDDEDRAM126, + pub embedded_ram126: EMBEDDEDRAM, # [ doc = "0x27c - Embedded RAM" ] - pub embedded_ram127: EMBEDDEDRAM127, + pub embedded_ram127: EMBEDDEDRAM, _reserved5: [u8; 1536usize], # [ doc = "0x880 - Rx Individual Mask Registers" ] pub rximr0: RXIMR0, @@ -149412,11 +149412,11 @@ pub mod can0 { } } # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM0 { + pub struct EMBEDDEDRAM { register: VolatileCell, } # [ doc = "Embedded RAM" ] - pub mod embedded_ram0 { + pub mod embedded_ram { # [ doc = r" Value read from the register" ] pub struct R { bits: u32, @@ -149425,29344 +149425,7 @@ pub mod can0 { pub struct W { bits: u32, } - impl super::EMBEDDEDRAM0 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM1 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram1 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM1 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM2 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram2 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM2 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM3 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram3 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM3 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM4 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram4 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM4 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM5 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram5 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM5 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM6 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram6 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM6 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM7 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram7 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM7 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM8 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram8 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM8 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM9 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram9 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM9 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM10 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram10 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM10 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM11 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram11 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM11 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM12 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram12 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM12 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM13 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram13 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM13 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM14 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram14 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM14 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM15 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram15 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM15 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM16 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram16 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM16 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM17 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram17 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM17 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM18 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram18 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM18 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM19 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram19 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM19 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM20 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram20 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM20 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM21 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram21 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM21 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM22 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram22 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM22 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM23 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram23 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM23 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM24 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram24 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM24 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM25 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram25 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM25 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM26 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram26 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM26 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM27 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram27 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM27 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM28 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram28 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM28 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM29 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram29 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM29 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM30 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram30 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM30 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM31 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram31 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM31 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM32 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram32 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM32 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM33 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram33 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM33 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM34 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram34 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM34 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM35 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram35 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM35 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM36 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram36 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM36 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM37 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram37 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM37 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM38 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram38 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM38 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM39 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram39 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM39 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM40 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram40 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM40 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM41 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram41 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM41 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM42 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram42 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM42 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM43 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram43 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM43 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM44 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram44 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM44 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM45 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram45 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM45 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM46 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram46 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM46 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM47 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram47 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM47 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM48 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram48 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM48 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM49 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram49 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM49 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM50 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram50 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM50 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM51 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram51 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM51 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM52 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram52 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM52 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM53 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram53 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM53 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM54 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram54 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM54 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM55 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram55 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM55 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM56 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram56 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM56 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM57 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram57 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM57 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM58 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram58 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM58 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM59 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram59 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM59 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM60 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram60 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM60 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM61 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram61 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM61 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM62 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram62 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM62 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM63 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram63 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM63 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM64 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram64 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM64 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM65 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram65 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM65 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM66 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram66 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM66 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM67 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram67 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM67 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM68 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram68 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM68 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM69 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram69 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM69 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM70 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram70 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM70 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM71 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram71 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM71 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM72 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram72 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM72 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM73 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram73 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM73 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM74 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram74 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM74 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM75 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram75 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM75 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM76 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram76 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM76 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM77 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram77 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM77 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM78 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram78 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM78 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM79 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram79 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM79 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM80 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram80 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM80 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM81 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram81 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM81 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM82 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram82 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM82 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM83 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram83 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM83 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM84 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram84 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM84 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM85 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram85 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM85 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM86 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram86 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM86 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM87 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram87 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM87 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM88 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram88 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM88 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM89 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram89 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM89 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM90 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram90 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM90 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM91 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram91 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM91 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM92 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram92 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM92 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM93 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram93 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM93 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM94 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram94 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM94 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM95 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram95 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM95 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM96 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram96 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM96 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM97 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram97 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM97 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM98 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram98 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM98 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM99 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram99 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM99 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM100 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram100 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM100 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM101 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram101 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM101 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM102 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram102 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM102 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM103 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram103 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM103 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM104 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram104 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM104 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM105 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram105 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM105 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM106 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram106 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM106 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM107 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram107 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM107 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM108 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram108 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM108 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM109 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram109 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM109 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM110 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram110 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM110 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM111 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram111 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM111 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM112 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram112 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM112 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM113 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram113 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM113 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM114 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram114 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM114 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM115 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram115 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM115 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM116 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram116 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM116 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM117 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram117 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM117 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM118 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram118 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM118 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM119 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram119 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM119 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM120 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram120 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM120 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM121 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram121 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM121 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM122 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram122 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM122 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM123 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram123 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM123 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM124 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram124 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM124 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM125 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram125 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM125 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM126 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram126 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM126 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM127 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram127 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM127 { + impl super::EMBEDDEDRAM { # [ doc = r" Modifies the contents of the register" ] # [ inline ( always ) ] pub fn modify(&self, f: F) @@ -186569,261 +157232,261 @@ pub mod can1 { pub cbt: CBT, _reserved4: [u8; 44usize], # [ doc = "0x80 - Embedded RAM" ] - pub embedded_ram0: EMBEDDEDRAM0, + pub embedded_ram0: EMBEDDEDRAM, # [ doc = "0x84 - Embedded RAM" ] - pub embedded_ram1: EMBEDDEDRAM1, + pub embedded_ram1: EMBEDDEDRAM, # [ doc = "0x88 - Embedded RAM" ] - pub embedded_ram2: EMBEDDEDRAM2, + pub embedded_ram2: EMBEDDEDRAM, # [ doc = "0x8c - Embedded RAM" ] - pub embedded_ram3: EMBEDDEDRAM3, + pub embedded_ram3: EMBEDDEDRAM, # [ doc = "0x90 - Embedded RAM" ] - pub embedded_ram4: EMBEDDEDRAM4, + pub embedded_ram4: EMBEDDEDRAM, # [ doc = "0x94 - Embedded RAM" ] - pub embedded_ram5: EMBEDDEDRAM5, + pub embedded_ram5: EMBEDDEDRAM, # [ doc = "0x98 - Embedded RAM" ] - pub embedded_ram6: EMBEDDEDRAM6, + pub embedded_ram6: EMBEDDEDRAM, # [ doc = "0x9c - Embedded RAM" ] - pub embedded_ram7: EMBEDDEDRAM7, + pub embedded_ram7: EMBEDDEDRAM, # [ doc = "0xa0 - Embedded RAM" ] - pub embedded_ram8: EMBEDDEDRAM8, + pub embedded_ram8: EMBEDDEDRAM, # [ doc = "0xa4 - Embedded RAM" ] - pub embedded_ram9: EMBEDDEDRAM9, + pub embedded_ram9: EMBEDDEDRAM, # [ doc = "0xa8 - Embedded RAM" ] - pub embedded_ram10: EMBEDDEDRAM10, + pub embedded_ram10: EMBEDDEDRAM, # [ doc = "0xac - Embedded RAM" ] - pub embedded_ram11: EMBEDDEDRAM11, + pub embedded_ram11: EMBEDDEDRAM, # [ doc = "0xb0 - Embedded RAM" ] - pub embedded_ram12: EMBEDDEDRAM12, + pub embedded_ram12: EMBEDDEDRAM, # [ doc = "0xb4 - Embedded RAM" ] - pub embedded_ram13: EMBEDDEDRAM13, + pub embedded_ram13: EMBEDDEDRAM, # [ doc = "0xb8 - Embedded RAM" ] - pub embedded_ram14: EMBEDDEDRAM14, + pub embedded_ram14: EMBEDDEDRAM, # [ doc = "0xbc - Embedded RAM" ] - pub embedded_ram15: EMBEDDEDRAM15, + pub embedded_ram15: EMBEDDEDRAM, # [ doc = "0xc0 - Embedded RAM" ] - pub embedded_ram16: EMBEDDEDRAM16, + pub embedded_ram16: EMBEDDEDRAM, # [ doc = "0xc4 - Embedded RAM" ] - pub embedded_ram17: EMBEDDEDRAM17, + pub embedded_ram17: EMBEDDEDRAM, # [ doc = "0xc8 - Embedded RAM" ] - pub embedded_ram18: EMBEDDEDRAM18, + pub embedded_ram18: EMBEDDEDRAM, # [ doc = "0xcc - Embedded RAM" ] - pub embedded_ram19: EMBEDDEDRAM19, + pub embedded_ram19: EMBEDDEDRAM, # [ doc = "0xd0 - Embedded RAM" ] - pub embedded_ram20: EMBEDDEDRAM20, + pub embedded_ram20: EMBEDDEDRAM, # [ doc = "0xd4 - Embedded RAM" ] - pub embedded_ram21: EMBEDDEDRAM21, + pub embedded_ram21: EMBEDDEDRAM, # [ doc = "0xd8 - Embedded RAM" ] - pub embedded_ram22: EMBEDDEDRAM22, + pub embedded_ram22: EMBEDDEDRAM, # [ doc = "0xdc - Embedded RAM" ] - pub embedded_ram23: EMBEDDEDRAM23, + pub embedded_ram23: EMBEDDEDRAM, # [ doc = "0xe0 - Embedded RAM" ] - pub embedded_ram24: EMBEDDEDRAM24, + pub embedded_ram24: EMBEDDEDRAM, # [ doc = "0xe4 - Embedded RAM" ] - pub embedded_ram25: EMBEDDEDRAM25, + pub embedded_ram25: EMBEDDEDRAM, # [ doc = "0xe8 - Embedded RAM" ] - pub embedded_ram26: EMBEDDEDRAM26, + pub embedded_ram26: EMBEDDEDRAM, # [ doc = "0xec - Embedded RAM" ] - pub embedded_ram27: EMBEDDEDRAM27, + pub embedded_ram27: EMBEDDEDRAM, # [ doc = "0xf0 - Embedded RAM" ] - pub embedded_ram28: EMBEDDEDRAM28, + pub embedded_ram28: EMBEDDEDRAM, # [ doc = "0xf4 - Embedded RAM" ] - pub embedded_ram29: EMBEDDEDRAM29, + pub embedded_ram29: EMBEDDEDRAM, # [ doc = "0xf8 - Embedded RAM" ] - pub embedded_ram30: EMBEDDEDRAM30, + pub embedded_ram30: EMBEDDEDRAM, # [ doc = "0xfc - Embedded RAM" ] - pub embedded_ram31: EMBEDDEDRAM31, + pub embedded_ram31: EMBEDDEDRAM, # [ doc = "0x100 - Embedded RAM" ] - pub embedded_ram32: EMBEDDEDRAM32, + pub embedded_ram32: EMBEDDEDRAM, # [ doc = "0x104 - Embedded RAM" ] - pub embedded_ram33: EMBEDDEDRAM33, + pub embedded_ram33: EMBEDDEDRAM, # [ doc = "0x108 - Embedded RAM" ] - pub embedded_ram34: EMBEDDEDRAM34, + pub embedded_ram34: EMBEDDEDRAM, # [ doc = "0x10c - Embedded RAM" ] - pub embedded_ram35: EMBEDDEDRAM35, + pub embedded_ram35: EMBEDDEDRAM, # [ doc = "0x110 - Embedded RAM" ] - pub embedded_ram36: EMBEDDEDRAM36, + pub embedded_ram36: EMBEDDEDRAM, # [ doc = "0x114 - Embedded RAM" ] - pub embedded_ram37: EMBEDDEDRAM37, + pub embedded_ram37: EMBEDDEDRAM, # [ doc = "0x118 - Embedded RAM" ] - pub embedded_ram38: EMBEDDEDRAM38, + pub embedded_ram38: EMBEDDEDRAM, # [ doc = "0x11c - Embedded RAM" ] - pub embedded_ram39: EMBEDDEDRAM39, + pub embedded_ram39: EMBEDDEDRAM, # [ doc = "0x120 - Embedded RAM" ] - pub embedded_ram40: EMBEDDEDRAM40, + pub embedded_ram40: EMBEDDEDRAM, # [ doc = "0x124 - Embedded RAM" ] - pub embedded_ram41: EMBEDDEDRAM41, + pub embedded_ram41: EMBEDDEDRAM, # [ doc = "0x128 - Embedded RAM" ] - pub embedded_ram42: EMBEDDEDRAM42, + pub embedded_ram42: EMBEDDEDRAM, # [ doc = "0x12c - Embedded RAM" ] - pub embedded_ram43: EMBEDDEDRAM43, + pub embedded_ram43: EMBEDDEDRAM, # [ doc = "0x130 - Embedded RAM" ] - pub embedded_ram44: EMBEDDEDRAM44, + pub embedded_ram44: EMBEDDEDRAM, # [ doc = "0x134 - Embedded RAM" ] - pub embedded_ram45: EMBEDDEDRAM45, + pub embedded_ram45: EMBEDDEDRAM, # [ doc = "0x138 - Embedded RAM" ] - pub embedded_ram46: EMBEDDEDRAM46, + pub embedded_ram46: EMBEDDEDRAM, # [ doc = "0x13c - Embedded RAM" ] - pub embedded_ram47: EMBEDDEDRAM47, + pub embedded_ram47: EMBEDDEDRAM, # [ doc = "0x140 - Embedded RAM" ] - pub embedded_ram48: EMBEDDEDRAM48, + pub embedded_ram48: EMBEDDEDRAM, # [ doc = "0x144 - Embedded RAM" ] - pub embedded_ram49: EMBEDDEDRAM49, + pub embedded_ram49: EMBEDDEDRAM, # [ doc = "0x148 - Embedded RAM" ] - pub embedded_ram50: EMBEDDEDRAM50, + pub embedded_ram50: EMBEDDEDRAM, # [ doc = "0x14c - Embedded RAM" ] - pub embedded_ram51: EMBEDDEDRAM51, + pub embedded_ram51: EMBEDDEDRAM, # [ doc = "0x150 - Embedded RAM" ] - pub embedded_ram52: EMBEDDEDRAM52, + pub embedded_ram52: EMBEDDEDRAM, # [ doc = "0x154 - Embedded RAM" ] - pub embedded_ram53: EMBEDDEDRAM53, + pub embedded_ram53: EMBEDDEDRAM, # [ doc = "0x158 - Embedded RAM" ] - pub embedded_ram54: EMBEDDEDRAM54, + pub embedded_ram54: EMBEDDEDRAM, # [ doc = "0x15c - Embedded RAM" ] - pub embedded_ram55: EMBEDDEDRAM55, + pub embedded_ram55: EMBEDDEDRAM, # [ doc = "0x160 - Embedded RAM" ] - pub embedded_ram56: EMBEDDEDRAM56, + pub embedded_ram56: EMBEDDEDRAM, # [ doc = "0x164 - Embedded RAM" ] - pub embedded_ram57: EMBEDDEDRAM57, + pub embedded_ram57: EMBEDDEDRAM, # [ doc = "0x168 - Embedded RAM" ] - pub embedded_ram58: EMBEDDEDRAM58, + pub embedded_ram58: EMBEDDEDRAM, # [ doc = "0x16c - Embedded RAM" ] - pub embedded_ram59: EMBEDDEDRAM59, + pub embedded_ram59: EMBEDDEDRAM, # [ doc = "0x170 - Embedded RAM" ] - pub embedded_ram60: EMBEDDEDRAM60, + pub embedded_ram60: EMBEDDEDRAM, # [ doc = "0x174 - Embedded RAM" ] - pub embedded_ram61: EMBEDDEDRAM61, + pub embedded_ram61: EMBEDDEDRAM, # [ doc = "0x178 - Embedded RAM" ] - pub embedded_ram62: EMBEDDEDRAM62, + pub embedded_ram62: EMBEDDEDRAM, # [ doc = "0x17c - Embedded RAM" ] - pub embedded_ram63: EMBEDDEDRAM63, + pub embedded_ram63: EMBEDDEDRAM, # [ doc = "0x180 - Embedded RAM" ] - pub embedded_ram64: EMBEDDEDRAM64, + pub embedded_ram64: EMBEDDEDRAM, # [ doc = "0x184 - Embedded RAM" ] - pub embedded_ram65: EMBEDDEDRAM65, + pub embedded_ram65: EMBEDDEDRAM, # [ doc = "0x188 - Embedded RAM" ] - pub embedded_ram66: EMBEDDEDRAM66, + pub embedded_ram66: EMBEDDEDRAM, # [ doc = "0x18c - Embedded RAM" ] - pub embedded_ram67: EMBEDDEDRAM67, + pub embedded_ram67: EMBEDDEDRAM, # [ doc = "0x190 - Embedded RAM" ] - pub embedded_ram68: EMBEDDEDRAM68, + pub embedded_ram68: EMBEDDEDRAM, # [ doc = "0x194 - Embedded RAM" ] - pub embedded_ram69: EMBEDDEDRAM69, + pub embedded_ram69: EMBEDDEDRAM, # [ doc = "0x198 - Embedded RAM" ] - pub embedded_ram70: EMBEDDEDRAM70, + pub embedded_ram70: EMBEDDEDRAM, # [ doc = "0x19c - Embedded RAM" ] - pub embedded_ram71: EMBEDDEDRAM71, + pub embedded_ram71: EMBEDDEDRAM, # [ doc = "0x1a0 - Embedded RAM" ] - pub embedded_ram72: EMBEDDEDRAM72, + pub embedded_ram72: EMBEDDEDRAM, # [ doc = "0x1a4 - Embedded RAM" ] - pub embedded_ram73: EMBEDDEDRAM73, + pub embedded_ram73: EMBEDDEDRAM, # [ doc = "0x1a8 - Embedded RAM" ] - pub embedded_ram74: EMBEDDEDRAM74, + pub embedded_ram74: EMBEDDEDRAM, # [ doc = "0x1ac - Embedded RAM" ] - pub embedded_ram75: EMBEDDEDRAM75, + pub embedded_ram75: EMBEDDEDRAM, # [ doc = "0x1b0 - Embedded RAM" ] - pub embedded_ram76: EMBEDDEDRAM76, + pub embedded_ram76: EMBEDDEDRAM, # [ doc = "0x1b4 - Embedded RAM" ] - pub embedded_ram77: EMBEDDEDRAM77, + pub embedded_ram77: EMBEDDEDRAM, # [ doc = "0x1b8 - Embedded RAM" ] - pub embedded_ram78: EMBEDDEDRAM78, + pub embedded_ram78: EMBEDDEDRAM, # [ doc = "0x1bc - Embedded RAM" ] - pub embedded_ram79: EMBEDDEDRAM79, + pub embedded_ram79: EMBEDDEDRAM, # [ doc = "0x1c0 - Embedded RAM" ] - pub embedded_ram80: EMBEDDEDRAM80, + pub embedded_ram80: EMBEDDEDRAM, # [ doc = "0x1c4 - Embedded RAM" ] - pub embedded_ram81: EMBEDDEDRAM81, + pub embedded_ram81: EMBEDDEDRAM, # [ doc = "0x1c8 - Embedded RAM" ] - pub embedded_ram82: EMBEDDEDRAM82, + pub embedded_ram82: EMBEDDEDRAM, # [ doc = "0x1cc - Embedded RAM" ] - pub embedded_ram83: EMBEDDEDRAM83, + pub embedded_ram83: EMBEDDEDRAM, # [ doc = "0x1d0 - Embedded RAM" ] - pub embedded_ram84: EMBEDDEDRAM84, + pub embedded_ram84: EMBEDDEDRAM, # [ doc = "0x1d4 - Embedded RAM" ] - pub embedded_ram85: EMBEDDEDRAM85, + pub embedded_ram85: EMBEDDEDRAM, # [ doc = "0x1d8 - Embedded RAM" ] - pub embedded_ram86: EMBEDDEDRAM86, + pub embedded_ram86: EMBEDDEDRAM, # [ doc = "0x1dc - Embedded RAM" ] - pub embedded_ram87: EMBEDDEDRAM87, + pub embedded_ram87: EMBEDDEDRAM, # [ doc = "0x1e0 - Embedded RAM" ] - pub embedded_ram88: EMBEDDEDRAM88, + pub embedded_ram88: EMBEDDEDRAM, # [ doc = "0x1e4 - Embedded RAM" ] - pub embedded_ram89: EMBEDDEDRAM89, + pub embedded_ram89: EMBEDDEDRAM, # [ doc = "0x1e8 - Embedded RAM" ] - pub embedded_ram90: EMBEDDEDRAM90, + pub embedded_ram90: EMBEDDEDRAM, # [ doc = "0x1ec - Embedded RAM" ] - pub embedded_ram91: EMBEDDEDRAM91, + pub embedded_ram91: EMBEDDEDRAM, # [ doc = "0x1f0 - Embedded RAM" ] - pub embedded_ram92: EMBEDDEDRAM92, + pub embedded_ram92: EMBEDDEDRAM, # [ doc = "0x1f4 - Embedded RAM" ] - pub embedded_ram93: EMBEDDEDRAM93, + pub embedded_ram93: EMBEDDEDRAM, # [ doc = "0x1f8 - Embedded RAM" ] - pub embedded_ram94: EMBEDDEDRAM94, + pub embedded_ram94: EMBEDDEDRAM, # [ doc = "0x1fc - Embedded RAM" ] - pub embedded_ram95: EMBEDDEDRAM95, + pub embedded_ram95: EMBEDDEDRAM, # [ doc = "0x200 - Embedded RAM" ] - pub embedded_ram96: EMBEDDEDRAM96, + pub embedded_ram96: EMBEDDEDRAM, # [ doc = "0x204 - Embedded RAM" ] - pub embedded_ram97: EMBEDDEDRAM97, + pub embedded_ram97: EMBEDDEDRAM, # [ doc = "0x208 - Embedded RAM" ] - pub embedded_ram98: EMBEDDEDRAM98, + pub embedded_ram98: EMBEDDEDRAM, # [ doc = "0x20c - Embedded RAM" ] - pub embedded_ram99: EMBEDDEDRAM99, + pub embedded_ram99: EMBEDDEDRAM, # [ doc = "0x210 - Embedded RAM" ] - pub embedded_ram100: EMBEDDEDRAM100, + pub embedded_ram100: EMBEDDEDRAM, # [ doc = "0x214 - Embedded RAM" ] - pub embedded_ram101: EMBEDDEDRAM101, + pub embedded_ram101: EMBEDDEDRAM, # [ doc = "0x218 - Embedded RAM" ] - pub embedded_ram102: EMBEDDEDRAM102, + pub embedded_ram102: EMBEDDEDRAM, # [ doc = "0x21c - Embedded RAM" ] - pub embedded_ram103: EMBEDDEDRAM103, + pub embedded_ram103: EMBEDDEDRAM, # [ doc = "0x220 - Embedded RAM" ] - pub embedded_ram104: EMBEDDEDRAM104, + pub embedded_ram104: EMBEDDEDRAM, # [ doc = "0x224 - Embedded RAM" ] - pub embedded_ram105: EMBEDDEDRAM105, + pub embedded_ram105: EMBEDDEDRAM, # [ doc = "0x228 - Embedded RAM" ] - pub embedded_ram106: EMBEDDEDRAM106, + pub embedded_ram106: EMBEDDEDRAM, # [ doc = "0x22c - Embedded RAM" ] - pub embedded_ram107: EMBEDDEDRAM107, + pub embedded_ram107: EMBEDDEDRAM, # [ doc = "0x230 - Embedded RAM" ] - pub embedded_ram108: EMBEDDEDRAM108, + pub embedded_ram108: EMBEDDEDRAM, # [ doc = "0x234 - Embedded RAM" ] - pub embedded_ram109: EMBEDDEDRAM109, + pub embedded_ram109: EMBEDDEDRAM, # [ doc = "0x238 - Embedded RAM" ] - pub embedded_ram110: EMBEDDEDRAM110, + pub embedded_ram110: EMBEDDEDRAM, # [ doc = "0x23c - Embedded RAM" ] - pub embedded_ram111: EMBEDDEDRAM111, + pub embedded_ram111: EMBEDDEDRAM, # [ doc = "0x240 - Embedded RAM" ] - pub embedded_ram112: EMBEDDEDRAM112, + pub embedded_ram112: EMBEDDEDRAM, # [ doc = "0x244 - Embedded RAM" ] - pub embedded_ram113: EMBEDDEDRAM113, + pub embedded_ram113: EMBEDDEDRAM, # [ doc = "0x248 - Embedded RAM" ] - pub embedded_ram114: EMBEDDEDRAM114, + pub embedded_ram114: EMBEDDEDRAM, # [ doc = "0x24c - Embedded RAM" ] - pub embedded_ram115: EMBEDDEDRAM115, + pub embedded_ram115: EMBEDDEDRAM, # [ doc = "0x250 - Embedded RAM" ] - pub embedded_ram116: EMBEDDEDRAM116, + pub embedded_ram116: EMBEDDEDRAM, # [ doc = "0x254 - Embedded RAM" ] - pub embedded_ram117: EMBEDDEDRAM117, + pub embedded_ram117: EMBEDDEDRAM, # [ doc = "0x258 - Embedded RAM" ] - pub embedded_ram118: EMBEDDEDRAM118, + pub embedded_ram118: EMBEDDEDRAM, # [ doc = "0x25c - Embedded RAM" ] - pub embedded_ram119: EMBEDDEDRAM119, + pub embedded_ram119: EMBEDDEDRAM, # [ doc = "0x260 - Embedded RAM" ] - pub embedded_ram120: EMBEDDEDRAM120, + pub embedded_ram120: EMBEDDEDRAM, # [ doc = "0x264 - Embedded RAM" ] - pub embedded_ram121: EMBEDDEDRAM121, + pub embedded_ram121: EMBEDDEDRAM, # [ doc = "0x268 - Embedded RAM" ] - pub embedded_ram122: EMBEDDEDRAM122, + pub embedded_ram122: EMBEDDEDRAM, # [ doc = "0x26c - Embedded RAM" ] - pub embedded_ram123: EMBEDDEDRAM123, + pub embedded_ram123: EMBEDDEDRAM, # [ doc = "0x270 - Embedded RAM" ] - pub embedded_ram124: EMBEDDEDRAM124, + pub embedded_ram124: EMBEDDEDRAM, # [ doc = "0x274 - Embedded RAM" ] - pub embedded_ram125: EMBEDDEDRAM125, + pub embedded_ram125: EMBEDDEDRAM, # [ doc = "0x278 - Embedded RAM" ] - pub embedded_ram126: EMBEDDEDRAM126, + pub embedded_ram126: EMBEDDEDRAM, # [ doc = "0x27c - Embedded RAM" ] - pub embedded_ram127: EMBEDDEDRAM127, + pub embedded_ram127: EMBEDDEDRAM, _reserved5: [u8; 1536usize], # [ doc = "0x880 - Rx Individual Mask Registers" ] pub rximr0: RXIMR0, @@ -195811,11 +166474,11 @@ pub mod can1 { } } # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM0 { + pub struct EMBEDDEDRAM { register: VolatileCell, } # [ doc = "Embedded RAM" ] - pub mod embedded_ram0 { + pub mod embedded_ram { # [ doc = r" Value read from the register" ] pub struct R { bits: u32, @@ -195824,29344 +166487,7 @@ pub mod can1 { pub struct W { bits: u32, } - impl super::EMBEDDEDRAM0 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM1 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram1 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM1 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM2 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram2 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM2 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM3 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram3 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM3 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM4 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram4 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM4 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM5 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram5 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM5 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM6 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram6 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM6 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM7 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram7 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM7 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM8 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram8 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM8 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM9 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram9 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM9 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM10 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram10 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM10 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM11 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram11 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM11 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM12 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram12 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM12 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM13 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram13 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM13 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM14 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram14 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM14 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM15 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram15 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM15 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM16 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram16 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM16 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM17 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram17 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM17 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM18 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram18 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM18 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM19 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram19 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM19 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM20 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram20 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM20 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM21 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram21 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM21 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM22 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram22 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM22 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM23 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram23 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM23 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM24 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram24 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM24 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM25 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram25 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM25 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM26 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram26 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM26 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM27 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram27 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM27 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM28 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram28 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM28 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM29 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram29 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM29 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM30 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram30 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM30 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM31 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram31 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM31 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM32 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram32 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM32 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM33 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram33 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM33 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM34 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram34 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM34 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM35 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram35 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM35 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM36 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram36 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM36 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM37 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram37 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM37 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM38 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram38 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM38 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM39 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram39 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM39 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM40 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram40 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM40 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM41 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram41 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM41 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM42 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram42 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM42 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM43 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram43 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM43 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM44 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram44 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM44 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM45 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram45 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM45 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM46 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram46 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM46 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM47 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram47 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM47 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM48 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram48 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM48 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM49 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram49 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM49 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM50 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram50 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM50 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM51 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram51 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM51 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM52 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram52 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM52 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM53 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram53 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM53 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM54 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram54 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM54 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM55 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram55 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM55 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM56 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram56 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM56 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM57 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram57 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM57 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM58 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram58 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM58 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM59 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram59 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM59 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM60 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram60 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM60 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM61 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram61 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM61 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM62 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram62 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM62 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM63 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram63 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM63 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM64 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram64 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM64 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM65 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram65 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM65 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM66 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram66 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM66 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM67 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram67 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM67 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM68 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram68 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM68 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM69 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram69 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM69 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM70 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram70 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM70 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM71 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram71 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM71 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM72 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram72 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM72 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM73 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram73 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM73 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM74 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram74 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM74 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM75 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram75 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM75 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM76 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram76 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM76 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM77 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram77 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM77 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM78 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram78 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM78 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM79 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram79 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM79 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM80 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram80 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM80 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM81 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram81 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM81 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM82 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram82 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM82 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM83 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram83 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM83 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM84 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram84 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM84 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM85 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram85 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM85 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM86 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram86 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM86 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM87 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram87 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM87 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM88 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram88 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM88 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM89 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram89 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM89 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM90 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram90 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM90 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM91 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram91 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM91 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM92 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram92 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM92 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM93 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram93 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM93 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM94 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram94 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM94 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM95 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram95 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM95 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM96 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram96 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM96 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM97 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram97 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM97 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM98 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram98 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM98 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM99 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram99 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM99 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM100 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram100 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM100 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM101 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram101 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM101 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM102 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram102 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM102 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM103 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram103 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM103 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM104 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram104 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM104 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM105 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram105 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM105 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM106 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram106 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM106 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM107 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram107 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM107 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM108 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram108 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM108 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM109 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram109 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM109 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM110 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram110 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM110 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM111 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram111 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM111 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM112 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram112 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM112 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM113 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram113 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM113 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM114 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram114 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM114 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM115 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram115 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM115 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM116 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram116 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM116 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM117 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram117 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM117 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM118 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram118 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM118 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM119 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram119 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM119 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM120 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram120 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM120 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM121 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram121 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM121 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM122 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram122 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM122 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM123 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram123 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM123 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM124 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram124 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM124 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM125 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram125 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM125 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM126 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram126 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM126 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM127 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram127 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM127 { + impl super::EMBEDDEDRAM { # [ doc = r" Modifies the contents of the register" ] # [ inline ( always ) ] pub fn modify(&self, f: F) @@ -232968,261 +174294,261 @@ pub mod can2 { pub cbt: CBT, _reserved4: [u8; 44usize], # [ doc = "0x80 - Embedded RAM" ] - pub embedded_ram0: EMBEDDEDRAM0, + pub embedded_ram0: EMBEDDEDRAM, # [ doc = "0x84 - Embedded RAM" ] - pub embedded_ram1: EMBEDDEDRAM1, + pub embedded_ram1: EMBEDDEDRAM, # [ doc = "0x88 - Embedded RAM" ] - pub embedded_ram2: EMBEDDEDRAM2, + pub embedded_ram2: EMBEDDEDRAM, # [ doc = "0x8c - Embedded RAM" ] - pub embedded_ram3: EMBEDDEDRAM3, + pub embedded_ram3: EMBEDDEDRAM, # [ doc = "0x90 - Embedded RAM" ] - pub embedded_ram4: EMBEDDEDRAM4, + pub embedded_ram4: EMBEDDEDRAM, # [ doc = "0x94 - Embedded RAM" ] - pub embedded_ram5: EMBEDDEDRAM5, + pub embedded_ram5: EMBEDDEDRAM, # [ doc = "0x98 - Embedded RAM" ] - pub embedded_ram6: EMBEDDEDRAM6, + pub embedded_ram6: EMBEDDEDRAM, # [ doc = "0x9c - Embedded RAM" ] - pub embedded_ram7: EMBEDDEDRAM7, + pub embedded_ram7: EMBEDDEDRAM, # [ doc = "0xa0 - Embedded RAM" ] - pub embedded_ram8: EMBEDDEDRAM8, + pub embedded_ram8: EMBEDDEDRAM, # [ doc = "0xa4 - Embedded RAM" ] - pub embedded_ram9: EMBEDDEDRAM9, + pub embedded_ram9: EMBEDDEDRAM, # [ doc = "0xa8 - Embedded RAM" ] - pub embedded_ram10: EMBEDDEDRAM10, + pub embedded_ram10: EMBEDDEDRAM, # [ doc = "0xac - Embedded RAM" ] - pub embedded_ram11: EMBEDDEDRAM11, + pub embedded_ram11: EMBEDDEDRAM, # [ doc = "0xb0 - Embedded RAM" ] - pub embedded_ram12: EMBEDDEDRAM12, + pub embedded_ram12: EMBEDDEDRAM, # [ doc = "0xb4 - Embedded RAM" ] - pub embedded_ram13: EMBEDDEDRAM13, + pub embedded_ram13: EMBEDDEDRAM, # [ doc = "0xb8 - Embedded RAM" ] - pub embedded_ram14: EMBEDDEDRAM14, + pub embedded_ram14: EMBEDDEDRAM, # [ doc = "0xbc - Embedded RAM" ] - pub embedded_ram15: EMBEDDEDRAM15, + pub embedded_ram15: EMBEDDEDRAM, # [ doc = "0xc0 - Embedded RAM" ] - pub embedded_ram16: EMBEDDEDRAM16, + pub embedded_ram16: EMBEDDEDRAM, # [ doc = "0xc4 - Embedded RAM" ] - pub embedded_ram17: EMBEDDEDRAM17, + pub embedded_ram17: EMBEDDEDRAM, # [ doc = "0xc8 - Embedded RAM" ] - pub embedded_ram18: EMBEDDEDRAM18, + pub embedded_ram18: EMBEDDEDRAM, # [ doc = "0xcc - Embedded RAM" ] - pub embedded_ram19: EMBEDDEDRAM19, + pub embedded_ram19: EMBEDDEDRAM, # [ doc = "0xd0 - Embedded RAM" ] - pub embedded_ram20: EMBEDDEDRAM20, + pub embedded_ram20: EMBEDDEDRAM, # [ doc = "0xd4 - Embedded RAM" ] - pub embedded_ram21: EMBEDDEDRAM21, + pub embedded_ram21: EMBEDDEDRAM, # [ doc = "0xd8 - Embedded RAM" ] - pub embedded_ram22: EMBEDDEDRAM22, + pub embedded_ram22: EMBEDDEDRAM, # [ doc = "0xdc - Embedded RAM" ] - pub embedded_ram23: EMBEDDEDRAM23, + pub embedded_ram23: EMBEDDEDRAM, # [ doc = "0xe0 - Embedded RAM" ] - pub embedded_ram24: EMBEDDEDRAM24, + pub embedded_ram24: EMBEDDEDRAM, # [ doc = "0xe4 - Embedded RAM" ] - pub embedded_ram25: EMBEDDEDRAM25, + pub embedded_ram25: EMBEDDEDRAM, # [ doc = "0xe8 - Embedded RAM" ] - pub embedded_ram26: EMBEDDEDRAM26, + pub embedded_ram26: EMBEDDEDRAM, # [ doc = "0xec - Embedded RAM" ] - pub embedded_ram27: EMBEDDEDRAM27, + pub embedded_ram27: EMBEDDEDRAM, # [ doc = "0xf0 - Embedded RAM" ] - pub embedded_ram28: EMBEDDEDRAM28, + pub embedded_ram28: EMBEDDEDRAM, # [ doc = "0xf4 - Embedded RAM" ] - pub embedded_ram29: EMBEDDEDRAM29, + pub embedded_ram29: EMBEDDEDRAM, # [ doc = "0xf8 - Embedded RAM" ] - pub embedded_ram30: EMBEDDEDRAM30, + pub embedded_ram30: EMBEDDEDRAM, # [ doc = "0xfc - Embedded RAM" ] - pub embedded_ram31: EMBEDDEDRAM31, + pub embedded_ram31: EMBEDDEDRAM, # [ doc = "0x100 - Embedded RAM" ] - pub embedded_ram32: EMBEDDEDRAM32, + pub embedded_ram32: EMBEDDEDRAM, # [ doc = "0x104 - Embedded RAM" ] - pub embedded_ram33: EMBEDDEDRAM33, + pub embedded_ram33: EMBEDDEDRAM, # [ doc = "0x108 - Embedded RAM" ] - pub embedded_ram34: EMBEDDEDRAM34, + pub embedded_ram34: EMBEDDEDRAM, # [ doc = "0x10c - Embedded RAM" ] - pub embedded_ram35: EMBEDDEDRAM35, + pub embedded_ram35: EMBEDDEDRAM, # [ doc = "0x110 - Embedded RAM" ] - pub embedded_ram36: EMBEDDEDRAM36, + pub embedded_ram36: EMBEDDEDRAM, # [ doc = "0x114 - Embedded RAM" ] - pub embedded_ram37: EMBEDDEDRAM37, + pub embedded_ram37: EMBEDDEDRAM, # [ doc = "0x118 - Embedded RAM" ] - pub embedded_ram38: EMBEDDEDRAM38, + pub embedded_ram38: EMBEDDEDRAM, # [ doc = "0x11c - Embedded RAM" ] - pub embedded_ram39: EMBEDDEDRAM39, + pub embedded_ram39: EMBEDDEDRAM, # [ doc = "0x120 - Embedded RAM" ] - pub embedded_ram40: EMBEDDEDRAM40, + pub embedded_ram40: EMBEDDEDRAM, # [ doc = "0x124 - Embedded RAM" ] - pub embedded_ram41: EMBEDDEDRAM41, + pub embedded_ram41: EMBEDDEDRAM, # [ doc = "0x128 - Embedded RAM" ] - pub embedded_ram42: EMBEDDEDRAM42, + pub embedded_ram42: EMBEDDEDRAM, # [ doc = "0x12c - Embedded RAM" ] - pub embedded_ram43: EMBEDDEDRAM43, + pub embedded_ram43: EMBEDDEDRAM, # [ doc = "0x130 - Embedded RAM" ] - pub embedded_ram44: EMBEDDEDRAM44, + pub embedded_ram44: EMBEDDEDRAM, # [ doc = "0x134 - Embedded RAM" ] - pub embedded_ram45: EMBEDDEDRAM45, + pub embedded_ram45: EMBEDDEDRAM, # [ doc = "0x138 - Embedded RAM" ] - pub embedded_ram46: EMBEDDEDRAM46, + pub embedded_ram46: EMBEDDEDRAM, # [ doc = "0x13c - Embedded RAM" ] - pub embedded_ram47: EMBEDDEDRAM47, + pub embedded_ram47: EMBEDDEDRAM, # [ doc = "0x140 - Embedded RAM" ] - pub embedded_ram48: EMBEDDEDRAM48, + pub embedded_ram48: EMBEDDEDRAM, # [ doc = "0x144 - Embedded RAM" ] - pub embedded_ram49: EMBEDDEDRAM49, + pub embedded_ram49: EMBEDDEDRAM, # [ doc = "0x148 - Embedded RAM" ] - pub embedded_ram50: EMBEDDEDRAM50, + pub embedded_ram50: EMBEDDEDRAM, # [ doc = "0x14c - Embedded RAM" ] - pub embedded_ram51: EMBEDDEDRAM51, + pub embedded_ram51: EMBEDDEDRAM, # [ doc = "0x150 - Embedded RAM" ] - pub embedded_ram52: EMBEDDEDRAM52, + pub embedded_ram52: EMBEDDEDRAM, # [ doc = "0x154 - Embedded RAM" ] - pub embedded_ram53: EMBEDDEDRAM53, + pub embedded_ram53: EMBEDDEDRAM, # [ doc = "0x158 - Embedded RAM" ] - pub embedded_ram54: EMBEDDEDRAM54, + pub embedded_ram54: EMBEDDEDRAM, # [ doc = "0x15c - Embedded RAM" ] - pub embedded_ram55: EMBEDDEDRAM55, + pub embedded_ram55: EMBEDDEDRAM, # [ doc = "0x160 - Embedded RAM" ] - pub embedded_ram56: EMBEDDEDRAM56, + pub embedded_ram56: EMBEDDEDRAM, # [ doc = "0x164 - Embedded RAM" ] - pub embedded_ram57: EMBEDDEDRAM57, + pub embedded_ram57: EMBEDDEDRAM, # [ doc = "0x168 - Embedded RAM" ] - pub embedded_ram58: EMBEDDEDRAM58, + pub embedded_ram58: EMBEDDEDRAM, # [ doc = "0x16c - Embedded RAM" ] - pub embedded_ram59: EMBEDDEDRAM59, + pub embedded_ram59: EMBEDDEDRAM, # [ doc = "0x170 - Embedded RAM" ] - pub embedded_ram60: EMBEDDEDRAM60, + pub embedded_ram60: EMBEDDEDRAM, # [ doc = "0x174 - Embedded RAM" ] - pub embedded_ram61: EMBEDDEDRAM61, + pub embedded_ram61: EMBEDDEDRAM, # [ doc = "0x178 - Embedded RAM" ] - pub embedded_ram62: EMBEDDEDRAM62, + pub embedded_ram62: EMBEDDEDRAM, # [ doc = "0x17c - Embedded RAM" ] - pub embedded_ram63: EMBEDDEDRAM63, + pub embedded_ram63: EMBEDDEDRAM, # [ doc = "0x180 - Embedded RAM" ] - pub embedded_ram64: EMBEDDEDRAM64, + pub embedded_ram64: EMBEDDEDRAM, # [ doc = "0x184 - Embedded RAM" ] - pub embedded_ram65: EMBEDDEDRAM65, + pub embedded_ram65: EMBEDDEDRAM, # [ doc = "0x188 - Embedded RAM" ] - pub embedded_ram66: EMBEDDEDRAM66, + pub embedded_ram66: EMBEDDEDRAM, # [ doc = "0x18c - Embedded RAM" ] - pub embedded_ram67: EMBEDDEDRAM67, + pub embedded_ram67: EMBEDDEDRAM, # [ doc = "0x190 - Embedded RAM" ] - pub embedded_ram68: EMBEDDEDRAM68, + pub embedded_ram68: EMBEDDEDRAM, # [ doc = "0x194 - Embedded RAM" ] - pub embedded_ram69: EMBEDDEDRAM69, + pub embedded_ram69: EMBEDDEDRAM, # [ doc = "0x198 - Embedded RAM" ] - pub embedded_ram70: EMBEDDEDRAM70, + pub embedded_ram70: EMBEDDEDRAM, # [ doc = "0x19c - Embedded RAM" ] - pub embedded_ram71: EMBEDDEDRAM71, + pub embedded_ram71: EMBEDDEDRAM, # [ doc = "0x1a0 - Embedded RAM" ] - pub embedded_ram72: EMBEDDEDRAM72, + pub embedded_ram72: EMBEDDEDRAM, # [ doc = "0x1a4 - Embedded RAM" ] - pub embedded_ram73: EMBEDDEDRAM73, + pub embedded_ram73: EMBEDDEDRAM, # [ doc = "0x1a8 - Embedded RAM" ] - pub embedded_ram74: EMBEDDEDRAM74, + pub embedded_ram74: EMBEDDEDRAM, # [ doc = "0x1ac - Embedded RAM" ] - pub embedded_ram75: EMBEDDEDRAM75, + pub embedded_ram75: EMBEDDEDRAM, # [ doc = "0x1b0 - Embedded RAM" ] - pub embedded_ram76: EMBEDDEDRAM76, + pub embedded_ram76: EMBEDDEDRAM, # [ doc = "0x1b4 - Embedded RAM" ] - pub embedded_ram77: EMBEDDEDRAM77, + pub embedded_ram77: EMBEDDEDRAM, # [ doc = "0x1b8 - Embedded RAM" ] - pub embedded_ram78: EMBEDDEDRAM78, + pub embedded_ram78: EMBEDDEDRAM, # [ doc = "0x1bc - Embedded RAM" ] - pub embedded_ram79: EMBEDDEDRAM79, + pub embedded_ram79: EMBEDDEDRAM, # [ doc = "0x1c0 - Embedded RAM" ] - pub embedded_ram80: EMBEDDEDRAM80, + pub embedded_ram80: EMBEDDEDRAM, # [ doc = "0x1c4 - Embedded RAM" ] - pub embedded_ram81: EMBEDDEDRAM81, + pub embedded_ram81: EMBEDDEDRAM, # [ doc = "0x1c8 - Embedded RAM" ] - pub embedded_ram82: EMBEDDEDRAM82, + pub embedded_ram82: EMBEDDEDRAM, # [ doc = "0x1cc - Embedded RAM" ] - pub embedded_ram83: EMBEDDEDRAM83, + pub embedded_ram83: EMBEDDEDRAM, # [ doc = "0x1d0 - Embedded RAM" ] - pub embedded_ram84: EMBEDDEDRAM84, + pub embedded_ram84: EMBEDDEDRAM, # [ doc = "0x1d4 - Embedded RAM" ] - pub embedded_ram85: EMBEDDEDRAM85, + pub embedded_ram85: EMBEDDEDRAM, # [ doc = "0x1d8 - Embedded RAM" ] - pub embedded_ram86: EMBEDDEDRAM86, + pub embedded_ram86: EMBEDDEDRAM, # [ doc = "0x1dc - Embedded RAM" ] - pub embedded_ram87: EMBEDDEDRAM87, + pub embedded_ram87: EMBEDDEDRAM, # [ doc = "0x1e0 - Embedded RAM" ] - pub embedded_ram88: EMBEDDEDRAM88, + pub embedded_ram88: EMBEDDEDRAM, # [ doc = "0x1e4 - Embedded RAM" ] - pub embedded_ram89: EMBEDDEDRAM89, + pub embedded_ram89: EMBEDDEDRAM, # [ doc = "0x1e8 - Embedded RAM" ] - pub embedded_ram90: EMBEDDEDRAM90, + pub embedded_ram90: EMBEDDEDRAM, # [ doc = "0x1ec - Embedded RAM" ] - pub embedded_ram91: EMBEDDEDRAM91, + pub embedded_ram91: EMBEDDEDRAM, # [ doc = "0x1f0 - Embedded RAM" ] - pub embedded_ram92: EMBEDDEDRAM92, + pub embedded_ram92: EMBEDDEDRAM, # [ doc = "0x1f4 - Embedded RAM" ] - pub embedded_ram93: EMBEDDEDRAM93, + pub embedded_ram93: EMBEDDEDRAM, # [ doc = "0x1f8 - Embedded RAM" ] - pub embedded_ram94: EMBEDDEDRAM94, + pub embedded_ram94: EMBEDDEDRAM, # [ doc = "0x1fc - Embedded RAM" ] - pub embedded_ram95: EMBEDDEDRAM95, + pub embedded_ram95: EMBEDDEDRAM, # [ doc = "0x200 - Embedded RAM" ] - pub embedded_ram96: EMBEDDEDRAM96, + pub embedded_ram96: EMBEDDEDRAM, # [ doc = "0x204 - Embedded RAM" ] - pub embedded_ram97: EMBEDDEDRAM97, + pub embedded_ram97: EMBEDDEDRAM, # [ doc = "0x208 - Embedded RAM" ] - pub embedded_ram98: EMBEDDEDRAM98, + pub embedded_ram98: EMBEDDEDRAM, # [ doc = "0x20c - Embedded RAM" ] - pub embedded_ram99: EMBEDDEDRAM99, + pub embedded_ram99: EMBEDDEDRAM, # [ doc = "0x210 - Embedded RAM" ] - pub embedded_ram100: EMBEDDEDRAM100, + pub embedded_ram100: EMBEDDEDRAM, # [ doc = "0x214 - Embedded RAM" ] - pub embedded_ram101: EMBEDDEDRAM101, + pub embedded_ram101: EMBEDDEDRAM, # [ doc = "0x218 - Embedded RAM" ] - pub embedded_ram102: EMBEDDEDRAM102, + pub embedded_ram102: EMBEDDEDRAM, # [ doc = "0x21c - Embedded RAM" ] - pub embedded_ram103: EMBEDDEDRAM103, + pub embedded_ram103: EMBEDDEDRAM, # [ doc = "0x220 - Embedded RAM" ] - pub embedded_ram104: EMBEDDEDRAM104, + pub embedded_ram104: EMBEDDEDRAM, # [ doc = "0x224 - Embedded RAM" ] - pub embedded_ram105: EMBEDDEDRAM105, + pub embedded_ram105: EMBEDDEDRAM, # [ doc = "0x228 - Embedded RAM" ] - pub embedded_ram106: EMBEDDEDRAM106, + pub embedded_ram106: EMBEDDEDRAM, # [ doc = "0x22c - Embedded RAM" ] - pub embedded_ram107: EMBEDDEDRAM107, + pub embedded_ram107: EMBEDDEDRAM, # [ doc = "0x230 - Embedded RAM" ] - pub embedded_ram108: EMBEDDEDRAM108, + pub embedded_ram108: EMBEDDEDRAM, # [ doc = "0x234 - Embedded RAM" ] - pub embedded_ram109: EMBEDDEDRAM109, + pub embedded_ram109: EMBEDDEDRAM, # [ doc = "0x238 - Embedded RAM" ] - pub embedded_ram110: EMBEDDEDRAM110, + pub embedded_ram110: EMBEDDEDRAM, # [ doc = "0x23c - Embedded RAM" ] - pub embedded_ram111: EMBEDDEDRAM111, + pub embedded_ram111: EMBEDDEDRAM, # [ doc = "0x240 - Embedded RAM" ] - pub embedded_ram112: EMBEDDEDRAM112, + pub embedded_ram112: EMBEDDEDRAM, # [ doc = "0x244 - Embedded RAM" ] - pub embedded_ram113: EMBEDDEDRAM113, + pub embedded_ram113: EMBEDDEDRAM, # [ doc = "0x248 - Embedded RAM" ] - pub embedded_ram114: EMBEDDEDRAM114, + pub embedded_ram114: EMBEDDEDRAM, # [ doc = "0x24c - Embedded RAM" ] - pub embedded_ram115: EMBEDDEDRAM115, + pub embedded_ram115: EMBEDDEDRAM, # [ doc = "0x250 - Embedded RAM" ] - pub embedded_ram116: EMBEDDEDRAM116, + pub embedded_ram116: EMBEDDEDRAM, # [ doc = "0x254 - Embedded RAM" ] - pub embedded_ram117: EMBEDDEDRAM117, + pub embedded_ram117: EMBEDDEDRAM, # [ doc = "0x258 - Embedded RAM" ] - pub embedded_ram118: EMBEDDEDRAM118, + pub embedded_ram118: EMBEDDEDRAM, # [ doc = "0x25c - Embedded RAM" ] - pub embedded_ram119: EMBEDDEDRAM119, + pub embedded_ram119: EMBEDDEDRAM, # [ doc = "0x260 - Embedded RAM" ] - pub embedded_ram120: EMBEDDEDRAM120, + pub embedded_ram120: EMBEDDEDRAM, # [ doc = "0x264 - Embedded RAM" ] - pub embedded_ram121: EMBEDDEDRAM121, + pub embedded_ram121: EMBEDDEDRAM, # [ doc = "0x268 - Embedded RAM" ] - pub embedded_ram122: EMBEDDEDRAM122, + pub embedded_ram122: EMBEDDEDRAM, # [ doc = "0x26c - Embedded RAM" ] - pub embedded_ram123: EMBEDDEDRAM123, + pub embedded_ram123: EMBEDDEDRAM, # [ doc = "0x270 - Embedded RAM" ] - pub embedded_ram124: EMBEDDEDRAM124, + pub embedded_ram124: EMBEDDEDRAM, # [ doc = "0x274 - Embedded RAM" ] - pub embedded_ram125: EMBEDDEDRAM125, + pub embedded_ram125: EMBEDDEDRAM, # [ doc = "0x278 - Embedded RAM" ] - pub embedded_ram126: EMBEDDEDRAM126, + pub embedded_ram126: EMBEDDEDRAM, # [ doc = "0x27c - Embedded RAM" ] - pub embedded_ram127: EMBEDDEDRAM127, + pub embedded_ram127: EMBEDDEDRAM, _reserved5: [u8; 1536usize], # [ doc = "0x880 - Rx Individual Mask Registers" ] pub rximr0: RXIMR0, @@ -242210,11 +183536,11 @@ pub mod can2 { } } # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM0 { + pub struct EMBEDDEDRAM { register: VolatileCell, } # [ doc = "Embedded RAM" ] - pub mod embedded_ram0 { + pub mod embedded_ram { # [ doc = r" Value read from the register" ] pub struct R { bits: u32, @@ -242223,29344 +183549,7 @@ pub mod can2 { pub struct W { bits: u32, } - impl super::EMBEDDEDRAM0 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM1 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram1 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM1 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM2 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram2 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM2 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM3 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram3 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM3 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM4 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram4 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM4 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM5 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram5 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM5 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM6 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram6 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM6 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM7 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram7 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM7 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM8 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram8 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM8 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM9 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram9 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM9 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM10 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram10 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM10 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM11 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram11 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM11 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM12 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram12 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM12 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM13 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram13 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM13 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM14 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram14 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM14 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM15 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram15 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM15 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM16 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram16 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM16 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM17 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram17 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM17 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM18 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram18 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM18 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM19 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram19 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM19 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM20 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram20 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM20 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM21 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram21 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM21 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM22 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram22 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM22 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM23 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram23 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM23 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM24 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram24 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM24 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM25 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram25 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM25 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM26 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram26 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM26 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM27 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram27 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM27 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM28 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram28 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM28 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM29 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram29 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM29 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM30 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram30 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM30 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM31 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram31 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM31 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM32 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram32 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM32 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM33 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram33 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM33 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM34 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram34 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM34 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM35 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram35 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM35 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM36 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram36 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM36 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM37 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram37 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM37 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM38 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram38 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM38 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM39 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram39 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM39 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM40 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram40 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM40 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM41 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram41 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM41 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM42 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram42 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM42 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM43 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram43 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM43 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM44 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram44 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM44 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM45 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram45 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM45 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM46 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram46 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM46 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM47 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram47 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM47 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM48 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram48 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM48 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM49 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram49 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM49 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM50 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram50 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM50 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM51 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram51 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM51 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM52 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram52 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM52 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM53 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram53 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM53 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM54 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram54 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM54 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM55 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram55 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM55 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM56 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram56 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM56 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM57 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram57 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM57 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM58 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram58 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM58 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM59 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram59 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM59 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM60 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram60 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM60 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM61 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram61 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM61 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM62 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram62 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM62 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM63 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram63 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM63 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM64 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram64 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM64 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM65 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram65 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM65 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM66 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram66 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM66 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM67 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram67 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM67 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM68 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram68 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM68 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM69 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram69 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM69 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM70 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram70 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM70 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM71 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram71 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM71 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM72 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram72 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM72 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM73 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram73 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM73 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM74 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram74 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM74 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM75 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram75 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM75 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM76 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram76 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM76 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM77 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram77 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM77 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM78 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram78 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM78 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM79 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram79 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM79 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM80 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram80 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM80 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM81 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram81 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM81 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM82 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram82 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM82 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM83 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram83 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM83 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM84 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram84 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM84 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM85 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram85 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM85 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM86 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram86 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM86 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM87 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram87 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM87 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM88 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram88 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM88 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM89 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram89 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM89 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM90 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram90 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM90 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM91 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram91 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM91 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM92 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram92 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM92 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM93 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram93 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM93 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM94 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram94 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM94 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM95 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram95 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM95 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM96 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram96 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM96 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM97 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram97 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM97 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM98 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram98 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM98 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM99 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram99 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM99 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM100 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram100 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM100 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM101 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram101 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM101 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM102 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram102 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM102 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM103 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram103 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM103 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM104 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram104 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM104 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM105 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram105 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM105 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM106 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram106 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM106 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM107 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram107 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM107 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM108 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram108 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM108 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM109 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram109 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM109 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM110 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram110 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM110 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM111 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram111 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM111 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM112 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram112 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM112 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM113 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram113 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM113 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM114 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram114 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM114 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM115 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram115 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM115 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM116 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram116 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM116 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM117 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram117 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM117 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM118 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram118 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM118 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM119 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram119 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM119 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM120 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram120 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM120 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM121 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram121 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM121 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM122 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram122 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM122 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM123 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram123 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM123 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM124 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram124 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM124 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM125 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram125 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM125 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM126 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram126 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM126 { - # [ doc = r" Modifies the contents of the register" ] - # [ inline ( always ) ] - pub fn modify(&self, f: F) - where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - # [ doc = r" Reads the contents of the register" ] - # [ inline ( always ) ] - pub fn read(&self) -> R { - R { bits: self.register.get() } - } - # [ doc = r" Writes to the register" ] - # [ inline ( always ) ] - pub fn write(&self, f: F) - where F: FnOnce(&mut W) -> &mut W - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - # [ doc = r" Writes the reset value to the register" ] - # [ inline ( always ) ] - pub fn reset(&self) { - self.write(|w| w) - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_3R { - bits: u8, - } - impl DATA_BYTE_3R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_2R { - bits: u8, - } - impl DATA_BYTE_2R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_1R { - bits: u8, - } - impl DATA_BYTE_1R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Value of the field" ] - pub struct DATA_BYTE_0R { - bits: u8, - } - impl DATA_BYTE_0R { - # [ doc = r" Value of the field as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u8 { - self.bits - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_3W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_3W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_2W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_2W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_1W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_1W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - # [ doc = r" Proxy" ] - pub struct _DATA_BYTE_0W<'a> { - w: &'a mut W, - } - impl<'a> _DATA_BYTE_0W<'a> { - # [ doc = r" Writes raw bits to the field" ] - # [ inline ( always ) ] - pub unsafe fn bits(self, value: u8) -> &'a mut W { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } - } - impl R { - # [ doc = r" Value of the register as raw bits" ] - # [ inline ( always ) ] - pub fn bits(&self) -> u32 { - self.bits - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&self) -> DATA_BYTE_3R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_3R { bits } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&self) -> DATA_BYTE_2R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 8; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_2R { bits } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&self) -> DATA_BYTE_1R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 16; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_1R { bits } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&self) -> DATA_BYTE_0R { - let bits = { - const MASK: u8 = 255; - const OFFSET: u8 = 24; - ((self.bits >> OFFSET) & MASK as u32) as u8 - }; - DATA_BYTE_0R { bits } - } - } - impl W { - # [ doc = r" Reset value of the register" ] - # [ inline ( always ) ] - pub fn reset_value() -> W { - W { bits: 0 } - } - # [ doc = r" Writes raw bits to the register" ] - # [ inline ( always ) ] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - # [ doc = "Bits 0:7 - Data byte 3 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_3(&mut self) -> _DATA_BYTE_3W { - _DATA_BYTE_3W { w: self } - } - # [ doc = "Bits 8:15 - Data byte 2 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_2(&mut self) -> _DATA_BYTE_2W { - _DATA_BYTE_2W { w: self } - } - # [ doc = "Bits 16:23 - Data byte 1 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_1(&mut self) -> _DATA_BYTE_1W { - _DATA_BYTE_1W { w: self } - } - # [ doc = "Bits 24:31 - Data byte 0 of Rx/Tx frame." ] - # [ inline ( always ) ] - pub fn data_byte_0(&mut self) -> _DATA_BYTE_0W { - _DATA_BYTE_0W { w: self } - } - } - } - # [ doc = "Embedded RAM" ] - pub struct EMBEDDEDRAM127 { - register: VolatileCell, - } - # [ doc = "Embedded RAM" ] - pub mod embedded_ram127 { - # [ doc = r" Value read from the register" ] - pub struct R { - bits: u32, - } - # [ doc = r" Value to write to the register" ] - pub struct W { - bits: u32, - } - impl super::EMBEDDEDRAM127 { + impl super::EMBEDDEDRAM { # [ doc = r" Modifies the contents of the register" ] # [ inline ( always ) ] pub fn modify(&self, f: F)