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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Control Register"] pub cr: CR, #[doc = "0x04 - Mode Register"] pub mr: MR, #[doc = "0x08 - Receive Data Register"] pub rdr: RDR, #[doc = "0x0c - Transmit Data Register"] pub tdr: TDR, #[doc = "0x10 - Status Register"] pub sr: SR, #[doc = "0x14 - Interrupt Enable Register"] pub ier: IER, #[doc = "0x18 - Interrupt Disable Register"] pub idr: IDR, #[doc = "0x1c - Interrupt Mask Register"] pub imr: IMR, #[doc = "0x20 - Serial Clock Register"] pub scr: SCR, _reserved9: [u8; 12usize], #[doc = "0x30 - Instruction Address Register"] pub iar: IAR, #[doc = "0x34 - Instruction Code Register"] pub icr: ICR, #[doc = "0x38 - Instruction Frame Register"] pub ifr: IFR, _reserved12: [u8; 4usize], #[doc = "0x40 - Scrambling Mode Register"] pub smr: SMR, #[doc = "0x44 - Scrambling Key Register"] pub skr: SKR, _reserved14: [u8; 156usize], #[doc = "0xe4 - Write Protection Mode Register"] pub wpmr: WPMR, #[doc = "0xe8 - Write Protection Status Register"] pub wpsr: WPSR, } #[doc = "Control Register\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 available fields see [cr](cr) module"] pub type CR = crate::Reg<u32, _CR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CR; #[doc = "`write(|w| ..)` method takes [cr::W](cr::W) writer structure"] impl crate::Writable for CR {} #[doc = "Control Register"] pub mod cr; #[doc = "Mode Register\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 available fields see [mr](mr) module"] pub type MR = crate::Reg<u32, _MR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _MR; #[doc = "`read()` method returns [mr::R](mr::R) reader structure"] impl crate::Readable for MR {} #[doc = "`write(|w| ..)` method takes [mr::W](mr::W) writer structure"] impl crate::Writable for MR {} #[doc = "Mode Register"] pub mod mr; #[doc = "Receive Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rdr](rdr) module"] pub type RDR = crate::Reg<u32, _RDR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _RDR; #[doc = "`read()` method returns [rdr::R](rdr::R) reader structure"] impl crate::Readable for RDR {} #[doc = "Receive Data Register"] pub mod rdr; #[doc = "Transmit Data Register\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 available fields see [tdr](tdr) module"] pub type TDR = crate::Reg<u32, _TDR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _TDR; #[doc = "`write(|w| ..)` method takes [tdr::W](tdr::W) writer structure"] impl crate::Writable for TDR {} #[doc = "Transmit Data Register"] pub mod tdr; #[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [sr](sr) module"] pub type SR = crate::Reg<u32, _SR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SR; #[doc = "`read()` method returns [sr::R](sr::R) reader structure"] impl crate::Readable for SR {} #[doc = "Status Register"] pub mod sr; #[doc = "Interrupt Enable Register\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 available fields see [ier](ier) module"] pub type IER = crate::Reg<u32, _IER>; #[allow(missing_docs)] #[doc(hidden)] pub struct _IER; #[doc = "`write(|w| ..)` method takes [ier::W](ier::W) writer structure"] impl crate::Writable for IER {} #[doc = "Interrupt Enable Register"] pub mod ier; #[doc = "Interrupt Disable Register\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 available fields see [idr](idr) module"] pub type IDR = crate::Reg<u32, _IDR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _IDR; #[doc = "`write(|w| ..)` method takes [idr::W](idr::W) writer structure"] impl crate::Writable for IDR {} #[doc = "Interrupt Disable Register"] pub mod idr; #[doc = "Interrupt Mask Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [imr](imr) module"] pub type IMR = crate::Reg<u32, _IMR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _IMR; #[doc = "`read()` method returns [imr::R](imr::R) reader structure"] impl crate::Readable for IMR {} #[doc = "Interrupt Mask Register"] pub mod imr; #[doc = "Serial Clock Register\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 available fields see [scr](scr) module"] pub type SCR = crate::Reg<u32, _SCR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SCR; #[doc = "`read()` method returns [scr::R](scr::R) reader structure"] impl crate::Readable for SCR {} #[doc = "`write(|w| ..)` method takes [scr::W](scr::W) writer structure"] impl crate::Writable for SCR {} #[doc = "Serial Clock Register"] pub mod scr; #[doc = "Instruction Address Register\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 available fields see [iar](iar) module"] pub type IAR = crate::Reg<u32, _IAR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _IAR; #[doc = "`read()` method returns [iar::R](iar::R) reader structure"] impl crate::Readable for IAR {} #[doc = "`write(|w| ..)` method takes [iar::W](iar::W) writer structure"] impl crate::Writable for IAR {} #[doc = "Instruction Address Register"] pub mod iar; #[doc = "Instruction Code Register\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 available fields see [icr](icr) module"] pub type ICR = crate::Reg<u32, _ICR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _ICR; #[doc = "`read()` method returns [icr::R](icr::R) reader structure"] impl crate::Readable for ICR {} #[doc = "`write(|w| ..)` method takes [icr::W](icr::W) writer structure"] impl crate::Writable for ICR {} #[doc = "Instruction Code Register"] pub mod icr; #[doc = "Instruction Frame Register\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 available fields see [ifr](ifr) module"] pub type IFR = crate::Reg<u32, _IFR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _IFR; #[doc = "`read()` method returns [ifr::R](ifr::R) reader structure"] impl crate::Readable for IFR {} #[doc = "`write(|w| ..)` method takes [ifr::W](ifr::W) writer structure"] impl crate::Writable for IFR {} #[doc = "Instruction Frame Register"] pub mod ifr; #[doc = "Scrambling Mode Register\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 available fields see [smr](smr) module"] pub type SMR = crate::Reg<u32, _SMR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SMR; #[doc = "`read()` method returns [smr::R](smr::R) reader structure"] impl crate::Readable for SMR {} #[doc = "`write(|w| ..)` method takes [smr::W](smr::W) writer structure"] impl crate::Writable for SMR {} #[doc = "Scrambling Mode Register"] pub mod smr; #[doc = "Scrambling Key Register\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 available fields see [skr](skr) module"] pub type SKR = crate::Reg<u32, _SKR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SKR; #[doc = "`write(|w| ..)` method takes [skr::W](skr::W) writer structure"] impl crate::Writable for SKR {} #[doc = "Scrambling Key Register"] pub mod skr; #[doc = "Write Protection Mode Register\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 available fields see [wpmr](wpmr) module"] pub type WPMR = crate::Reg<u32, _WPMR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _WPMR; #[doc = "`read()` method returns [wpmr::R](wpmr::R) reader structure"] impl crate::Readable for WPMR {} #[doc = "`write(|w| ..)` method takes [wpmr::W](wpmr::W) writer structure"] impl crate::Writable for WPMR {} #[doc = "Write Protection Mode Register"] pub mod wpmr; #[doc = "Write Protection Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [wpsr](wpsr) module"] pub type WPSR = crate::Reg<u32, _WPSR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _WPSR; #[doc = "`read()` method returns [wpsr::R](wpsr::R) reader structure"] impl crate::Readable for WPSR {} #[doc = "Write Protection Status Register"] pub mod wpsr;