pub struct Usart<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Usart<'a>
impl<'a> Usart<'a>
pub fn new_usart1(rcc: &'a Rcc) -> Self
pub fn new_usart2(rcc: &'a Rcc) -> Self
pub fn new_usart3(rcc: &'a Rcc) -> Self
pub fn is_enabled_clock(&self) -> bool
pub fn enable_clock(&self)
pub fn disable_clock(&self)
pub fn send_byte(&self, byte: u8)
pub fn handle_interrupt(&self)
Trait Implementations§
Source§impl DeferredCallClient for Usart<'_>
impl DeferredCallClient for Usart<'_>
Source§impl<'a> Receive<'a> for Usart<'a>
impl<'a> Receive<'a> for Usart<'a>
Source§fn set_receive_client(&self, client: &'a dyn ReceiveClient)
fn set_receive_client(&self, client: &'a dyn ReceiveClient)
Set the receive client, which will be called when reads complete.
Source§impl<'a> Transmit<'a> for Usart<'a>
impl<'a> Transmit<'a> for Usart<'a>
Source§fn set_transmit_client(&self, client: &'a dyn TransmitClient)
fn set_transmit_client(&self, client: &'a dyn TransmitClient)
Set the transmit client, which will be called when transmissions
complete.
Source§fn transmit_buffer(
&self,
tx_data: &'static mut [u8],
tx_len: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn transmit_buffer( &self, tx_data: &'static mut [u8], tx_len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Transmit a buffer of data. Read more
Auto Trait Implementations§
impl<'a> !Freeze for Usart<'a>
impl<'a> !RefUnwindSafe for Usart<'a>
impl<'a> !Send for Usart<'a>
impl<'a> !Sync for Usart<'a>
impl<'a> Unpin for Usart<'a>
impl<'a> !UnwindSafe for Usart<'a>
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