ADTF_DEVICE_TOOLBOX
3.12.1 (ADTF 3.18.3)
|
FlexDay data structured is used for storing and transmitting FlexRay data. More...
Classes | |
struct | tCycleStart |
Cycle start structure. More... | |
struct | tFrame |
Frame structure. More... | |
struct | tPDU |
PDU structure. More... | |
struct | tSync |
Sync structure. More... | |
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 } |
Enumeration of possible FlexRay tags. More... | |
enum | tFR_FLAGS { FR_FLAG_STARTUP = 0x01 , FR_FLAG_SYNC = 0x02 , FR_FLAG_NFI = 0x04 , FR_FLAG_PAYLOADPREAMBLE = 0x08 , FR_FLAG_RESERVED = 0x10 } |
Enumeration of possible FlexRay flags. More... | |
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) |
Returns the size of this structure. More... | |
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 | |
}; | |
FlexDay data structured is used for storing and transmitting FlexRay data.
Definition at line 59 of file flexray_frame.h.
enum 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 |
Definition at line 76 of file flexray_frame.h.
enum 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. |
Definition at line 64 of file flexray_frame.h.
|
inlinestatic |
Returns the size of this structure.
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! |
Definition at line 154 of file flexray_frame.h.
References tFlexRayData::FR_TAG_CYCLESTART, tFlexRayData::FR_TAG_FRAME, tFlexRayData::FR_TAG_PDU, tFlexRayData::FR_TAG_SYNC, and tFlexRayData::nTag.