pub struct R(_);
Expand description
Register PIN
reader
Implementations§
§impl R
impl R
pub fn cs0_dis(&self) -> BitReaderRaw<bool>
pub fn cs0_dis(&self) -> BitReaderRaw<bool>
Bit 0 - SPI CS0 pin enable, 1: disable CS0, 0: spi_cs0 signal is from/to CS0 pin
pub fn cs1_dis(&self) -> BitReaderRaw<bool>
pub fn cs1_dis(&self) -> BitReaderRaw<bool>
Bit 1 - SPI CS1 pin enable, 1: disable CS1, 0: spi_cs1 signal is from/to CS1 pin
pub fn cs2_dis(&self) -> BitReaderRaw<bool>
pub fn cs2_dis(&self) -> BitReaderRaw<bool>
Bit 2 - SPI CS2 pin enable, 1: disable CS2, 0: spi_cs2 signal is from/to CS2 pin
pub fn master_cs_pol(&self) -> FieldReaderRaw<u8, u8>
pub fn master_cs_pol(&self) -> FieldReaderRaw<u8, u8>
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(&self) -> FieldReaderRaw<u8, u8>
pub fn master_ck_sel(&self) -> FieldReaderRaw<u8, u8>
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(&self) -> BitReaderRaw<bool>
pub fn ck_idle_edge(&self) -> BitReaderRaw<bool>
Bit 29 - 1: spi clk line is high when idle 0: spi clk line is low when idle
pub fn cs_keep_active(&self) -> BitReaderRaw<bool>
pub fn cs_keep_active(&self) -> BitReaderRaw<bool>
Bit 30 - spi cs line keep low when the bit is set.
Methods from Deref<Target = R<PIN_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.