[][src]Struct avr_hal_generic::spi::ChipSelectPin

pub struct ChipSelectPin<CSPIN>(_);

Wrapper for the CS pin

Used to contain the chip-select pin during operation to prevent its mode from being changed from Output. This is necessary because the SPI state machine would otherwise reset itself to SPI slave mode immediately. This wrapper can be used just like an output pin, because it implements all the same traits from embedded-hal.

Trait Implementations

impl<CSPIN: PinOps> OutputPin for ChipSelectPin<CSPIN>[src]

type Error = Infallible

Error type

impl<CSPIN: PinOps> StatefulOutputPin for ChipSelectPin<CSPIN>[src]

impl<CSPIN: PinOps> ToggleableOutputPin for ChipSelectPin<CSPIN>[src]

type Error = Infallible

Error type

Auto Trait Implementations

impl<CSPIN> Send for ChipSelectPin<CSPIN> where
    CSPIN: Send
[src]

impl<CSPIN> Sync for ChipSelectPin<CSPIN> where
    CSPIN: Sync
[src]

impl<CSPIN> Unpin for ChipSelectPin<CSPIN> where
    CSPIN: 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, 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.