#[repr(transparent)]pub struct SpiCtrlr0(pub u32);
Expand description
SPI control
Tuple Fields§
§0: u32
Implementations§
source§impl SpiCtrlr0
impl SpiCtrlr0
sourcepub const fn trans_type(&self) -> TransType
pub const fn trans_type(&self) -> TransType
Address and instruction transfer format
sourcepub fn set_trans_type(&mut self, val: TransType)
pub fn set_trans_type(&mut self, val: TransType)
Address and instruction transfer format
sourcepub fn set_addr_l(&mut self, val: u8)
pub fn set_addr_l(&mut self, val: u8)
Address length (0b-60b in 4b increments)
sourcepub fn set_inst_l(&mut self, val: InstL)
pub fn set_inst_l(&mut self, val: InstL)
Instruction length (0/4/8/16b)
sourcepub const fn wait_cycles(&self) -> u8
pub const fn wait_cycles(&self) -> u8
Wait cycles between control frame transmit and data reception (in SCLK cycles)
sourcepub fn set_wait_cycles(&mut self, val: u8)
pub fn set_wait_cycles(&mut self, val: u8)
Wait cycles between control frame transmit and data reception (in SCLK cycles)
sourcepub const fn spi_ddr_en(&self) -> bool
pub const fn spi_ddr_en(&self) -> bool
SPI DDR transfer enable
sourcepub fn set_spi_ddr_en(&mut self, val: bool)
pub fn set_spi_ddr_en(&mut self, val: bool)
SPI DDR transfer enable
sourcepub const fn inst_ddr_en(&self) -> bool
pub const fn inst_ddr_en(&self) -> bool
Instruction DDR transfer enable
sourcepub fn set_inst_ddr_en(&mut self, val: bool)
pub fn set_inst_ddr_en(&mut self, val: bool)
Instruction DDR transfer enable
sourcepub const fn spi_rxds_en(&self) -> bool
pub const fn spi_rxds_en(&self) -> bool
Read data strobe enable
sourcepub fn set_spi_rxds_en(&mut self, val: bool)
pub fn set_spi_rxds_en(&mut self, val: bool)
Read data strobe enable
sourcepub const fn xip_cmd(&self) -> u8
pub const fn xip_cmd(&self) -> u8
SPI Command to send in XIP mode (INST_L = 8-bit) or to append to Address (INST_L = 0-bit)
sourcepub fn set_xip_cmd(&mut self, val: u8)
pub fn set_xip_cmd(&mut self, val: u8)
SPI Command to send in XIP mode (INST_L = 8-bit) or to append to Address (INST_L = 0-bit)
Trait Implementations§
impl Copy for SpiCtrlr0
impl Eq for SpiCtrlr0
impl StructuralPartialEq for SpiCtrlr0
Auto Trait Implementations§
impl Freeze for SpiCtrlr0
impl RefUnwindSafe for SpiCtrlr0
impl Send for SpiCtrlr0
impl Sync for SpiCtrlr0
impl Unpin for SpiCtrlr0
impl UnwindSafe for SpiCtrlr0
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)