pub struct ChipSelectActiveLow<Pin>(/* private fields */);
Expand description
A chip select pin with active-low behavior.
Implementations§
Source§impl<Pin> ChipSelectActiveLow<Pin>where
Pin: OutputPin,
impl<Pin> ChipSelectActiveLow<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 ChipSelectActiveLow<Pin>where
Pin: OutputPin,
impl<Pin> ChipSelect for ChipSelectActiveLow<Pin>where
Pin: OutputPin,
Source§impl<Pin> ChipSelectGuarded for ChipSelectActiveLow<Pin>where
Pin: OutputPin,
impl<Pin> ChipSelectGuarded for ChipSelectActiveLow<Pin>where
Pin: OutputPin,
Source§fn select_guard(&mut self) -> DeselectOnDrop<'_, Self>
fn select_guard(&mut self) -> DeselectOnDrop<'_, Self>
Selects the device and returns a guard that, when dropped, deselects the chip.
Source§type Guard<'a> = DeselectOnDrop<'a, ChipSelectActiveLow<Pin>>
where
Pin: 'a
type Guard<'a> = DeselectOnDrop<'a, ChipSelectActiveLow<Pin>> where Pin: 'a
A guard that, when dropped, deselects the chip.
Source§impl<Pin> From<Pin> for ChipSelectActiveLow<Pin>where
Pin: OutputPin,
impl<Pin> From<Pin> for ChipSelectActiveLow<Pin>where
Pin: OutputPin,
impl<Pin> ActiveLow for ChipSelectActiveLow<Pin>where
Pin: OutputPin,
Auto Trait Implementations§
impl<Pin> Freeze for ChipSelectActiveLow<Pin>where
Pin: Freeze,
impl<Pin> RefUnwindSafe for ChipSelectActiveLow<Pin>where
Pin: RefUnwindSafe,
impl<Pin> Send for ChipSelectActiveLow<Pin>where
Pin: Send,
impl<Pin> Sync for ChipSelectActiveLow<Pin>where
Pin: Sync,
impl<Pin> Unpin for ChipSelectActiveLow<Pin>where
Pin: Unpin,
impl<Pin> UnwindSafe for ChipSelectActiveLow<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