Trait chip_select::ChipSelect

source ·
pub trait ChipSelect {
    // Required methods
    fn is_auto_select(&self) -> bool;
    fn select(&mut self);
    fn deselect(&mut self);

    // Provided method
    fn auto_select(&mut self) { ... }
}
Expand description

A chip-select trait.

Required Methods§

source

fn is_auto_select(&self) -> bool

Indicates whether this instance is configured to auto-select the chip on communication.

source

fn select(&mut self)

Selects the chip, driving the line low.

source

fn deselect(&mut self)

Deselects the chip, driving the line high.

Provided Methods§

source

fn auto_select(&mut self)

Selects the chip if auto-select is enabled.

Implementors§