pub struct ChipSelect<const P: char, const N: u8> { /* private fields */ }Expand description
Manual chip-select line, active-low, generic over any GPIO pin.
Implementations§
Source§impl<const P: char, const N: u8> ChipSelect<P, N>
impl<const P: char, const N: u8> ChipSelect<P, N>
Sourcepub fn active_low<MODE>(pin: Pin<P, N, MODE>) -> Self
pub fn active_low<MODE>(pin: Pin<P, N, MODE>) -> Self
Create an active-low chip select and set to the inactive state (i.e., high).
pub fn free(self) -> Pin<P, N, Output<PushPull>>
Auto Trait Implementations§
impl<const P: char, const N: u8> Freeze for ChipSelect<P, N>
impl<const P: char, const N: u8> RefUnwindSafe for ChipSelect<P, N>
impl<const P: char, const N: u8> Send for ChipSelect<P, N>
impl<const P: char, const N: u8> Sync for ChipSelect<P, N>
impl<const P: char, const N: u8> Unpin for ChipSelect<P, N>
impl<const P: char, const N: u8> UnwindSafe for ChipSelect<P, N>
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