Struct rp2040_pac2::pio::regs::SmShiftctrl[][src]

#[repr(transparent)]pub struct SmShiftctrl(pub u32);

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]

impl Copy for SmShiftctrl[src]

impl Default for SmShiftctrl[src]

Auto Trait Implementations

impl Send for SmShiftctrl

impl Sync for SmShiftctrl

impl Unpin for SmShiftctrl

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.