pub struct R(_);
Expand description
Register CLOCK
reader
Implementations
sourceimpl R
impl R
sourcepub fn clkcnt_l(&self) -> CLKCNT_L_R
pub fn clkcnt_l(&self) -> CLKCNT_L_R
Bits 0:5 - In the master mode it must be equal to spi_clkcnt_N. In the slave mode it must be 0. Can be configured in CONF state.
sourcepub fn clkcnt_h(&self) -> CLKCNT_H_R
pub fn clkcnt_h(&self) -> CLKCNT_H_R
Bits 6:11 - In the master mode it must be floor((spi_clkcnt_N+1)/2-1). In the slave mode it must be 0. Can be configured in CONF state.
sourcepub fn clkcnt_n(&self) -> CLKCNT_N_R
pub fn clkcnt_n(&self) -> CLKCNT_N_R
Bits 12:17 - In the master mode it is the divider of spi_clk. So spi_clk frequency is system/(spi_clkdiv_pre+1)/(spi_clkcnt_N+1). Can be configured in CONF state.
sourcepub fn clkdiv_pre(&self) -> CLKDIV_PRE_R
pub fn clkdiv_pre(&self) -> CLKDIV_PRE_R
Bits 18:21 - In the master mode it is pre-divider of spi_clk. Can be configured in CONF state.
sourcepub fn clk_equ_sysclk(&self) -> CLK_EQU_SYSCLK_R
pub fn clk_equ_sysclk(&self) -> CLK_EQU_SYSCLK_R
Bit 31 - In the master mode 1: spi_clk is eqaul to system 0: spi_clk is divided from system clock. Can be configured in CONF state.
Methods from Deref<Target = R<CLOCK_SPEC>>
Trait Implementations
sourceimpl From<R<CLOCK_SPEC>> for R
impl From<R<CLOCK_SPEC>> for R
sourcefn from(reader: R<CLOCK_SPEC>) -> Self
fn from(reader: R<CLOCK_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more