pub struct W(_);
Expand description
Register PIN
writer
Implementations§
§impl W
impl W
pub fn cs0_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 0>
pub fn cs0_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 0>
Bit 0 - SPI CS0 pin enable, 1: disable CS0, 0: spi_cs0 signal is from/to CS0 pin
pub fn cs1_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 1>
pub fn cs1_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 1>
Bit 1 - SPI CS1 pin enable, 1: disable CS1, 0: spi_cs1 signal is from/to CS1 pin
pub fn cs2_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 2>
pub fn cs2_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 2>
Bit 2 - SPI CS2 pin enable, 1: disable CS2, 0: spi_cs2 signal is from/to CS2 pin
pub fn ck_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 5>
pub fn ck_dis(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 5>
Bit 5 - 1: spi clk out disable 0: spi clk out enable
pub fn master_cs_pol(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 3, 6>
pub fn master_cs_pol(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 3, 6>
Bits 6:8 - In the master mode the bits are the polarity of spi cs line the value is equivalent to spi_cs ^ spi_master_cs_pol.
pub fn master_ck_sel(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 3, 11>
pub fn master_ck_sel(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 3, 11>
Bits 11:13 - In the master mode spi cs line is enable as spi clk it is combined with spi_cs0_dis spi_cs1_dis spi_cs2_dis.
pub fn ck_idle_edge(
&mut self
) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 29>
pub fn ck_idle_edge(
&mut self
) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 29>
Bit 29 - 1: spi clk line is high when idle 0: spi clk line is low when idle
pub fn cs_keep_active(
&mut self
) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 30>
pub fn cs_keep_active(
&mut self
) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 30>
Bit 30 - spi cs line keep low when the bit is set.
Methods from Deref<Target = W<PIN_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.