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
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Flash access control register"] pub acr: ACR, #[doc = "0x04 - Flash key register"] pub keyr: KEYR, #[doc = "0x08 - Flash option key register"] pub optkeyr: OPTKEYR, #[doc = "0x0c - Status register"] pub sr: SR, #[doc = "0x10 - Control register"] pub cr: CR, #[doc = "0x14 - Flash address register"] pub ar: AR, _reserved6: [u8; 4usize], #[doc = "0x1c - Option byte register"] pub obr: OBR, #[doc = "0x20 - Write protection register"] pub wrpr: WRPR, } #[doc = "Flash access control 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 [acr](acr) module"] pub type ACR = crate::Reg<u32, _ACR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _ACR; #[doc = "`read()` method returns [acr::R](acr::R) reader structure"] impl crate::Readable for ACR {} #[doc = "`write(|w| ..)` method takes [acr::W](acr::W) writer structure"] impl crate::Writable for ACR {} #[doc = "Flash access control register"] pub mod acr; #[doc = "Flash 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 [keyr](keyr) module"] pub type KEYR = crate::Reg<u32, _KEYR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _KEYR; #[doc = "`write(|w| ..)` method takes [keyr::W](keyr::W) writer structure"] impl crate::Writable for KEYR {} #[doc = "Flash key register"] pub mod keyr; #[doc = "Flash option 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 [optkeyr](optkeyr) module"] pub type OPTKEYR = crate::Reg<u32, _OPTKEYR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _OPTKEYR; #[doc = "`write(|w| ..)` method takes [optkeyr::W](optkeyr::W) writer structure"] impl crate::Writable for OPTKEYR {} #[doc = "Flash option key register"] pub mod optkeyr; #[doc = "Status 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 [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 = "`write(|w| ..)` method takes [sr::W](sr::W) writer structure"] impl crate::Writable for SR {} #[doc = "Status register"] pub mod sr; #[doc = "Control 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 [cr](cr) module"] pub type CR = crate::Reg<u32, _CR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CR; #[doc = "`read()` method returns [cr::R](cr::R) reader structure"] impl crate::Readable for CR {} #[doc = "`write(|w| ..)` method takes [cr::W](cr::W) writer structure"] impl crate::Writable for CR {} #[doc = "Control register"] pub mod cr; #[doc = "Flash address 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 [ar](ar) module"] pub type AR = crate::Reg<u32, _AR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _AR; #[doc = "`write(|w| ..)` method takes [ar::W](ar::W) writer structure"] impl crate::Writable for AR {} #[doc = "Flash address register"] pub mod ar; #[doc = "Option byte 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 [obr](obr) module"] pub type OBR = crate::Reg<u32, _OBR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _OBR; #[doc = "`read()` method returns [obr::R](obr::R) reader structure"] impl crate::Readable for OBR {} #[doc = "Option byte register"] pub mod obr; #[doc = "Write protection 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 [wrpr](wrpr) module"] pub type WRPR = crate::Reg<u32, _WRPR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _WRPR; #[doc = "`read()` method returns [wrpr::R](wrpr::R) reader structure"] impl crate::Readable for WRPR {} #[doc = "Write protection register"] pub mod wrpr;