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 into_inner(self) -> Pin
pub fn into_inner(self) -> Pin
Consumes self and returns the wrapped pin.
Sourcepub fn select_guard(&mut self) -> DeselectOnDrop<'_, Self>
pub fn select_guard(&mut self) -> DeselectOnDrop<'_, Self>
Selects the device and returns a guard that, when dropped, deselects the chip.
Trait Implementations§
Source§impl<Pin> ChipSelect for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
impl<Pin> ChipSelect for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
Source§impl<Pin> ChipSelectGuarded for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
impl<Pin> ChipSelectGuarded for ChipSelectActiveHigh<Pin>where
Pin: OutputPin,
Source§fn select_guard(&mut self) -> Self::Guard<'_>
fn select_guard(&mut self) -> Self::Guard<'_>
Selects the device and returns a guard that, when dropped, deselects the chip.
Source§type Guard<'a> = DeselectOnDrop<'a, ChipSelectActiveHigh<Pin>>
where
Pin: 'a
type Guard<'a> = DeselectOnDrop<'a, ChipSelectActiveHigh<Pin>> where Pin: 'a
A guard that, when dropped, deselects the chip.
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