Struct esp32c2_hal::pac::spi2::user2::R
pub struct R(_);
Expand description
Register USER2
reader
Implementations§
§impl R
impl R
pub fn usr_command_value(&self) -> FieldReaderRaw<u16, u16>
pub fn usr_command_value(&self) -> FieldReaderRaw<u16, u16>
Bits 0:15 - The value of command. Can be configured in CONF state.
pub fn mst_rempty_err_end_en(&self) -> BitReaderRaw<bool>
pub fn mst_rempty_err_end_en(&self) -> BitReaderRaw<bool>
Bit 27 - 1: SPI transfer is ended when SPI TX AFIFO read empty error is valid in GP-SPI master FD/HD-mode. 0: SPI transfer is not ended when SPI TX AFIFO read empty error is valid in GP-SPI master FD/HD-mode.
pub fn usr_command_bitlen(&self) -> FieldReaderRaw<u8, u8>
pub fn usr_command_bitlen(&self) -> FieldReaderRaw<u8, u8>
Bits 28:31 - The length in bits of command phase. The register value shall be (bit_num-1). Can be configured in CONF state.
Methods from Deref<Target = R<USER2_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<USER2_SPEC>> for R
impl From<R<USER2_SPEC>> for R
§fn from(reader: R<USER2_SPEC>) -> R
fn from(reader: R<USER2_SPEC>) -> R
Converts to this type from the input type.