Struct rp2040_pac2::xip_ssi::regs::Ctrlr0 [−][src]
Control register 0
Implementations
impl Ctrlr0
[src]
pub const fn sste(&self) -> bool
[src]
Slave select toggle enable
pub fn set_sste(&mut self, val: bool)
[src]
Slave select toggle enable
pub const fn spi_frf(&self) -> Ctrlr0SpiFrf
[src]
SPI frame format
pub fn set_spi_frf(&mut self, val: Ctrlr0SpiFrf)
[src]
SPI frame format
pub const fn dfs_32(&self) -> u8
[src]
Data frame size in 32b transfer mode Value of n -> n+1 clocks per frame.
pub fn set_dfs_32(&mut self, val: u8)
[src]
Data frame size in 32b transfer mode Value of n -> n+1 clocks per frame.
pub const fn cfs(&self) -> u8
[src]
Control frame size Value of n -> n+1 clocks per frame.
pub fn set_cfs(&mut self, val: u8)
[src]
Control frame size Value of n -> n+1 clocks per frame.
pub const fn srl(&self) -> bool
[src]
Shift register loop (test mode)
pub fn set_srl(&mut self, val: bool)
[src]
Shift register loop (test mode)
pub const fn slv_oe(&self) -> bool
[src]
Slave output enable
pub fn set_slv_oe(&mut self, val: bool)
[src]
Slave output enable
pub const fn tmod(&self) -> Ctrlr0Tmod
[src]
Transfer mode
pub fn set_tmod(&mut self, val: Ctrlr0Tmod)
[src]
Transfer mode
pub const fn scpol(&self) -> bool
[src]
Serial clock polarity
pub fn set_scpol(&mut self, val: bool)
[src]
Serial clock polarity
pub const fn scph(&self) -> bool
[src]
Serial clock phase
pub fn set_scph(&mut self, val: bool)
[src]
Serial clock phase
pub const fn frf(&self) -> u8
[src]
Frame format
pub fn set_frf(&mut self, val: u8)
[src]
Frame format
pub const fn dfs(&self) -> u8
[src]
Data frame size
pub fn set_dfs(&mut self, val: u8)
[src]
Data frame size
Trait Implementations
impl Clone for Ctrlr0
[src]
fn clone(&self) -> Ctrlr0
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Ctrlr0
[src]
impl Default for Ctrlr0
[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>,