Struct esp32c3::spi1::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 42 fields pub cmd: CMD, pub addr: ADDR, pub ctrl: CTRL, pub ctrl1: CTRL1, pub ctrl2: CTRL2, pub clock: CLOCK, pub user: USER, pub user1: USER1, pub user2: USER2, pub mosi_dlen: MOSI_DLEN, pub miso_dlen: MISO_DLEN, pub rd_status: RD_STATUS, pub misc: MISC, pub tx_crc: TX_CRC, pub cache_fctrl: CACHE_FCTRL, pub w0: W0, pub w1: W1, pub w2: W2, pub w3: W3, pub w4: W4, pub w5: W5, pub w6: W6, pub w7: W7, pub w8: W8, pub w9: W9, pub w10: W10, pub w11: W11, pub w12: W12, pub w13: W13, pub w14: W14, pub w15: W15, pub flash_waiti_ctrl: FLASH_WAITI_CTRL, pub flash_sus_ctrl: FLASH_SUS_CTRL, pub flash_sus_cmd: FLASH_SUS_CMD, pub sus_status: SUS_STATUS, pub timing_cali: TIMING_CALI, pub int_ena: INT_ENA, pub int_clr: INT_CLR, pub int_raw: INT_RAW, pub int_st: INT_ST, pub clock_gate: CLOCK_GATE, pub date: DATE, /* private fields */
}
Expand description

Register block

Fields

cmd: CMD

0x00 - SPI1 memory command register

addr: ADDR

0x04 - SPI1 address register

ctrl: CTRL

0x08 - SPI1 control register.

ctrl1: CTRL1

0x0c - SPI1 control1 register.

ctrl2: CTRL2

0x10 - SPI1 control2 register.

clock: CLOCK

0x14 - SPI1 clock division control register.

user: USER

0x18 - SPI1 user register.

user1: USER1

0x1c - SPI1 user1 register.

user2: USER2

0x20 - SPI1 user2 register.

mosi_dlen: MOSI_DLEN

0x24 - SPI1 send data bit length control register.

miso_dlen: MISO_DLEN

0x28 - SPI1 receive data bit length control register.

rd_status: RD_STATUS

0x2c - SPI1 status register.

misc: MISC

0x34 - SPI1 misc register

tx_crc: TX_CRC

0x38 - SPI1 TX CRC data register.

cache_fctrl: CACHE_FCTRL

0x3c - SPI1 bit mode control register.

w0: W0

0x58 - SPI1 memory data buffer0

w1: W1

0x5c - SPI1 memory data buffer1

w2: W2

0x60 - SPI1 memory data buffer2

w3: W3

0x64 - SPI1 memory data buffer3

w4: W4

0x68 - SPI1 memory data buffer4

w5: W5

0x6c - SPI1 memory data buffer5

w6: W6

0x70 - SPI1 memory data buffer6

w7: W7

0x74 - SPI1 memory data buffer7

w8: W8

0x78 - SPI1 memory data buffer8

w9: W9

0x7c - SPI1 memory data buffer9

w10: W10

0x80 - SPI1 memory data buffer10

w11: W11

0x84 - SPI1 memory data buffer11

w12: W12

0x88 - SPI1 memory data buffer12

w13: W13

0x8c - SPI1 memory data buffer13

w14: W14

0x90 - SPI1 memory data buffer14

w15: W15

0x94 - SPI1 memory data buffer15

flash_waiti_ctrl: FLASH_WAITI_CTRL

0x98 - SPI1 wait idle control register

flash_sus_ctrl: FLASH_SUS_CTRL

0x9c - SPI1 flash suspend control register

flash_sus_cmd: FLASH_SUS_CMD

0xa0 - SPI1 flash suspend command register

sus_status: SUS_STATUS

0xa4 - SPI1 flash suspend status register

timing_cali: TIMING_CALI

0xa8 - SPI1 timing control register

int_ena: INT_ENA

0xc0 - SPI1 interrupt enable register

int_clr: INT_CLR

0xc4 - SPI1 interrupt clear register

int_raw: INT_RAW

0xc8 - SPI1 interrupt raw register

int_st: INT_ST

0xcc - SPI1 interrupt status register

clock_gate: CLOCK_GATE

0xdc - SPI1 clk_gate register

date: DATE

0x3fc - Version control register

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.