[][src]Struct esp8266::spi1::spi_clock::W

pub struct W(_);

Writer for register SPI_CLOCK

Implementations

impl W[src]

pub fn spi_clk_equ_sysclk(&mut self) -> SPI_CLK_EQU_SYSCLK_W<'_>[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(&mut self) -> SPI_CLKDIV_PRE_W<'_>[src]

Bits 18:30 - In the master mode, it is pre-divider of spi_clk.

pub fn spi_clkcnt_n(&mut self) -> SPI_CLKCNT_N_W<'_>[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(&mut self) -> SPI_CLKCNT_H_W<'_>[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(&mut self) -> SPI_CLKCNT_L_W<'_>[src]

Bits 0:5 - In the master mode, it must be eqaul to spi_clkcnt_N. In the slave mode, it must be 0.

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self[src]

Writes raw bits to the register.

Methods from Deref<Target = W<SPI_CLOCK_SPEC>>

pub unsafe fn bits(&mut self, bits: REG::Ux)[src]

Writes raw bits to the register.

Trait Implementations

impl Deref for W[src]

type Target = W<SPI_CLOCK_SPEC>

The resulting type after dereferencing.

impl DerefMut for W[src]

impl From<W<SPI_CLOCK_SPEC>> for W[src]

Auto Trait Implementations

impl Send for W

impl Sync for W

impl Unpin for W

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.