Struct rppal::uart::Status[][src]

pub struct Status { /* fields omitted */ }

Control signal status.

Implementations

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

impl Debug for Status[src]

Auto Trait Implementations

impl RefUnwindSafe for Status[src]

impl Send for Status[src]

impl Sync for Status[src]

impl Unpin for Status[src]

impl UnwindSafe for Status[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.