pub struct ShiftRegister40<Pin1, Pin2, Pin3>{ /* private fields */ }
Expand description
Serial-in parallel-out shift register
Implementations§
Source§impl<Pin1, Pin2, Pin3> ShiftRegister40<Pin1, Pin2, Pin3>
impl<Pin1, Pin2, Pin3> ShiftRegister40<Pin1, Pin2, Pin3>
Sourcepub fn new(clock: Pin1, latch: Pin2, data: Pin3) -> Self
pub fn new(clock: Pin1, latch: Pin2, data: Pin3) -> Self
Creates a new SIPO shift register from clock, latch, and data output pins
Sourcepub fn decompose(&self) -> [ShiftRegisterPin<'_>; 40]
pub fn decompose(&self) -> [ShiftRegisterPin<'_>; 40]
Get embedded-hal output pins to control the shift register outputs
Sourcepub fn release(self) -> (Pin1, Pin2, Pin3)
pub fn release(self) -> (Pin1, Pin2, Pin3)
Consume the shift register and return the original clock, latch, and data output pins
Auto Trait Implementations§
impl<Pin1, Pin2, Pin3> !Freeze for ShiftRegister40<Pin1, Pin2, Pin3>
impl<Pin1, Pin2, Pin3> !RefUnwindSafe for ShiftRegister40<Pin1, Pin2, Pin3>
impl<Pin1, Pin2, Pin3> Send for ShiftRegister40<Pin1, Pin2, Pin3>
impl<Pin1, Pin2, Pin3> !Sync for ShiftRegister40<Pin1, Pin2, Pin3>
impl<Pin1, Pin2, Pin3> Unpin for ShiftRegister40<Pin1, Pin2, Pin3>
impl<Pin1, Pin2, Pin3> UnwindSafe for ShiftRegister40<Pin1, Pin2, Pin3>
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