|
TLE92466ED Driver 0.1.0
API reference
|
Everything EnsureInitialized() writes to the chip, and the driver's own settings.
More...
#include <tle92466ed_types.hpp>
Public Attributes | |
| VioLevel | vio {VioLevel::V5V0} |
| bool | crc_check {true} |
| bool | clock_watchdog {true} |
| GLOBAL_CONFIG.CLK_WD_EN (4.2.2). | |
| bool | spi_watchdog {false} |
| GLOBAL_CONFIG.SPI_WD_EN (5.2.2). | |
| uint16_t | watchdog_reload {1} |
| ClockSource | clock {ClockSource::Internal} |
| CLK_DIV.EXT_CLK. | |
| uint32_t | external_clock_khz {0} |
| uint8_t | vbat_uv_code {0x19U} |
| VBAT_TH.VBAT_UV_TH, 162.08 mV per count (4.05 V). | |
| uint8_t | vbat_ov_code {0xFFU} |
| VBAT_TH.VBAT_OV_TH (41.3 V). | |
| FaultPinMask | fault_pin {} |
| FAULT_MASK0..2. | |
| std::array< bool, kPairCount > | parallel {} |
CH_CTRL.CH_PAR_x_y, indexed by ParallelPair. | |
| std::array< ChannelConfig, kChannelCount > | channels {} |
Per channel, indexed by Channel. | |
| uint32_t | init_timeout_us {10000} |
| uint8_t | max_retries {2} |
Everything EnsureInitialized() writes to the chip, and the driver's own settings.
Register fields default to the chip's reset values, so Config{} changes nothing on a freshly reset chip (and declares no channel loaded). It has no operator==.
| bool tle92466ed::Config::crc_check {true} |
GLOBAL_CONFIG.CRC_EN: the chip checks the driver's frame CRCs. The driver always sends and checks CRCs.
| uint32_t tle92466ed::Config::external_clock_khz {0} |
f_CLK on the CLK pin with ClockSource::External: 1000 to 8000 kHz in 500 kHz steps (Table 10).
| uint32_t tle92466ed::Config::init_timeout_us {10000} |
Driver: longest wait for INIT_DONE after a reset or a clock change, 100 to 100000 us (t_POR = 10 ms).
| uint8_t tle92466ed::Config::max_retries {2} |
Driver: retries of a read whose reply failed its checks, 0 to kMaxRetries. Writes never retry.
| VioLevel tle92466ed::Config::vio {VioLevel::V5V0} |
GLOBAL_CONFIG.VIO_SEL: set it to the board's VIO, or the VIO monitor keeps the chip in Config Mode.
| uint16_t tle92466ed::Config::watchdog_reload {1} |
WD_RELOAD.WD_TIME, 1 to 2047 counts of 2^14/f_SYS (0.585 ms), at least kMinWatchdogReload with spi_watchdog; see WatchdogReloadCode().