ESPHome
2023.5.5
|
Data Structures | |
class | SPIComponent |
class | SPIDevice |
Enumerations | |
enum | SPIBitOrder { BIT_ORDER_LSB_FIRST, BIT_ORDER_MSB_FIRST } |
The bit-order for SPI devices. This defines how the data read from and written to the device is interpreted. More... | |
enum | SPIClockPolarity { CLOCK_POLARITY_LOW = false, CLOCK_POLARITY_HIGH = true } |
The SPI clock signal polarity,. More... | |
enum | SPIClockPhase { CLOCK_PHASE_LEADING, CLOCK_PHASE_TRAILING } |
The SPI clock signal phase. More... | |
enum | SPIDataRate : uint32_t { DATA_RATE_1KHZ = 1000, DATA_RATE_75KHZ = 75000, DATA_RATE_200KHZ = 200000, DATA_RATE_1MHZ = 1000000, DATA_RATE_2MHZ = 2000000, DATA_RATE_4MHZ = 4000000, DATA_RATE_8MHZ = 8000000, DATA_RATE_10MHZ = 10000000, DATA_RATE_20MHZ = 20000000, DATA_RATE_40MHZ = 40000000 } |
The SPI clock signal data rate. More... | |
The SPI clock signal polarity,.
This defines how the clock signal is used. Flipping this effectively inverts the clock signal.
enum esphome::spi::SPIDataRate : uint32_t |
The SPI clock signal data rate.
This defines for what duration the clock signal is HIGH/LOW. So effectively the rate of bytes can be calculated using
effective_byte_rate = spi_data_rate / 16
Implementations can use the pre-defined constants here, or use an integer in the template definition to manually use a specific data rate.
Enumerator | |
---|---|
DATA_RATE_1KHZ | |
DATA_RATE_75KHZ | |
DATA_RATE_200KHZ | |
DATA_RATE_1MHZ | |
DATA_RATE_2MHZ | |
DATA_RATE_4MHZ | |
DATA_RATE_8MHZ | |
DATA_RATE_10MHZ | |
DATA_RATE_20MHZ | |
DATA_RATE_40MHZ |