|
TLE92466ED Driver 0.1.0-preview
Modern C++23 driver for Infineon TLE92466ED Six-Channel Low-Side Solenoid Driver
|
32-bit SPI frame structure for TLE92466ED communication More...
#include <TLE92466ED_Registers.hpp>
Static Public Member Functions | |
| static constexpr SPIFrame | make_read (uint16_t addr) noexcept |
| Construct read frame (without CRC - must be calculated separately) | |
| static constexpr SPIFrame | make_write (uint16_t addr, uint16_t data) noexcept |
| Construct write frame (without CRC - must be calculated separately) | |
Public Attributes | ||
| uint32_t | word | |
| Complete 32-bit frame. | ||
| struct { | ||
| uint32_t data: 16 | ||
| Data field [15:0]. More... | ||
| uint32_t rw: 1 | ||
| Read/Write bit [16] (1=Write, 0=Read) More... | ||
| uint32_t address: 7 | ||
| Register address [23:17]. More... | ||
| uint32_t crc: 8 | ||
| CRC-8 SAE J1850 [31:24]. More... | ||
| } | tx_fields | |
| MOSI (Transmit) frame structure. | ||
| struct { | ||
| uint32_t data: 16 | ||
| Data field [15:0]. More... | ||
| uint32_t rw_echo: 1 | ||
| R/W bit echoed [16]. More... | ||
| uint32_t status: 5 | ||
| Status bits [21:17]. More... | ||
| uint32_t reply_mode: 2 | ||
| Reply mode [23:22]. More... | ||
| uint32_t crc: 8 | ||
| CRC-8 SAE J1850 [31:24]. More... | ||
| } | rx_fields | |
| MISO (Receive) frame structure. | ||
32-bit SPI frame structure for TLE92466ED communication
The TLE92466ED uses 32-bit SPI frames with the following format:
MOSI (Write) Frame:
* Bits 31-24 | Bits 23-17 | Bit 16 | Bits 15-0 * ------------+------------+--------+----------- * CRC (8-bit)| Address(7) | R/W | Data (16) *
MISO (Reply) Frame:
* Bits 31-24 | Bits 23-22 | Bits 21-17 | Bit 16 | Bits 15-0 * ------------+------------+------------+--------+----------- * CRC (8-bit)| Reply Mode | Status (5) | R/W | Data (16) *
|
inlinestaticconstexprnoexcept |
Construct read frame (without CRC - must be calculated separately)
| addr | Register address (10-bit actual address) |
|
inlinestaticconstexprnoexcept |
Construct write frame (without CRC - must be calculated separately)
| addr | Register address (10-bit actual address) |
| data | Data word to write (16-bit) |
| uint32_t TLE92466ED::SPIFrame::address |
Register address [23:17].
| uint32_t TLE92466ED::SPIFrame::crc |
CRC-8 SAE J1850 [31:24].
| uint32_t TLE92466ED::SPIFrame::data |
Data field [15:0].
| uint32_t TLE92466ED::SPIFrame::reply_mode |
Reply mode [23:22].
| uint32_t TLE92466ED::SPIFrame::rw |
Read/Write bit [16] (1=Write, 0=Read)
| uint32_t TLE92466ED::SPIFrame::rw_echo |
R/W bit echoed [16].
| struct { ... } TLE92466ED::SPIFrame::rx_fields |
MISO (Receive) frame structure.
| uint32_t TLE92466ED::SPIFrame::status |
Status bits [21:17].
| struct { ... } TLE92466ED::SPIFrame::tx_fields |
MOSI (Transmit) frame structure.
| uint32_t TLE92466ED::SPIFrame::word |
Complete 32-bit frame.