Struct esp32c2_hal::pac::spi1::clock::R
pub struct R(_);
Expand description
Register CLOCK
reader
Implementations§
§impl R
impl R
pub fn clkcnt_l(&self) -> FieldReaderRaw<u8, u8>
pub fn clkcnt_l(&self) -> FieldReaderRaw<u8, u8>
Bits 0:7 - In the master mode it must be equal to spi_mem_clkcnt_N.
pub fn clkcnt_h(&self) -> FieldReaderRaw<u8, u8>
pub fn clkcnt_h(&self) -> FieldReaderRaw<u8, u8>
Bits 8:15 - In the master mode it must be floor((spi_mem_clkcnt_N+1)/2-1).
pub fn clkcnt_n(&self) -> FieldReaderRaw<u8, u8>
pub fn clkcnt_n(&self) -> FieldReaderRaw<u8, u8>
Bits 16:23 - In the master mode it is the divider of spi_mem_clk. So spi_mem_clk frequency is system/(spi_mem_clkcnt_N+1)
pub fn clk_equ_sysclk(&self) -> BitReaderRaw<bool>
pub fn clk_equ_sysclk(&self) -> BitReaderRaw<bool>
Bit 31 - reserved
Methods from Deref<Target = R<CLOCK_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<CLOCK_SPEC>> for R
impl From<R<CLOCK_SPEC>> for R
§fn from(reader: R<CLOCK_SPEC>) -> R
fn from(reader: R<CLOCK_SPEC>) -> R
Converts to this type from the input type.