TLE92466ED Driver 0.1.0-preview
Modern C++23 driver for Infineon TLE92466ED Six-Channel Low-Side Solenoid Driver
Loading...
Searching...
No Matches
TLE92466ED::SPIFrame Union Reference

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.
 

Detailed Description

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)
* 

Member Function Documentation

◆ make_read()

static constexpr SPIFrame TLE92466ED::SPIFrame::make_read ( uint16_t addr)
inlinestaticconstexprnoexcept

Construct read frame (without CRC - must be calculated separately)

Parameters
addrRegister address (10-bit actual address)
Returns
SPIFrame configured for read operation (CRC = 0)

◆ make_write()

static constexpr SPIFrame TLE92466ED::SPIFrame::make_write ( uint16_t addr,
uint16_t data )
inlinestaticconstexprnoexcept

Construct write frame (without CRC - must be calculated separately)

Parameters
addrRegister address (10-bit actual address)
dataData word to write (16-bit)
Returns
SPIFrame configured for write operation (CRC = 0)

Member Data Documentation

◆ address

uint32_t TLE92466ED::SPIFrame::address

Register address [23:17].

◆ crc

uint32_t TLE92466ED::SPIFrame::crc

CRC-8 SAE J1850 [31:24].

◆ data

uint32_t TLE92466ED::SPIFrame::data

Data field [15:0].

◆ reply_mode

uint32_t TLE92466ED::SPIFrame::reply_mode

Reply mode [23:22].

◆ rw

uint32_t TLE92466ED::SPIFrame::rw

Read/Write bit [16] (1=Write, 0=Read)

◆ rw_echo

uint32_t TLE92466ED::SPIFrame::rw_echo

R/W bit echoed [16].

◆ [struct]

struct { ... } TLE92466ED::SPIFrame::rx_fields

MISO (Receive) frame structure.

◆ status

uint32_t TLE92466ED::SPIFrame::status

Status bits [21:17].

◆ [struct]

struct { ... } TLE92466ED::SPIFrame::tx_fields

MOSI (Transmit) frame structure.

◆ word

uint32_t TLE92466ED::SPIFrame::word

Complete 32-bit frame.


The documentation for this union was generated from the following file: