Struct chip_select::ChipSelectActiveHigh
source · pub struct ChipSelectActiveHigh<Pin>(/* private fields */);Expand description
A chip select pin with active-high behavior.
Implementations§
source§impl<Pin> ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
impl<Pin> ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
sourcepub fn with_auto_select(self, enabled: bool) -> Self
pub fn with_auto_select(self, enabled: bool) -> Self
Enables auto-select on the chip.
sourcepub fn auto_select(&mut self)
pub fn auto_select(&mut self)
Selects the chip if auto-select is enabled.
sourcepub fn into_inner(self) -> Pin
pub fn into_inner(self) -> Pin
Consumes self and returns the wrapped pin.
Trait Implementations§
source§impl<Pin> From<Pin> for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
impl<Pin> From<Pin> for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
impl<Pin> ActiveHigh for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
Auto Trait Implementations§
impl<Pin> Freeze for ChipSelectActiveHigh<Pin>where
Pin: Freeze,
impl<Pin> RefUnwindSafe for ChipSelectActiveHigh<Pin>where
Pin: RefUnwindSafe,
impl<Pin> Send for ChipSelectActiveHigh<Pin>where
Pin: Send,
impl<Pin> Sync for ChipSelectActiveHigh<Pin>where
Pin: Sync,
impl<Pin> Unpin for ChipSelectActiveHigh<Pin>where
Pin: Unpin,
impl<Pin> UnwindSafe for ChipSelectActiveHigh<Pin>where
Pin: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more