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
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - control register"] pub cr: CR, #[doc = "0x04 - data input register"] pub din: DIN, #[doc = "0x08 - start register"] pub str: STR, #[doc = "0x0c - digest registers"] pub hr: [HR; 5], #[doc = "0x20 - interrupt enable register"] pub imr: IMR, #[doc = "0x24 - status register"] pub sr: SR, _reserved6: [u8; 208usize], #[doc = "0xf8 - context swap registers"] pub csr: [CSR; 54], _reserved7: [u8; 320usize], #[doc = "0x310 - HASH digest register"] pub hash_hr: [HASH_HR; 8], } #[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 = "data input 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 [din](din) module"] pub type DIN = crate::Reg<u32, _DIN>; #[allow(missing_docs)] #[doc(hidden)] pub struct _DIN; #[doc = "`read()` method returns [din::R](din::R) reader structure"] impl crate::Readable for DIN {} #[doc = "`write(|w| ..)` method takes [din::W](din::W) writer structure"] impl crate::Writable for DIN {} #[doc = "data input register"] pub mod din; #[doc = "start 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 [str](str) module"] pub type STR = crate::Reg<u32, _STR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _STR; #[doc = "`read()` method returns [str::R](str::R) reader structure"] impl crate::Readable for STR {} #[doc = "`write(|w| ..)` method takes [str::W](str::W) writer structure"] impl crate::Writable for STR {} #[doc = "start register"] pub mod str; #[doc = "digest registers\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 [hr](hr) module"] pub type HR = crate::Reg<u32, _HR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _HR; #[doc = "`read()` method returns [hr::R](hr::R) reader structure"] impl crate::Readable for HR {} #[doc = "digest registers"] pub mod hr; #[doc = "interrupt enable 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 [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 = "`write(|w| ..)` method takes [imr::W](imr::W) writer structure"] impl crate::Writable for IMR {} #[doc = "interrupt enable register"] pub mod imr; #[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 = "context swap registers\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 [csr](csr) module"] pub type CSR = crate::Reg<u32, _CSR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CSR; #[doc = "`read()` method returns [csr::R](csr::R) reader structure"] impl crate::Readable for CSR {} #[doc = "`write(|w| ..)` method takes [csr::W](csr::W) writer structure"] impl crate::Writable for CSR {} #[doc = "context swap registers"] pub mod csr; #[doc = "HASH digest 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 [hash_hr](hash_hr) module"] pub type HASH_HR = crate::Reg<u32, _HASH_HR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _HASH_HR; #[doc = "`read()` method returns [hash_hr::R](hash_hr::R) reader structure"] impl crate::Readable for HASH_HR {} #[doc = "HASH digest register"] pub mod hash_hr;