#[repr(C)]
pub struct RegisterBlock { pub sr: SR, pub dr: DR, pub brr: BRR, pub cr1: CR1, pub cr2: CR2, pub cr3: CR3, pub gtpr: GTPR, }
Expand description

Register block

Fields§

§sr: SR

0x00 - Status register

§dr: DR

0x04 - Data register

§brr: BRR

0x08 - Baud rate register

§cr1: CR1

0x0c - Control register 1

§cr2: CR2

0x10 - Control register 2

§cr3: CR3

0x14 - Control register 3

§gtpr: GTPR

0x18 - Guard time and prescaler 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.

Should always be Self
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.