pub struct ShiftConfig {
pub threshold: u8,
pub direction: ShiftDirection,
pub auto_fill: bool,
}Expand description
PIO shift register config for input or output.
Fields§
§threshold: u8Number of bits shifted out of OSR before autopull.
direction: ShiftDirectionShift direction.
auto_fill: boolFor output: Pull automatically output shift register is emptied. For input: Push automatically when the input shift register is filled.
Trait Implementations§
Source§impl Clone for ShiftConfig
impl Clone for ShiftConfig
Source§fn clone(&self) -> ShiftConfig
fn clone(&self) -> ShiftConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShiftConfig
Source§impl Debug for ShiftConfig
impl Debug for ShiftConfig
Source§impl Default for ShiftConfig
impl Default for ShiftConfig
Source§fn default() -> ShiftConfig
fn default() -> ShiftConfig
Returns the “default value” for a type. Read more
Source§impl Format for ShiftConfigwhere
ShiftDirection: Format,
impl Format for ShiftConfigwhere
ShiftDirection: Format,
Auto Trait Implementations§
impl Freeze for ShiftConfig
impl RefUnwindSafe for ShiftConfig
impl Send for ShiftConfig
impl Sync for ShiftConfig
impl Unpin for ShiftConfig
impl UnsafeUnpin for ShiftConfig
impl UnwindSafe for ShiftConfig
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