Struct esp32c2_hal::pac::spi1::clock::R

pub struct R(_);
Expand description

Register CLOCK reader

Implementations§

Bits 0:7 - In the master mode it must be equal to spi_mem_clkcnt_N.

Bits 8:15 - In the master mode it must be floor((spi_mem_clkcnt_N+1)/2-1).

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)

Bit 31 - reserved

Methods from Deref<Target = R<CLOCK_SPEC>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.