[−][src]Struct rppal::uart::Status
Control signal status.
Methods
impl Status
[src]
pub fn rts(&self) -> bool
[src]
Returns true
if RTS is active.
RTS (active low) is controlled by Uart
. An active signal indicates
Uart
is ready to receive more data.
pub fn cts(&self) -> bool
[src]
Returns true
if CTS is active.
CTS (active low) is controlled by the external device. An active signal indicates the external device is ready to receive more data.
pub fn dtr(&self) -> bool
[src]
Returns true
if DTR is active.
DTR (active low) is controlled by Uart
. When communicating with a
modem, an active signal is used to place or accept a call. An inactive
signal causes the modem to hang up. Other devices may use DTR and DSR
for flow control.
DTR is not supported by the Raspberry Pi's UART peripherals, but may be available on some USB to serial adapters.
pub fn dsr(&self) -> bool
[src]
Returns true
if DSR is active.
DSR (active low) is controlled by the external device. When communicating with a modem, an active signal indicates the modem is ready for data transmission. Other devices may use DTR and DSR for flow control.
DSR is not supported by the Raspberry Pi's UART peripherals, but may be available on some USB to serial adapters.
pub fn dcd(&self) -> bool
[src]
Returns true
if DCD is active.
DCD (active low) is controlled by the external device. When communicating with a modem, an active signal indicates a connection is established.
DCD is not supported by the Raspberry Pi's UART peripherals, but may be available on some USB to serial adapters.
pub fn ri(&self) -> bool
[src]
Returns true
if RI is active.
RI (active low) is controlled by the external device. When communicating with a modem, an active signal indicates an incoming call.
RI is not supported by the Raspberry Pi's UART peripherals, but may be available on some USB to serial adapters.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,