1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - no description available"] pub b: [B; 4], _reserved1: [u8; 3968usize], #[doc = "0x1000 - no description available"] pub w: [W; 4], _reserved2: [u8; 3584usize], #[doc = "0x2000 - Direction registers for all port GPIO pins"] pub dir: [DIR; 4], _reserved3: [u8; 112usize], #[doc = "0x2080 - Mask register for all port GPIO pins"] pub mask: [MASK; 4], _reserved4: [u8; 112usize], #[doc = "0x2100 - Port pin register for all port GPIO pins"] pub pin: [PIN; 4], _reserved5: [u8; 112usize], #[doc = "0x2180 - Masked port register for all port GPIO pins"] pub mpin: [MPIN; 4], _reserved6: [u8; 112usize], #[doc = "0x2200 - Write: Set register for port. Read: output bits for port"] pub set: [SET; 4], _reserved7: [u8; 112usize], #[doc = "0x2280 - Clear port for all port GPIO pins"] pub clr: [CLR; 4], _reserved8: [u8; 112usize], #[doc = "0x2300 - Toggle port for all port GPIO pins"] pub not: [NOT; 4], _reserved9: [u8; 112usize], #[doc = "0x2380 - Set pin direction bits for port"] pub dirset: [DIRSET; 4], _reserved10: [u8; 112usize], #[doc = "0x2400 - Clear pin direction bits for port"] pub dirclr: [DIRCLR; 4], _reserved11: [u8; 112usize], #[doc = "0x2480 - Toggle pin direction bits for port"] pub dirnot: [DIRNOT; 4], } #[doc = r"Register block"] #[repr(C)] pub struct B { #[doc = "0x00 - Byte pin registers for all port GPIO pins"] pub b_: [self::b::B_; 32], } #[doc = r"Register block"] #[doc = "no description available"] pub mod b; #[doc = r"Register block"] #[repr(C)] pub struct W { #[doc = "0x00 - Word pin registers for all port GPIO pins"] pub w_: [self::w::W_; 32], } #[doc = r"Register block"] #[doc = "no description available"] pub mod w; #[doc = "Direction registers for all port GPIO pins\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [dir](dir) module"] pub type DIR = crate::Reg<u32, _DIR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _DIR; #[doc = "`read()` method returns [dir::R](dir::R) reader structure"] impl crate::Readable for DIR {} #[doc = "`write(|w| ..)` method takes [dir::W](dir::W) writer structure"] impl crate::Writable for DIR {} #[doc = "Direction registers for all port GPIO pins"] pub mod dir; #[doc = "Mask register for all port GPIO pins\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [mask](mask) module"] pub type MASK = crate::Reg<u32, _MASK>; #[allow(missing_docs)] #[doc(hidden)] pub struct _MASK; #[doc = "`read()` method returns [mask::R](mask::R) reader structure"] impl crate::Readable for MASK {} #[doc = "`write(|w| ..)` method takes [mask::W](mask::W) writer structure"] impl crate::Writable for MASK {} #[doc = "Mask register for all port GPIO pins"] pub mod mask; #[doc = "Port pin register for all port GPIO pins\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [pin](pin) module"] pub type PIN = crate::Reg<u32, _PIN>; #[allow(missing_docs)] #[doc(hidden)] pub struct _PIN; #[doc = "`read()` method returns [pin::R](pin::R) reader structure"] impl crate::Readable for PIN {} #[doc = "`write(|w| ..)` method takes [pin::W](pin::W) writer structure"] impl crate::Writable for PIN {} #[doc = "Port pin register for all port GPIO pins"] pub mod pin; #[doc = "Masked port register for all port GPIO pins\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [mpin](mpin) module"] pub type MPIN = crate::Reg<u32, _MPIN>; #[allow(missing_docs)] #[doc(hidden)] pub struct _MPIN; #[doc = "`read()` method returns [mpin::R](mpin::R) reader structure"] impl crate::Readable for MPIN {} #[doc = "`write(|w| ..)` method takes [mpin::W](mpin::W) writer structure"] impl crate::Writable for MPIN {} #[doc = "Masked port register for all port GPIO pins"] pub mod mpin; #[doc = "Write: Set register for port. Read: output bits for port\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [set](set) module"] pub type SET = crate::Reg<u32, _SET>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SET; #[doc = "`read()` method returns [set::R](set::R) reader structure"] impl crate::Readable for SET {} #[doc = "`write(|w| ..)` method takes [set::W](set::W) writer structure"] impl crate::Writable for SET {} #[doc = "Write: Set register for port. Read: output bits for port"] pub mod set; #[doc = "Clear port for all port GPIO pins\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [clr](clr) module"] pub type CLR = crate::Reg<u32, _CLR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CLR; #[doc = "`write(|w| ..)` method takes [clr::W](clr::W) writer structure"] impl crate::Writable for CLR {} #[doc = "Clear port for all port GPIO pins"] pub mod clr; #[doc = "Toggle port for all port GPIO pins\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [not](not) module"] pub type NOT = crate::Reg<u32, _NOT>; #[allow(missing_docs)] #[doc(hidden)] pub struct _NOT; #[doc = "`write(|w| ..)` method takes [not::W](not::W) writer structure"] impl crate::Writable for NOT {} #[doc = "Toggle port for all port GPIO pins"] pub mod not; #[doc = "Set pin direction bits for port\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [dirset](dirset) module"] pub type DIRSET = crate::Reg<u32, _DIRSET>; #[allow(missing_docs)] #[doc(hidden)] pub struct _DIRSET; #[doc = "`write(|w| ..)` method takes [dirset::W](dirset::W) writer structure"] impl crate::Writable for DIRSET {} #[doc = "Set pin direction bits for port"] pub mod dirset; #[doc = "Clear pin direction bits for port\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [dirclr](dirclr) module"] pub type DIRCLR = crate::Reg<u32, _DIRCLR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _DIRCLR; #[doc = "`write(|w| ..)` method takes [dirclr::W](dirclr::W) writer structure"] impl crate::Writable for DIRCLR {} #[doc = "Clear pin direction bits for port"] pub mod dirclr; #[doc = "Toggle pin direction bits for port\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [dirnot](dirnot) module"] pub type DIRNOT = crate::Reg<u32, _DIRNOT>; #[allow(missing_docs)] #[doc(hidden)] pub struct _DIRNOT; #[doc = "`write(|w| ..)` method takes [dirnot::W](dirnot::W) writer structure"] impl crate::Writable for DIRNOT {} #[doc = "Toggle pin direction bits for port"] pub mod dirnot;