#[repr(C)] #[doc = "Register block"] pub struct RegisterBlock { ctrla: Ctrla, ctrlb: Ctrlb, baud: Baud, rxdata: Rxdata, txdata: Txdata, intenclr: Intenclr, intenset: Intenset, intflag: Intflag, status: Status, _reserved9: [u8; 0x0c], instraddr: Instraddr, instrctrl: Instrctrl, instrframe: Instrframe, _reserved12: [u8; 0x04], scrambctrl: Scrambctrl, scrambkey: Scrambkey, } impl RegisterBlock { #[doc = "0x00 - Control A"] #[inline(always)] pub const fn ctrla(&self) -> &Ctrla { &self.ctrla } #[doc = "0x04 - Control B"] #[inline(always)] pub const fn ctrlb(&self) -> &Ctrlb { &self.ctrlb } #[doc = "0x08 - Baud Rate"] #[inline(always)] pub const fn baud(&self) -> &Baud { &self.baud } #[doc = "0x0c - Receive Data"] #[inline(always)] pub const fn rxdata(&self) -> &Rxdata { &self.rxdata } #[doc = "0x10 - Transmit Data"] #[inline(always)] pub const fn txdata(&self) -> &Txdata { &self.txdata } #[doc = "0x14 - Interrupt Enable Clear"] #[inline(always)] pub const fn intenclr(&self) -> &Intenclr { &self.intenclr } #[doc = "0x18 - Interrupt Enable Set"] #[inline(always)] pub const fn intenset(&self) -> &Intenset { &self.intenset } #[doc = "0x1c - Interrupt Flag Status and Clear"] #[inline(always)] pub const fn intflag(&self) -> &Intflag { &self.intflag } #[doc = "0x20 - Status Register"] #[inline(always)] pub const fn status(&self) -> &Status { &self.status } #[doc = "0x30 - Instruction Address"] #[inline(always)] pub const fn instraddr(&self) -> &Instraddr { &self.instraddr } #[doc = "0x34 - Instruction Code"] #[inline(always)] pub const fn instrctrl(&self) -> &Instrctrl { &self.instrctrl } #[doc = "0x38 - Instruction Frame"] #[inline(always)] pub const fn instrframe(&self) -> &Instrframe { &self.instrframe } #[doc = "0x40 - Scrambling Mode"] #[inline(always)] pub const fn scrambctrl(&self) -> &Scrambctrl { &self.scrambctrl } #[doc = "0x44 - Scrambling Key"] #[inline(always)] pub const fn scrambkey(&self) -> &Scrambkey { &self.scrambkey } } #[doc = "CTRLA (rw) register accessor: Control A\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrla::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrla::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrla`] module"] #[doc(alias = "CTRLA")] pub type Ctrla = crate::Reg; #[doc = "Control A"] pub mod ctrla; #[doc = "CTRLB (rw) register accessor: Control B\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrlb::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrlb::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrlb`] module"] #[doc(alias = "CTRLB")] pub type Ctrlb = crate::Reg; #[doc = "Control B"] pub mod ctrlb; #[doc = "BAUD (rw) register accessor: Baud Rate\n\nYou can [`read`](crate::Reg::read) this register and get [`baud::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`baud::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@baud`] module"] #[doc(alias = "BAUD")] pub type Baud = crate::Reg; #[doc = "Baud Rate"] pub mod baud; #[doc = "RXDATA (r) register accessor: Receive Data\n\nYou can [`read`](crate::Reg::read) this register and get [`rxdata::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxdata`] module"] #[doc(alias = "RXDATA")] pub type Rxdata = crate::Reg; #[doc = "Receive Data"] pub mod rxdata; #[doc = "TXDATA (w) register accessor: Transmit Data\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`txdata::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txdata`] module"] #[doc(alias = "TXDATA")] pub type Txdata = crate::Reg; #[doc = "Transmit Data"] pub mod txdata; #[doc = "INTENCLR (rw) register accessor: Interrupt Enable Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intenclr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenclr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intenclr`] module"] #[doc(alias = "INTENCLR")] pub type Intenclr = crate::Reg; #[doc = "Interrupt Enable Clear"] pub mod intenclr; #[doc = "INTENSET (rw) register accessor: Interrupt Enable Set\n\nYou can [`read`](crate::Reg::read) this register and get [`intenset::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenset::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intenset`] module"] #[doc(alias = "INTENSET")] pub type Intenset = crate::Reg; #[doc = "Interrupt Enable Set"] pub mod intenset; #[doc = "INTFLAG (rw) register accessor: Interrupt Flag Status and Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intflag::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflag::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intflag`] module"] #[doc(alias = "INTFLAG")] pub type Intflag = crate::Reg; #[doc = "Interrupt Flag Status and Clear"] pub mod intflag; #[doc = "STATUS (r) register accessor: Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`] module"] #[doc(alias = "STATUS")] pub type Status = crate::Reg; #[doc = "Status Register"] pub mod status; #[doc = "INSTRADDR (rw) register accessor: Instruction Address\n\nYou can [`read`](crate::Reg::read) this register and get [`instraddr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`instraddr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@instraddr`] module"] #[doc(alias = "INSTRADDR")] pub type Instraddr = crate::Reg; #[doc = "Instruction Address"] pub mod instraddr; #[doc = "INSTRCTRL (rw) register accessor: Instruction Code\n\nYou can [`read`](crate::Reg::read) this register and get [`instrctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`instrctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@instrctrl`] module"] #[doc(alias = "INSTRCTRL")] pub type Instrctrl = crate::Reg; #[doc = "Instruction Code"] pub mod instrctrl; #[doc = "INSTRFRAME (rw) register accessor: Instruction Frame\n\nYou can [`read`](crate::Reg::read) this register and get [`instrframe::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`instrframe::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@instrframe`] module"] #[doc(alias = "INSTRFRAME")] pub type Instrframe = crate::Reg; #[doc = "Instruction Frame"] pub mod instrframe; #[doc = "SCRAMBCTRL (rw) register accessor: Scrambling Mode\n\nYou can [`read`](crate::Reg::read) this register and get [`scrambctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scrambctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@scrambctrl`] module"] #[doc(alias = "SCRAMBCTRL")] pub type Scrambctrl = crate::Reg; #[doc = "Scrambling Mode"] pub mod scrambctrl; #[doc = "SCRAMBKEY (w) register accessor: Scrambling Key\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scrambkey::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@scrambkey`] module"] #[doc(alias = "SCRAMBKEY")] pub type Scrambkey = crate::Reg; #[doc = "Scrambling Key"] pub mod scrambkey;