Trait ChipSelect

Source
pub trait ChipSelect {
    // Required methods
    fn select(&mut self);
    fn deselect(&mut self);
}
Expand description

A chip-select trait.

Required Methods§

Source

fn select(&mut self)

Selects the chip, driving the line low.

Source

fn deselect(&mut self)

Deselects the chip, driving the line high.

Implementors§

Source§

impl<Pin> ChipSelect for ChipSelectActiveHigh<Pin>
where Pin: OutputPin,

Source§

impl<Pin> ChipSelect for ChipSelectActiveLow<Pin>
where Pin: OutputPin,