pub struct PinConfig {
pub sideset_count: u8,
pub set_count: u8,
pub out_count: u8,
pub in_base: u8,
pub sideset_base: u8,
pub set_base: u8,
pub out_base: u8,
}Expand description
PIO pin config.
Fields§
§sideset_count: u8The number of MSBs of the Delay/Side-set instruction field which are used for side-set.
set_count: u8The number of pins asserted by a SET. In the range 0 to 5 inclusive.
out_count: u8The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV PINS instruction. In the range 0 to 32 inclusive.
in_base: u8The pin which is mapped to the least-significant bit of a state machine’s IN data bus.
sideset_base: u8The lowest-numbered pin that will be affected by a side-set operation.
set_base: u8The lowest-numbered pin that will be affected by a SET PINS or SET PINDIRS instruction.
out_base: u8The lowest-numbered pin that will be affected by an OUT PINS, OUT PINDIRS or MOV PINS instruction.
Trait Implementations§
impl Copy for PinConfig
Auto Trait Implementations§
impl Freeze for PinConfig
impl RefUnwindSafe for PinConfig
impl Send for PinConfig
impl Sync for PinConfig
impl Unpin for PinConfig
impl UnsafeUnpin for PinConfig
impl UnwindSafe for PinConfig
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