#[repr(transparent)]pub struct SmPinctrl(pub u32);
Expand description
State machine pin control
Tuple Fields§
§0: u32
Implementations§
source§impl SmPinctrl
impl SmPinctrl
sourcepub const fn out_base(&self) -> u8
pub const fn out_base(&self) -> u8
The lowest-numbered pin that will be affected by an OUT PINS, OUT PINDIRS or MOV PINS instruction. The data written to this pin will always be the least-significant bit of the OUT or MOV data.
sourcepub fn set_out_base(&mut self, val: u8)
pub fn set_out_base(&mut self, val: u8)
The lowest-numbered pin that will be affected by an OUT PINS, OUT PINDIRS or MOV PINS instruction. The data written to this pin will always be the least-significant bit of the OUT or MOV data.
sourcepub const fn set_base(&self) -> u8
pub const fn set_base(&self) -> u8
The lowest-numbered pin that will be affected by a SET PINS or SET PINDIRS instruction. The data written to this pin is the least-significant bit of the SET data.
sourcepub fn set_set_base(&mut self, val: u8)
pub fn set_set_base(&mut self, val: u8)
The lowest-numbered pin that will be affected by a SET PINS or SET PINDIRS instruction. The data written to this pin is the least-significant bit of the SET data.
sourcepub const fn sideset_base(&self) -> u8
pub const fn sideset_base(&self) -> u8
The lowest-numbered pin that will be affected by a side-set operation. The MSBs of an instruction’s side-set/delay field (up to 5, determined by SIDESET_COUNT) are used for side-set data, with the remaining LSBs used for delay. The least-significant bit of the side-set portion is the bit written to this pin, with more-significant bits written to higher-numbered pins.
sourcepub fn set_sideset_base(&mut self, val: u8)
pub fn set_sideset_base(&mut self, val: u8)
The lowest-numbered pin that will be affected by a side-set operation. The MSBs of an instruction’s side-set/delay field (up to 5, determined by SIDESET_COUNT) are used for side-set data, with the remaining LSBs used for delay. The least-significant bit of the side-set portion is the bit written to this pin, with more-significant bits written to higher-numbered pins.
sourcepub const fn in_base(&self) -> u8
pub const fn in_base(&self) -> u8
The pin which is mapped to the least-significant bit of a state machine’s IN data bus. Higher-numbered pins are mapped to consecutively more-significant data bits, with a modulo of 32 applied to pin number.
sourcepub fn set_in_base(&mut self, val: u8)
pub fn set_in_base(&mut self, val: u8)
The pin which is mapped to the least-significant bit of a state machine’s IN data bus. Higher-numbered pins are mapped to consecutively more-significant data bits, with a modulo of 32 applied to pin number.
sourcepub const fn out_count(&self) -> u8
pub const fn out_count(&self) -> u8
The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV PINS instruction. In the range 0 to 32 inclusive.
sourcepub fn set_out_count(&mut self, val: u8)
pub fn set_out_count(&mut self, val: u8)
The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV PINS instruction. In the range 0 to 32 inclusive.
sourcepub const fn set_count(&self) -> u8
pub const fn set_count(&self) -> u8
The number of pins asserted by a SET. In the range 0 to 5 inclusive.
sourcepub fn set_set_count(&mut self, val: u8)
pub fn set_set_count(&mut self, val: u8)
The number of pins asserted by a SET. In the range 0 to 5 inclusive.
sourcepub const fn sideset_count(&self) -> u8
pub const fn sideset_count(&self) -> u8
The number of MSBs of the Delay/Side-set instruction field which are used for side-set. Inclusive of the enable bit, if present. Minimum of 0 (all delay bits, no side-set) and maximum of 5 (all side-set, no delay).
sourcepub fn set_sideset_count(&mut self, val: u8)
pub fn set_sideset_count(&mut self, val: u8)
The number of MSBs of the Delay/Side-set instruction field which are used for side-set. Inclusive of the enable bit, if present. Minimum of 0 (all delay bits, no side-set) and maximum of 5 (all side-set, no delay).
Trait Implementations§
impl Copy for SmPinctrl
impl Eq for SmPinctrl
impl StructuralPartialEq for SmPinctrl
Auto Trait Implementations§
impl Freeze for SmPinctrl
impl RefUnwindSafe for SmPinctrl
impl Send for SmPinctrl
impl Sync for SmPinctrl
impl Unpin for SmPinctrl
impl UnwindSafe for SmPinctrl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)