Struct gd32f1x0_hal::pac::usart0::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub ctl0: Reg<CTL0_SPEC>,
pub ctl1: Reg<CTL1_SPEC>,
pub ctl2: Reg<CTL2_SPEC>,
pub baud: Reg<BAUD_SPEC>,
pub gp: Reg<GP_SPEC>,
pub rt: Reg<RT_SPEC>,
pub cmd: Reg<CMD_SPEC>,
pub stat: Reg<STAT_SPEC>,
pub intc: Reg<INTC_SPEC>,
pub rdata: Reg<RDATA_SPEC>,
pub tdata: Reg<TDATA_SPEC>,
}
Expand description
Register block
Fields
ctl0: Reg<CTL0_SPEC>
0x00 - Control register 0
ctl1: Reg<CTL1_SPEC>
0x04 - Control register 1
ctl2: Reg<CTL2_SPEC>
0x08 - Control register 2
baud: Reg<BAUD_SPEC>
0x0c - Baud rate generator register
gp: Reg<GP_SPEC>
0x10 - Prescaler and guard time configuration register
rt: Reg<RT_SPEC>
0x14 - Receiver timeout register
cmd: Reg<CMD_SPEC>
0x18 - Request register
stat: Reg<STAT_SPEC>
0x1c - Interrupt & status register
intc: Reg<INTC_SPEC>
0x20 - Interrupt flag clear register
rdata: Reg<RDATA_SPEC>
0x24 - Receive data register
tdata: Reg<TDATA_SPEC>
0x28 - Transmit data register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more