#[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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.