Driver
TLE92466ED Driver¶
A C++20 driver for the Infineon TLE92466ED six-channel low-side solenoid driver. It starts the chip, regulates each coil current with the chip's own controller and dither, reads the current feedback and the diagnosis, and checks every SPI reply, on any MCU.
The driver has no platform code. You give it a small class that brings the bus up and moves 32-bit frames; it does the rest: the reset and start-up sequence, the operation states, the frame CRC, the one-frame reply pipeline, unit conversion, fault latching and bounded waits.
- Function
- Six low-side channels with integrated MOSFETs and shunts; each regulates its average coil current
- Current
- 0 to 1.5 A per channel, 15-bit setpoint, 1 % accuracy; 1.8 A with dither; 2.43 A from a parallel pair (2.7 A range)
- Control
- Integrating current controller with a PWM frequency controller (110 Hz to 4 kHz), dither generator, direct drive from SPI or the DRV0/DRV1 pins
- Diagnosis
- Open load, short to ground and overcurrent in ON and OFF state, overtemperature, supply and clock monitors
- Interface
- SPI mode 1, up to 8 MHz; 32-bit frames with CRC-8 SAE J1850; SPI watchdog
- Supply
- VDD 4.5 V to 5.5 V, VIO 3.3 V or 5 V, VBAT 6 V to 18 V
What you get¶
- One object per chip.
TLE92466ED<YourPort>takes a reference to your port and does no I/O untilEnsureInitialized(). See API guide. - Errors you can act on. Every call returns
Result<T>with anErrorsuch asNoDevice,MissionBlockedorCriticalFault. See API guide. - Replies proven before they are used. CRC, reply width, R/W echo, status and an anchor read in every access: a stuck, looped-back or out-of-step bus is an error, never data. See Architecture.
- Datasheet defaults.
Config{}holds the chip's reset values, with units in the field names, plus a current-control preset. See Configuration. - Zero-overhead portability. The port is a CRTP class checked by a concept: the bus hooks and a delay, plus optional RESN, EN, DRV, FAULTN and logging hooks found at compile time. See Porting.
- No heap, no exceptions, no RTTI. The host tests build with
-fno-exceptions -fno-rtti. See Contract. - Tested without hardware, honest about it. Host tests run the driver against a protocol model of the chip; what only a bench can confirm is listed in Status and limitations.
Datasheet¶
| Document | Revision | Get it |
|---|---|---|
| Datasheet: TLE92466ED (Infineon IFX-ntz1491827137291) | 1.2, 2022-02-01 | PDF ยท vendor page |
Written against these revisions; the SHA-256 of each file is in docs/datasheets.yml. Where each part
of the driver is in the datasheet: Datasheet map.
Where to go next¶
-
Wire the chip, write the port, regulate a coil current in about 20 lines.
-
Pins, bus settings, timing and power.
-
What the driver promises, what it needs, threading and errors.
-
Start, drive channels, read feedback and faults, handle errors, task by task.
-
Implement the port for your MCU.
-
Every class and member, generated from the headers.