Type Definition atsam4ls8b_pac::spi::csr::CPOL_W

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

Field CPOL writer - Clock Polarity

Implementations§

source§

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

source

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

The inactive state value of SPCK is logic level zero.

source

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

The inactive state value of SPCK is logic level one.CPOL is used to determine the inactive state value of the serial clock (SPCK). It is used with NCPHA to produce therequired clock/data relationship between master and slave devices.