[][src]Struct cntrlr::hw::board::teensy_common::io::Serial

pub struct Serial<M, T, R, const N: usize>(_, _);

A serial instance

This wraps a UART and provides application-level functionality.

Implementations

impl<M, T, R, const N: usize> Serial<M, T, R, N>[src]

pub const fn new() -> Self[src]

Create a new instance of a serial port, in a disabled state.

Trait Implementations

impl<M, T, R, const N: usize> Read for Serial<M, T, R, N> where
    M: 'static,
    T: 'static,
    R: UartRx<M, N> + 'static, 
[src]

type Error = SerialError

The error type

type Future = impl Future<Output = Result<usize, Self::Error>> + 'a

The future for Self::read()

impl Serial for Serial<Mk20Dx128, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_30" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk20Dx128, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_30" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk64Fx512, Serial5Tx, Serial5Rx, 4>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk64Fx512, Serial6Tx, Serial6Rx, 5>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk66Fx1M0, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk66Fx1M0, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk66Fx1M0, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk66Fx1M0, Serial4Tx, Serial4Rx, 3>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk66Fx1M0, Serial5Tx, Serial5Rx, 4>[src]

This is supported on board="teensy_36" only.

type Error = SerialError

The error type

impl Serial for Serial<Mkl26Z64, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_lc" only.

type Error = SerialError

The error type

impl Serial for Serial<Mkl26Z64, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_lc" only.

type Error = SerialError

The error type

impl Serial for Serial<Mkl26Z64, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_lc" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk20Dx128, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_30" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk20Dx256, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_32" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk20Dx256, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_32" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk20Dx256, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_32" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk64Fx512, Serial1Tx, Serial1Rx, 0>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk64Fx512, Serial2Tx, Serial2Rx, 1>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk64Fx512, Serial3Tx, Serial3Rx, 2>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

The error type

impl Serial for Serial<Mk64Fx512, Serial4Tx, Serial4Rx, 3>[src]

This is supported on board="teensy_35" only.

type Error = SerialError

The error type

impl<M, T, R, const N: usize> Write for Serial<M, T, R, N> where
    M: 'static,
    T: UartTx<M, N> + 'static,
    R: 'static, 
[src]

type Error = SerialError

The error type

type Future = impl Future<Output = Result<usize, Self::Error>> + 'a

The future for Self::write()

type FlushFuture = impl Future<Output = Result<(), Self::Error>> + 'a

The future for Self::flush()

Auto Trait Implementations

impl<M, T, R, const N: usize> Send for Serial<M, T, R, N> where
    M: Send,
    R: Send,
    T: Send
[src]

impl<M, T, R, const N: usize> !Sync for Serial<M, T, R, N>[src]

impl<M, T, R, const N: usize> Unpin for Serial<M, T, R, N> where
    M: Unpin,
    R: Unpin,
    T: Unpin
[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> ReadExt for T where
    T: 'static + Read
[src]

type ExactFuture = impl Future<Output = Result<(), <T as Read>::Error>> + 'a

The future for Self::read_exact()

type LineFuture = impl Future<Output = Result<(), LineError<<T as Read>::Error>>> + 'a

The future for Self::read_line()

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.

impl<T> WriteExt for T where
    T: 'static + Write
[src]

type AllFuture = impl Future<Output = Result<(), <T as Write>::Error>> + 'a

The future for Self::write_all()

type FmtFuture = impl Future<Output = Result<(), <T as Write>::Error>> + 'a

The future for Self::write_fmt()