ADTF Device Toolbox SDK
Loading...
Searching...
No Matches
adtf::devicetb::sdk::flexray::axle::tFlexRayData Struct Reference

#include <flexray_frame.h>

Collaboration diagram for adtf::devicetb::sdk::flexray::axle::tFlexRayData:
[legend]

Classes

struct  tCycleStart
 
struct  tFrame
 
struct  tPDU
 
struct  tSync
 

Public Types

enum  tFR_TAG {
  FR_TAG_INVALID = 0 , FR_TAG_CYCLESTART = 1 , FR_TAG_FRAME = 2 , FR_TAG_PDU = 3 ,
  FR_TAG_SYNC = 4
}
 
enum  tFR_FLAGS {
  FR_FLAG_STARTUP = 0x01 , FR_FLAG_SYNC = 0x02 , FR_FLAG_NFI = 0x04 , FR_FLAG_PAYLOADPREAMBLE = 0x08 ,
  FR_FLAG_RESERVED = 0x10
}
 
enum  { HEADER_SIZE = sizeof(uint16_t) + sizeof(uint32_t) + sizeof(uint8_t) + sizeof(int64_t) }
 

Static Public Member Functions

static uint16_t GetStructureSize (tFR_TAG nTag, uint8_t nPayloadLength=0)
 

Public Attributes

uint16_t nSize
 Total size in bytes of this structure.
 
tFR_TAG nTag
 Tag of union (See tFR_TAG)
 
uint8_t nReserved
 Reserved for future use.
 
int64_t nTimeStamp
 Hardware timestamp in µs.
 
union { 
 
   tCycleStart   sCycleStart 
 
   tFrame   sFrame 
 
   tPDU   sPDU 
 
   tSync   sSync 
 
};  
 

Detailed Description

FlexDay data structured is used for storing and transmitting FlexRay data.

Member Enumeration Documentation

◆ tFR_FLAGS

Enumeration of possible FlexRay flags

Enumerator
FR_FLAG_STARTUP 

Startup-Frame.

FR_FLAG_SYNC 

Sync-Frame.

FR_FLAG_NFI 

Null-Frame-Indicator.

FR_FLAG_PAYLOADPREAMBLE 

Payload Preamble.

FR_FLAG_RESERVED 

Reserved bit.

◆ tFR_TAG

Enumeration of possible FlexRay tags.

Enumerator
FR_TAG_INVALID 

Tag for invalid data.

FR_TAG_CYCLESTART 

Tag for cycle start data.

FR_TAG_FRAME 

Tag for frame data.

FR_TAG_PDU 

tag for PDU data

FR_TAG_SYNC 

Tag for sync data.

Member Function Documentation

◆ GetStructureSize()

static uint16_t adtf::devicetb::sdk::flexray::axle::tFlexRayData::GetStructureSize ( tFR_TAG nTag,
uint8_t nPayloadLength = 0 )
inlinestatic

Returns the size of this structure.

Parameters
nTag[in] See tFR_TAG values
nPayloadLength[in] Payload of frame in words (16-bit) when FR_TAG_FRAME is used, in bytes (8-bit) if FR_TAG_PDU is used!
Returns
Size of structure

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