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
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Global configuration register"] pub gcr: GCR, #[doc = "0x04 - Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR"] pub cha: CH, #[doc = "0x24 - Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR"] pub chb: CH, } #[doc = r"Register block"] #[repr(C)] pub struct CH { #[doc = "0x00 - AConfiguration register 1"] pub cr1: self::ch::CR1, #[doc = "0x04 - AConfiguration register 2"] pub cr2: self::ch::CR2, #[doc = "0x08 - AFRCR"] pub frcr: self::ch::FRCR, #[doc = "0x0c - ASlot register"] pub slotr: self::ch::SLOTR, #[doc = "0x10 - AInterrupt mask register2"] pub im: self::ch::IM, #[doc = "0x14 - AStatus register"] pub sr: self::ch::SR, #[doc = "0x18 - AClear flag register"] pub clrfr: self::ch::CLRFR, #[doc = "0x1c - AData register"] pub dr: self::ch::DR, } #[doc = r"Register block"] #[doc = "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR"] pub mod ch; #[doc = "Global configuration 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 [gcr](gcr) module"] pub type GCR = crate::Reg<u32, _GCR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _GCR; #[doc = "`read()` method returns [gcr::R](gcr::R) reader structure"] impl crate::Readable for GCR {} #[doc = "`write(|w| ..)` method takes [gcr::W](gcr::W) writer structure"] impl crate::Writable for GCR {} #[doc = "Global configuration register"] pub mod gcr;