TLE92466ED Driver 0.1.0-dev
Modern C++20 driver for Infineon TLE92466ED Six-Channel Low-Side Solenoid Driver
Loading...
Searching...
No Matches
TLE92466ED_TestConfig::SPIParams Struct Reference

SPI Communication Parameters. More...

#include <esp32_tle92466ed_test_config.hpp>

Static Public Attributes

static constexpr uint32_t FREQUENCY = 1000000
 1MHz SPI frequency
 
static constexpr uint8_t MODE = 1
 SPI Mode 1 (CPOL=0, CPHA=1)
 
static constexpr uint8_t QUEUE_SIZE = 1
 Transaction queue size.
 
static constexpr uint8_t CS_ENA_PRETRANS = 1
 CS asserted N clock cycles before transaction.
 
static constexpr uint8_t CS_ENA_POSTTRANS = 1
 CS held N clock cycles after transaction.
 

Detailed Description

SPI Communication Parameters.

The TLE92466ED supports SPI frequencies up to 8MHz. We use 1MHz for reliable communication with standard wiring.

CS Timing Requirements (per TLE92466ED datasheet):

  • tCSS (CS setup): CS must be asserted (LOW) at least 50ns BEFORE first SCK edge
  • tCSH (CS hold): CS must remain asserted at least 50ns AFTER last SCK edge
  • tCSI (CS inactive): CS must be deasserted (HIGH) at least 100ns between transactions

cs_ena_pretrans and cs_ena_posttrans are in clock cycles. At 1MHz: 1 cycle = 1000ns, so 2 cycles = 2000ns (well above 50ns minimum)

Member Data Documentation

◆ CS_ENA_POSTTRANS

constexpr uint8_t TLE92466ED_TestConfig::SPIParams::CS_ENA_POSTTRANS = 1
staticconstexpr

CS held N clock cycles after transaction.

◆ CS_ENA_PRETRANS

constexpr uint8_t TLE92466ED_TestConfig::SPIParams::CS_ENA_PRETRANS = 1
staticconstexpr

CS asserted N clock cycles before transaction.

◆ FREQUENCY

constexpr uint32_t TLE92466ED_TestConfig::SPIParams::FREQUENCY = 1000000
staticconstexpr

1MHz SPI frequency

◆ MODE

constexpr uint8_t TLE92466ED_TestConfig::SPIParams::MODE = 1
staticconstexpr

SPI Mode 1 (CPOL=0, CPHA=1)

◆ QUEUE_SIZE

constexpr uint8_t TLE92466ED_TestConfig::SPIParams::QUEUE_SIZE = 1
staticconstexpr

Transaction queue size.


The documentation for this struct was generated from the following file: