|
TLE92466ED Driver 2.0.0
API reference
|
Global configuration structure. More...
#include <tle92466ed.hpp>
Public Attributes | |
| bool | crc_enabled {false} |
| Enable CRC checking (GLOBAL_CONFIG.CRC_EN) | |
| bool | spi_watchdog_enabled {false} |
| Enable SPI watchdog (GLOBAL_CONFIG.SPI_WD_EN) | |
| bool | clock_watchdog_enabled {true} |
| Enable clock watchdog (GLOBAL_CONFIG.CLK_WD_EN) | |
| bool | vio_5v {false} |
| VIO voltage (false=3.3V, true=5.0V) | |
| float | vbat_uv_voltage {7.0F} |
| VBAT UV threshold voltage in volts. | |
| float | vbat_ov_voltage {40.0F} |
| VBAT OV threshold voltage in volts. | |
| uint16_t | spi_watchdog_reload {1000} |
| SPI watchdog reload value (WD_RELOAD) | |
Global configuration structure.
The defaults are the configuration Init() writes, so ConfigureGlobal(GlobalConfig{}) changes nothing: CRC check and SPI watchdog off, clock watchdog on, 3.3 V VIO thresholds, VBAT 7 V / 40 V. Turn crc_enabled and spi_watchdog_enabled on explicitly once the bus is proven; with the SPI watchdog on, ReloadSpiWatchdog() must run before WD_TIME expires (datasheet 5.2.2).
| bool tle92466ed::GlobalConfig::clock_watchdog_enabled {true} |
Enable clock watchdog (GLOBAL_CONFIG.CLK_WD_EN)
| bool tle92466ed::GlobalConfig::crc_enabled {false} |
Enable CRC checking (GLOBAL_CONFIG.CRC_EN)
| bool tle92466ed::GlobalConfig::spi_watchdog_enabled {false} |
Enable SPI watchdog (GLOBAL_CONFIG.SPI_WD_EN)
| uint16_t tle92466ed::GlobalConfig::spi_watchdog_reload {1000} |
SPI watchdog reload value (WD_RELOAD)
| float tle92466ed::GlobalConfig::vbat_ov_voltage {40.0F} |
VBAT OV threshold voltage in volts.
| float tle92466ed::GlobalConfig::vbat_uv_voltage {7.0F} |
VBAT UV threshold voltage in volts.
| bool tle92466ed::GlobalConfig::vio_5v {false} |
VIO voltage (false=3.3V, true=5.0V)