Module esp32_hal::pac::spi0::clock

Expand description

Structs

This register you can read, write_with_zero, reset, write, modify. See API.
Register CLOCK reader
Register CLOCK writer

Type Definitions

Field CLKCNT_H reader - In the master mode it must be floor((spi_clkcnt_N+1)/2-1). In the slave mode it must be 0.
Field CLKCNT_H writer - In the master mode it must be floor((spi_clkcnt_N+1)/2-1). In the slave mode it must be 0.
Field CLKCNT_L reader - In the master mode it must be equal to spi_clkcnt_N. In the slave mode it must be 0.
Field CLKCNT_L writer - In the master mode it must be equal to spi_clkcnt_N. In the slave mode it must be 0.
Field CLKCNT_N reader - 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)
Field CLKCNT_N writer - 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)
Field CLKDIV_PRE reader - In the master mode it is pre-divider of spi_clk.
Field CLKDIV_PRE writer - In the master mode it is pre-divider of spi_clk.
Field CLK_EQU_SYSCLK reader - In the master mode 1: spi_clk is eqaul to system 0: spi_clk is divided from system clock.
Field CLK_EQU_SYSCLK writer - In the master mode 1: spi_clk is eqaul to system 0: spi_clk is divided from system clock.