#[repr(transparent)]pub struct Rxdelay(pub u32);
Expand description
Sample delay for input serial data on MISO
Tuple Fields§
§0: u32
Implementations§
Source§impl Rxdelay
impl Rxdelay
Sourcepub const fn rxdelay(&self) -> u8
pub const fn rxdelay(&self) -> u8
Sample delay for input serial data on MISO. The value specifies the number of SPIM core clock cycles delay from the the sampling edge of SCK (leading edge for CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until the input serial data is sampled. As en example, if RXDELAY = 0 and CONFIG.CPHA = 0, the input serial data is sampled on the rising edge of SCK.
Sourcepub fn set_rxdelay(&mut self, val: u8)
pub fn set_rxdelay(&mut self, val: u8)
Sample delay for input serial data on MISO. The value specifies the number of SPIM core clock cycles delay from the the sampling edge of SCK (leading edge for CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until the input serial data is sampled. As en example, if RXDELAY = 0 and CONFIG.CPHA = 0, the input serial data is sampled on the rising edge of SCK.