Struct lpc55_pac::spi0::cfg::CPOL_W [−][src]
pub struct CPOL_W<'a> { /* fields omitted */ }
Field CPOL
writer - Clock Polarity select.
Implementations
impl<'a> CPOL_W<'a>
[src]
impl<'a> CPOL_W<'a>
[src]pub fn variant(self, variant: CPOL_A) -> &'a mut W
[src]
Writes variant
to the field
pub fn low(self) -> &'a mut W
[src]
Low. The rest state of the clock (between transfers) is low.
pub fn high(self) -> &'a mut W
[src]
High. The rest state of the clock (between transfers) is high.
pub fn set_bit(self) -> &'a mut W
[src]
Sets the field bit
pub fn clear_bit(self) -> &'a mut W
[src]
Clears the field bit
pub fn bit(self, value: bool) -> &'a mut W
[src]
Writes raw bits to the field