Struct esp32c2_hal::pac::spi2::ctrl::R

pub struct R(_);
Expand description

Register CTRL reader

Implementations§

Bit 3 - 0: In the dummy phase, the FSPI bus signals are not output. 1: In the dummy phase, the FSPI bus signals are output. Can be configured in CONF state.

Bit 5 - Apply 2 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.

Bit 6 - Apply 4 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.

Bit 7 - Apply 8 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.

Bit 8 - Apply 2 signals during command phase 1:enable 0: disable. Can be configured in CONF state.

Bit 9 - Apply 4 signals during command phase 1:enable 0: disable. Can be configured in CONF state.

Bit 10 - Apply 8 signals during command phase 1:enable 0: disable. Can be configured in CONF state.

Bit 14 - In the read operations, read-data phase apply 2 signals. 1: enable 0: disable. Can be configured in CONF state.

Bit 15 - In the read operations read-data phase apply 4 signals. 1: enable 0: disable. Can be configured in CONF state.

Bit 16 - In the read operations read-data phase apply 8 signals. 1: enable 0: disable. Can be configured in CONF state.

Bit 18 - The bit is used to set MISO line polarity, 1: high 0, low. Can be configured in CONF state.

Bit 19 - The bit is used to set MOSI line polarity, 1: high 0, low. Can be configured in CONF state.

Bit 20 - SPI_HOLD output value when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.

Bit 21 - Write protect signal output when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.

Bits 23:24 - In read-data (MISO) phase 1: LSB first 0: MSB first. Can be configured in CONF state.

Bits 25:26 - In command address write-data (MOSI) phases 1: LSB firs 0: MSB first. Can be configured in CONF state.

Methods from Deref<Target = R<CTRL_SPEC>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

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.