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

pub struct Status { /* fields omitted */ }

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

impl Debug for Status[src]

Auto Trait Implementations

impl Send for Status

impl Sync for Status

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.