pub struct RegisterBlock {Show 20 fields
pub cr: CR,
pub mr: MR,
pub ier: IER,
pub idr: IDR,
pub imr: IMR,
pub sr: SR,
pub rhr: RHR,
pub thr: THR,
pub brgr: BRGR,
pub wpmr: WPMR,
pub rpr: RPR,
pub rcr: RCR,
pub tpr: TPR,
pub tcr: TCR,
pub rnpr: RNPR,
pub rncr: RNCR,
pub tnpr: TNPR,
pub tncr: TNCR,
pub ptcr: PTCR,
pub ptsr: PTSR,
/* private fields */
}Expand description
Register block
Fields§
§cr: CR0x00 - Control Register
mr: MR0x04 - Mode Register
ier: IER0x08 - Interrupt Enable Register
idr: IDR0x0c - Interrupt Disable Register
imr: IMR0x10 - Interrupt Mask Register
sr: SR0x14 - Status Register
rhr: RHR0x18 - Receive Holding Register
thr: THR0x1c - Transmit Holding Register
brgr: BRGR0x20 - Baud Rate Generator Register
wpmr: WPMR0xe4 - Write Protection Mode Register
rpr: RPR0x100 - Receive Pointer Register
rcr: RCR0x104 - Receive Counter Register
tpr: TPR0x108 - Transmit Pointer Register
tcr: TCR0x10c - Transmit Counter Register
rnpr: RNPR0x110 - Receive Next Pointer Register
rncr: RNCR0x114 - Receive Next Counter Register
tnpr: TNPR0x118 - Transmit Next Pointer Register
tncr: TNCR0x11c - Transmit Next Counter Register
ptcr: PTCR0x120 - Transfer Control Register
ptsr: PTSR0x124 - Transfer Status Register
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more