Struct atmega_hal::pac::USART0
source · pub struct USART0 { /* private fields */ }Expand description
USART
Implementations§
source§impl USART0
impl USART0
sourcepub const PTR: *const RegisterBlock = {0xc0 as *const avr_device::atmega2560::usart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xc0 as *const avr_device::atmega2560::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§
source§impl UsartOps<Atmega, Pin<Input, PE0>, Pin<Output, PE1>> for USART0
impl UsartOps<Atmega, Pin<Input, PE0>, Pin<Output, PE1>> for USART0
source§fn 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
source§fn 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
source§fn raw_flush(&mut self) -> Result<(), Infallible>
fn raw_flush(&mut self) -> Result<(), Infallible>
Flush all remaining data in the TX buffer. Read more
source§fn raw_write(&mut self, byte: u8) -> Result<(), Infallible>
fn raw_write(&mut self, byte: u8) -> Result<(), Infallible>
Write a byte to the TX buffer. Read more
source§fn raw_interrupt(&mut self, event: Event, state: bool)
fn raw_interrupt(&mut self, event: Event, state: bool)
Enable/Disable a certain interrupt. Read more