pub struct ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>{ /* private fields */ }Implementations§
Source§impl<UART, TXPIN, RXPIN, MODEMPINS> ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
pub fn new( uart: UART, pins: (TXPIN, RXPIN, MODEMPINS), config: Config, ) -> Result<Self, ModeInitError<UART, (TXPIN, RXPIN, MODEMPINS)>>
pub fn set_dtr(&mut self, ready: bool)
pub fn is_dtr_ready(&self) -> bool
pub fn is_dsr_high(&self) -> bool
pub fn dsr_changed(&self) -> bool
pub fn clear_dsr_changed(&mut self)
pub fn is_dcd_high(&self) -> bool
pub fn dcd_changed(&self) -> bool
pub fn clear_dcd_changed(&mut self)
pub fn is_ri_high(&self) -> bool
pub fn ri_changed(&self) -> bool
pub fn clear_ri_changed(&mut self)
pub fn release(self) -> (UART, (TXPIN, RXPIN, MODEMPINS))
pub fn split( self, ) -> (Tx<UART, TXPIN, Owned>, Rx<UART, RXPIN, Borrowed>, MODEMPINS)
Auto Trait Implementations§
impl<UART, TXPIN, RXPIN, MODEMPINS> Freeze for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> RefUnwindSafe for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> Send for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> Sync for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> Unpin for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> UnsafeUnpin for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
impl<UART, TXPIN, RXPIN, MODEMPINS> UnwindSafe for ModemSerial<UART, TXPIN, RXPIN, MODEMPINS>
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