[−][src]Type Definition esp32::spi::spi_clock_reg::W
type W = W<u32, SPI_CLOCK_REG>;
Writer for register SPI_CLOCK_REG
Methods
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 system 0: spi_clk is divided from system 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 system/(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 equal to spi_clkcnt_N. In the slave mode it must be 0.