Type Definition atsam4ls8b_pac::spi::csr::NCPHA_W

source ·
pub type NCPHA_W<'a, const O: u8> = BitWriter<'a, u32, CSR_SPEC, NCPHASELECT_A, O>;
Expand description

Field NCPHA writer - Clock Phase

Implementations§

source§

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

source

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

Data is changed on the leading edge of SPCK and captured on the following edge of SPCK.

source

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

Data is captured on the leading edge of SPCK and changed on the following edge of SPCK.NCPHA determines which edge of SPCK causes data to change and which edge causes data to be captured. NCPHA isused with CPOL to produce the required clock/data relationship between master and slave devices.