Struct rp2040_pac2::pio::regs::SmShiftctrl [−][src]
Control behaviour of the input/output shift registers for state machine 1
Implementations
impl SmShiftctrl
[src]
pub const fn fjoin_rx(&self) -> bool
[src]
When 1, RX FIFO steals the TX FIFO’s storage, and becomes twice as deep. TX FIFO is disabled as a result (always reads as both full and empty). FIFOs are flushed when this bit is changed.
pub fn set_fjoin_rx(&mut self, val: bool)
[src]
When 1, RX FIFO steals the TX FIFO’s storage, and becomes twice as deep. TX FIFO is disabled as a result (always reads as both full and empty). FIFOs are flushed when this bit is changed.
pub const fn fjoin_tx(&self) -> bool
[src]
When 1, TX FIFO steals the RX FIFO’s storage, and becomes twice as deep. RX FIFO is disabled as a result (always reads as both full and empty). FIFOs are flushed when this bit is changed.
pub fn set_fjoin_tx(&mut self, val: bool)
[src]
When 1, TX FIFO steals the RX FIFO’s storage, and becomes twice as deep. RX FIFO is disabled as a result (always reads as both full and empty). FIFOs are flushed when this bit is changed.
pub const fn pull_thresh(&self) -> u8
[src]
Number of bits shifted out of TXSR before autopull or conditional pull. Write 0 for value of 32.
pub fn set_pull_thresh(&mut self, val: u8)
[src]
Number of bits shifted out of TXSR before autopull or conditional pull. Write 0 for value of 32.
pub const fn push_thresh(&self) -> u8
[src]
Number of bits shifted into RXSR before autopush or conditional push. Write 0 for value of 32.
pub fn set_push_thresh(&mut self, val: u8)
[src]
Number of bits shifted into RXSR before autopush or conditional push. Write 0 for value of 32.
pub const fn out_shiftdir(&self) -> bool
[src]
1 = shift out of output shift register to right. 0 = to left.
pub fn set_out_shiftdir(&mut self, val: bool)
[src]
1 = shift out of output shift register to right. 0 = to left.
pub const fn in_shiftdir(&self) -> bool
[src]
1 = shift input shift register to right (data enters from left). 0 = to left.
pub fn set_in_shiftdir(&mut self, val: bool)
[src]
1 = shift input shift register to right (data enters from left). 0 = to left.
pub const fn autopull(&self) -> bool
[src]
Pull automatically when the output shift register is emptied
pub fn set_autopull(&mut self, val: bool)
[src]
Pull automatically when the output shift register is emptied
pub const fn autopush(&self) -> bool
[src]
Push automatically when the input shift register is filled
pub fn set_autopush(&mut self, val: bool)
[src]
Push automatically when the input shift register is filled
Trait Implementations
impl Clone for SmShiftctrl
[src]
fn clone(&self) -> SmShiftctrl
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SmShiftctrl
[src]
impl Default for SmShiftctrl
[src]
fn default() -> SmShiftctrl
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,