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
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Status register"] pub stat: STAT, #[doc = "0x04 - Data register"] pub data: DATA, #[doc = "0x08 - Baud rate register"] pub baud: BAUD, #[doc = "0x0c - Control register 0"] pub ctl0: CTL0, #[doc = "0x10 - Control register 1"] pub ctl1: CTL1, #[doc = "0x14 - Control register 2"] pub ctl2: CTL2, #[doc = "0x18 - Guard time and prescaler register"] pub gp: GP, } #[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 [stat](stat) module"] pub type STAT = crate::Reg<u32, _STAT>; #[allow(missing_docs)] #[doc(hidden)] pub struct _STAT; #[doc = "`read()` method returns [stat::R](stat::R) reader structure"] impl crate::Readable for STAT {} #[doc = "`write(|w| ..)` method takes [stat::W](stat::W) writer structure"] impl crate::Writable for STAT {} #[doc = "Status register"] pub mod stat; #[doc = "Data 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 [data](data) module"] pub type DATA = crate::Reg<u32, _DATA>; #[allow(missing_docs)] #[doc(hidden)] pub struct _DATA; #[doc = "`read()` method returns [data::R](data::R) reader structure"] impl crate::Readable for DATA {} #[doc = "`write(|w| ..)` method takes [data::W](data::W) writer structure"] impl crate::Writable for DATA {} #[doc = "Data register"] pub mod data; #[doc = "Baud rate 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 [baud](baud) module"] pub type BAUD = crate::Reg<u32, _BAUD>; #[allow(missing_docs)] #[doc(hidden)] pub struct _BAUD; #[doc = "`read()` method returns [baud::R](baud::R) reader structure"] impl crate::Readable for BAUD {} #[doc = "`write(|w| ..)` method takes [baud::W](baud::W) writer structure"] impl crate::Writable for BAUD {} #[doc = "Baud rate register"] pub mod baud; #[doc = "Control register 0\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 [ctl0](ctl0) module"] pub type CTL0 = crate::Reg<u32, _CTL0>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CTL0; #[doc = "`read()` method returns [ctl0::R](ctl0::R) reader structure"] impl crate::Readable for CTL0 {} #[doc = "`write(|w| ..)` method takes [ctl0::W](ctl0::W) writer structure"] impl crate::Writable for CTL0 {} #[doc = "Control register 0"] pub mod ctl0; #[doc = "Control register 1\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 [ctl1](ctl1) module"] pub type CTL1 = crate::Reg<u32, _CTL1>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CTL1; #[doc = "`read()` method returns [ctl1::R](ctl1::R) reader structure"] impl crate::Readable for CTL1 {} #[doc = "`write(|w| ..)` method takes [ctl1::W](ctl1::W) writer structure"] impl crate::Writable for CTL1 {} #[doc = "Control register 1"] pub mod ctl1; #[doc = "Control register 2\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 [ctl2](ctl2) module"] pub type CTL2 = crate::Reg<u32, _CTL2>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CTL2; #[doc = "`read()` method returns [ctl2::R](ctl2::R) reader structure"] impl crate::Readable for CTL2 {} #[doc = "`write(|w| ..)` method takes [ctl2::W](ctl2::W) writer structure"] impl crate::Writable for CTL2 {} #[doc = "Control register 2"] pub mod ctl2; #[doc = "Guard time and prescaler 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 [gp](gp) module"] pub type GP = crate::Reg<u32, _GP>; #[allow(missing_docs)] #[doc(hidden)] pub struct _GP; #[doc = "`read()` method returns [gp::R](gp::R) reader structure"] impl crate::Readable for GP {} #[doc = "`write(|w| ..)` method takes [gp::W](gp::W) writer structure"] impl crate::Writable for GP {} #[doc = "Guard time and prescaler register"] pub mod gp;