Type Alias nrf52840_pac::qspi::ifconfig1::SPIMODE_W

source ·
pub type SPIMODE_W<'a, const O: u8> = BitWriter<'a, u32, IFCONFIG1_SPEC, SPIMODE_A, O>;
Expand description

Field SPIMODE writer - Select SPI mode.

Aliased Type§

struct SPIMODE_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> SPIMODE_W<'a, O>

source

pub fn mode0(self) -> &'a mut W

Mode 0: Data are captured on the clock rising edge and data is output on a falling edge. Base level of clock is 0 (CPOL=0, CPHA=0).

source

pub fn mode3(self) -> &'a mut W

Mode 3: Data are captured on the clock falling edge and data is output on a rising edge. Base level of clock is 1 (CPOL=1, CPHA=1).