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
#[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 - Status Register"] pub sr: SR, #[doc = "0x0c - Status Clear Register"] pub scr: SCR, #[doc = "0x10 - Status Set Register"] pub ssr: SSR, #[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 - Receiver Holding Register"] pub rhr: RHR, #[doc = "0x24 - Transmitter Holding Register"] pub thr: THR, } #[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 = "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 = "Status Clear 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 [scr](scr) module"] pub type SCR = crate::Reg<u32, _SCR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SCR; #[doc = "`write(|w| ..)` method takes [scr::W](scr::W) writer structure"] impl crate::Writable for SCR {} #[doc = "Status Clear Register"] pub mod scr; #[doc = "Status Set 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 [ssr](ssr) module"] pub type SSR = crate::Reg<u32, _SSR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SSR; #[doc = "`write(|w| ..)` method takes [ssr::W](ssr::W) writer structure"] impl crate::Writable for SSR {} #[doc = "Status Set Register"] pub mod ssr; #[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 = "Receiver Holding 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 [rhr](rhr) module"] pub type RHR = crate::Reg<u32, _RHR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _RHR; #[doc = "`read()` method returns [rhr::R](rhr::R) reader structure"] impl crate::Readable for RHR {} #[doc = "Receiver Holding Register"] pub mod rhr; #[doc = "Transmitter Holding 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 [thr](thr) module"] pub type THR = crate::Reg<u32, _THR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _THR; #[doc = "`write(|w| ..)` method takes [thr::W](thr::W) writer structure"] impl crate::Writable for THR {} #[doc = "Transmitter Holding Register"] pub mod thr;