[−][src]Struct esp8266::spi::spi_clock::R
Reader of register SPI_CLOCK
Implementations
impl R
[src]
pub fn spi_clk_equ_sysclk(&self) -> SPI_CLK_EQU_SYSCLK_R
[src]
Bit 31 - In the master mode, 1: spi_clk is eqaul to 80MHz, 0: spi_clk is divided from 80 MHz clock.
pub fn spi_clkdiv_pre(&self) -> SPI_CLKDIV_PRE_R
[src]
Bits 18:30 - In the master mode, it is pre-divider of spi_clk.
pub fn spi_clkcnt_n(&self) -> SPI_CLKCNT_N_R
[src]
Bits 12:17 - In the master mode, it is the divider of spi_clk. So spi_clk frequency is 80MHz/(spi_clkdiv_pre+1)/(spi_clkcnt_N+1)
pub fn spi_clkcnt_h(&self) -> SPI_CLKCNT_H_R
[src]
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.
pub fn spi_clkcnt_l(&self) -> SPI_CLKCNT_L_R
[src]
Bits 0:5 - In the master mode, it must be eqaul to spi_clkcnt_N. In the slave mode, it must be 0.
Methods from Deref<Target = R<SPI_CLOCK_SPEC>>
Trait Implementations
impl Deref for R
[src]
type Target = R<SPI_CLOCK_SPEC>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl From<R<SPI_CLOCK_SPEC>> for R
[src]
fn from(reader: R<SPI_CLOCK_SPEC>) -> Self
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,