Struct atmega_hal::pac::USART0
source · [−]pub struct USART0 { /* private fields */ }
Expand description
USART
Implementations
sourceimpl USART0
impl USART0
sourcepub const PTR: *const RegisterBlock = {0xc0 as *const avr_device::atmega328p::usart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xc0 as *const avr_device::atmega328p::usart0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations
sourceimpl UsartOps<Atmega, Pin<Input<AnyInput>, PD0>, Pin<Output, PD1>> for USART0
impl UsartOps<Atmega, Pin<Input<AnyInput>, PD0>, Pin<Output, PD1>> for USART0
sourcefn raw_init<CLOCK>(&mut self, baudrate: Baudrate<CLOCK>)
fn raw_init<CLOCK>(&mut self, baudrate: Baudrate<CLOCK>)
Enable & initialize this USART peripheral to the given baudrate. Read more
sourcefn raw_deinit(&mut self)
fn raw_deinit(&mut self)
Disable this USART peripheral such that the pins can be used for other purposes again. Read more
sourcefn raw_flush(&mut self) -> Result<(), Void>
fn raw_flush(&mut self) -> Result<(), Void>
Flush all remaining data in the TX buffer. Read more
sourcefn raw_interrupt(&mut self, event: Event, state: bool)
fn raw_interrupt(&mut self, event: Event, state: bool)
Enable/Disable a certain interrupt. Read more
impl Send for USART0
Auto Trait Implementations
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