[][src]Trait cntrlr::io::Serial

pub trait Serial: Read + Write {
    type Error: Debug;
    pub fn enable(&mut self, baud: usize) -> Result<(), Self::Error>;
pub fn disable(&mut self) -> Result<(), Self::Error>; }

Trait for RS232/UART-style serial devices

Associated Types

type Error: Debug[src]

The error type

Loading content...

Required methods

pub fn enable(&mut self, baud: usize) -> Result<(), Self::Error>[src]

Enable the serial port at the specified baud rate

pub fn disable(&mut self) -> Result<(), Self::Error>[src]

Disable the serial port.

Loading content...

Implementors

impl Serial for cntrlr::hw::board::red_v::io::Serial<Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="red_v" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::red_v::io::Serial<Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="red_v" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk20Dx128, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_30" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk20Dx128, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_30" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk20Dx128, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_30" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk20Dx256, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_32" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk20Dx256, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_32" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk20Dx256, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_32" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk64Fx512, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk64Fx512, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk64Fx512, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk64Fx512, Serial4Tx, Serial4Rx, 3>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk64Fx512, Serial5Tx, Serial5Rx, 4>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk64Fx512, Serial6Tx, Serial6Rx, 5>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk66Fx1M0, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk66Fx1M0, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk66Fx1M0, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk66Fx1M0, Serial4Tx, Serial4Rx, 3>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mk66Fx1M0, Serial5Tx, Serial5Rx, 4>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mkl26Z64, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_lc" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mkl26Z64, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_lc" only.

type Error = SerialError

impl Serial for cntrlr::hw::board::teensy_common::io::Serial<Mkl26Z64, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_lc" only.

type Error = SerialError

Loading content...