#[repr(C)]pub struct USART_TypeDef {
pub SR: u32,
pub DR: u32,
pub BRR: u32,
pub CR1: u32,
pub CR2: u32,
pub CR3: u32,
pub GTPR: u32,
}Expand description
@brief Universal Synchronous Asynchronous Receiver Transmitter
Fields§
§SR: u32< USART Status register , Address offset: 0x00
DR: u32< USART Data register, Address offset: 0x04
BRR: u32< USART Baud rate register, Address offset: 0x08
CR1: u32< USART Control register 1, Address offset: 0x0C
CR2: u32< USART Control register 2, Address offset: 0x10
CR3: u32< USART Control register 3, Address offset: 0x14
GTPR: u32< USART Guard time and prescaler register, Address offset: 0x18
Trait Implementations§
Source§impl Clone for USART_TypeDef
impl Clone for USART_TypeDef
Source§fn clone(&self) -> USART_TypeDef
fn clone(&self) -> USART_TypeDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for USART_TypeDef
impl Debug for USART_TypeDef
impl Copy for USART_TypeDef
Auto Trait Implementations§
impl Freeze for USART_TypeDef
impl RefUnwindSafe for USART_TypeDef
impl Send for USART_TypeDef
impl Sync for USART_TypeDef
impl Unpin for USART_TypeDef
impl UnwindSafe for USART_TypeDef
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