26 static constexpr int MISO = 2;
27 static constexpr int MOSI = 7;
28 static constexpr int SCLK = 6;
29 static constexpr int CS = 10;
40 static constexpr int MODE = 0;
163 "Single channel current exceeds hardware limit of 2000mA");
166 "Parallel channel current exceeds hardware limit of 4000mA");
169 "SPI frequency exceeds TLE92466ED maximum of 8MHz");
172 "TLE92466ED requires SPI Mode 0 (CPOL=0, CPHA=0)");
177#define TLE92466ED_VALIDATE_CURRENT(current_ma) \
178 static_assert((current_ma) <= TLE92466ED_Config::CurrentLimits::SINGLE_CHANNEL_MAX, \
179 "Current exceeds maximum limit")
184#define TLE92466ED_VALIDATE_GPIO(pin) \
185 static_assert((pin) >= 0 && (pin) < 30, "Invalid GPIO pin number for ESP32-C6")
Definition TLE92466ED_Config.hpp:17
Application-specific Configuration.
Definition TLE92466ED_Config.hpp:141
static constexpr bool ENABLE_DEBUG_LOGGING
Enable detailed debug logs.
Definition TLE92466ED_Config.hpp:143
static constexpr bool ENABLE_AUTO_RECOVERY
Enable automatic error recovery.
Definition TLE92466ED_Config.hpp:151
static constexpr uint8_t MAX_ERROR_COUNT
Maximum errors before failsafe.
Definition TLE92466ED_Config.hpp:152
static constexpr uint32_t STATS_REPORT_INTERVAL_MS
Statistics reporting interval.
Definition TLE92466ED_Config.hpp:148
static constexpr bool ENABLE_PERFORMANCE_MONITORING
Enable performance metrics.
Definition TLE92466ED_Config.hpp:147
static constexpr bool ENABLE_SPI_LOGGING
Enable SPI transaction logs.
Definition TLE92466ED_Config.hpp:144
Channel Pairing for Parallel Mode.
Definition TLE92466ED_Config.hpp:125
static constexpr uint8_t PAIR_1_CH_B
Definition TLE92466ED_Config.hpp:130
static constexpr uint8_t PAIR_2_CH_A
Channel 4 pairs with Channel 5.
Definition TLE92466ED_Config.hpp:132
static constexpr uint8_t PAIR_0_CH_B
Definition TLE92466ED_Config.hpp:127
static constexpr uint8_t PAIR_1_CH_A
Channel 1 pairs with Channel 2.
Definition TLE92466ED_Config.hpp:129
static constexpr uint8_t PAIR_0_CH_A
Channel 0 pairs with Channel 3.
Definition TLE92466ED_Config.hpp:126
static constexpr uint8_t PAIR_2_CH_B
Definition TLE92466ED_Config.hpp:133
Current Control Limits (milliamps)
Definition TLE92466ED_Config.hpp:51
static constexpr uint16_t PARALLEL_CHANNEL_MAX
Maximum parallel channel current (mA)
Definition TLE92466ED_Config.hpp:54
static constexpr uint16_t RESOLUTION
Current resolution (μA per LSB)
Definition TLE92466ED_Config.hpp:55
static constexpr uint16_t SINGLE_CHANNEL_MIN
Minimum current (mA)
Definition TLE92466ED_Config.hpp:52
static constexpr uint16_t SINGLE_CHANNEL_MAX
Maximum single channel current (mA)
Definition TLE92466ED_Config.hpp:53
Diagnostic Thresholds.
Definition TLE92466ED_Config.hpp:101
static constexpr uint32_t POLL_INTERVAL_MS
Diagnostic polling interval (ms)
Definition TLE92466ED_Config.hpp:103
static constexpr uint16_t OVERCURRENT_THRESHOLD_MA
Overcurrent fault threshold (mA)
Definition TLE92466ED_Config.hpp:102
static constexpr uint8_t MAX_RETRY_COUNT
Maximum communication retries.
Definition TLE92466ED_Config.hpp:104
SPI Communication Parameters.
Definition TLE92466ED_Config.hpp:38
static constexpr int MODE
SPI Mode 0 (CPOL=0, CPHA=0)
Definition TLE92466ED_Config.hpp:40
static constexpr int QUEUE_SIZE
Transaction queue size.
Definition TLE92466ED_Config.hpp:41
static constexpr int FREQUENCY
1MHz SPI frequency
Definition TLE92466ED_Config.hpp:39
SPI Configuration for ESP32-C6.
Definition TLE92466ED_Config.hpp:25
static constexpr int MISO
GPIO2 - SPI MISO (Master In Slave Out)
Definition TLE92466ED_Config.hpp:26
static constexpr int SCLK
GPIO6 - SPI Clock.
Definition TLE92466ED_Config.hpp:28
static constexpr int MOSI
GPIO7 - SPI MOSI (Master Out Slave In)
Definition TLE92466ED_Config.hpp:27
static constexpr int CS
GPIO10 - Chip Select (active low)
Definition TLE92466ED_Config.hpp:29
Supply Voltage Specifications (volts)
Definition TLE92466ED_Config.hpp:64
static constexpr float VBAT_MAX
Maximum VBAT voltage (V)
Definition TLE92466ED_Config.hpp:67
static constexpr float VBAT_MIN
Minimum VBAT voltage (V)
Definition TLE92466ED_Config.hpp:65
static constexpr float VDD_NOM
Logic supply voltage (V)
Definition TLE92466ED_Config.hpp:68
static constexpr float VBAT_NOM
Nominal VBAT voltage (V)
Definition TLE92466ED_Config.hpp:66
Temperature Specifications (celsius)
Definition TLE92466ED_Config.hpp:76
static constexpr int JUNCTION_MAX
Maximum junction temperature (°C)
Definition TLE92466ED_Config.hpp:79
static constexpr int OPERATING_MAX
Maximum operating temperature (°C)
Definition TLE92466ED_Config.hpp:78
static constexpr int OPERATING_MIN
Minimum operating temperature (°C)
Definition TLE92466ED_Config.hpp:77
static constexpr int WARNING_THRESHOLD
Temperature warning threshold (°C)
Definition TLE92466ED_Config.hpp:80
Test Configuration.
Definition TLE92466ED_Config.hpp:112
static constexpr uint32_t RAMP_STEP_DELAY_MS
Delay between ramp steps (ms)
Definition TLE92466ED_Config.hpp:116
static constexpr uint16_t RAMP_STEP_MA
Current ramp step size (mA)
Definition TLE92466ED_Config.hpp:115
static constexpr uint32_t TEST_DURATION_MS
Test duration (ms)
Definition TLE92466ED_Config.hpp:114
static constexpr uint16_t DEFAULT_TEST_CURRENT
Default test current (mA)
Definition TLE92466ED_Config.hpp:113
Timing Parameters (microseconds)
Definition TLE92466ED_Config.hpp:88
static constexpr uint32_t RESET_DELAY_MS
Reset pulse duration (ms)
Definition TLE92466ED_Config.hpp:93
static constexpr uint32_t POWER_ON_DELAY_MS
Power-on initialization delay (ms)
Definition TLE92466ED_Config.hpp:92
static constexpr uint32_t INTER_FRAME_US
Minimum time between frames (μs)
Definition TLE92466ED_Config.hpp:91
static constexpr uint32_t CS_SETUP_US
CS setup time before SCLK (μs)
Definition TLE92466ED_Config.hpp:89
static constexpr uint32_t CS_HOLD_US
CS hold time after SCLK (μs)
Definition TLE92466ED_Config.hpp:90