Struct atmega_hal::pac::USART1
source · pub struct USART1 { /* private fields */ }Expand description
USART
Implementations§
source§impl USART1
impl USART1
sourcepub const PTR: *const RegisterBlock = {0xc8 as *const avr_device::atmega2560::usart1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xc8 as *const avr_device::atmega2560::usart1::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, PD2>, Pin<Output, PD3>> for USART1
impl UsartOps<Atmega, Pin<Input, PD2>, Pin<Output, PD3>> for USART1
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