Struct USART_TypeDef

Source
#[repr(C)]
pub struct USART_TypeDef { pub CR1: u32, pub CR2: u32, pub CR3: u32, pub BRR: u32, pub GTPR: u32, pub RTOR: u32, pub RQR: u32, pub ISR: u32, pub ICR: u32, pub RDR: u32, pub TDR: u32, pub PRESC: u32, }
Expand description

Universal Synchronous Asynchronous Receiver Transmitter

Fields§

§CR1: u32

< USART Control register 1, Address offset: 0x00

§CR2: u32

< USART Control register 2, Address offset: 0x04

§CR3: u32

< USART Control register 3, Address offset: 0x08

§BRR: u32

< USART Baud rate register, Address offset: 0x0C

§GTPR: u32

< USART Guard time and prescaler register, Address offset: 0x10

§RTOR: u32

< USART Receiver Time Out register, Address offset: 0x14

§RQR: u32

< USART Request register, Address offset: 0x18

§ISR: u32

< USART Interrupt and status register, Address offset: 0x1C

§ICR: u32

< USART Interrupt flag Clear register, Address offset: 0x20

§RDR: u32

< USART Receive Data register, Address offset: 0x24

§TDR: u32

< USART Transmit Data register, Address offset: 0x28

§PRESC: u32

< USART Prescaler register, Address offset: 0x2C

Trait Implementations§

Source§

impl Clone for USART_TypeDef

Source§

fn clone(&self) -> USART_TypeDef

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for USART_TypeDef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for USART_TypeDef

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.