ADTF_DEVICE_TOOLBOX
3.12.1 (ADTF 3.18.3)
|
Interface of FlexRay coder Objects of this type stores an internal buffer of FlexRay frames. More...
Public Types | |
enum | tEnumPDU { ENUM_PDU_START = 0xffffffff } |
Public Member Functions | |
ADTF_IID (IFlexRayCoder, IID_DEVTB_FLEXRAYCODER) | |
virtual tResult | GetDatabase (adtf::ucom::ant::iobject_ptr< IFlexRayDatabase > &pDataBase) const =0 |
Returns a reference to the FIBEX database. More... | |
virtual tResult | ResetData ()=0 |
Clears internal PDU buffer. More... | |
virtual tResult | ResetModifiedFlag ()=0 |
Resets the modified flag for all PDUs in the internal PDU buffer. More... | |
virtual tResult | ReceiveData (const void *pData, int nDataSize, tTimeStamp nTimeStamp)=0 |
Transfers data to the internal PDU buffer. More... | |
virtual tResult | TransmitData (void *pData, int *pnDataSize, tTimeStamp tmHWTime=0)=0 |
Transmit all modified PDUs from the internal PDU buffer to the data block. More... | |
virtual tResult | EnumPDUs (tPDUID *pPDUID, tChannelID *pnChannel, tECUID *pnECUID, tTimeStamp *ptmTimeStamp, bool bSkipUnmodified=false) const =0 |
Enumerates PDUs in internal buffer. More... | |
virtual tResult | GetPDUStatus (tPDUID nPDUID, tChannelID *pnChannel, tTimeStamp *ptmTimeStamp, bool *pbModified) const =0 |
Retrieves the status of a PDU. More... | |
virtual tResult | GetSignalValue (tSignalID nSignalID, tSignalValue *pValue) const =0 |
Retrieves the value of a signal. More... | |
virtual tResult | SetSignalValue (tSignalID nSignalID, const tSignalValue *pValue)=0 |
Sets the value of a signal. More... | |
Interface of FlexRay coder Objects of this type stores an internal buffer of FlexRay frames.
REMARK: The update bit behavior of the coder is defined by the property of the FlexRay support service -> updatebit_behavior. See the Usermanual chapter flexray for more information.
Definition at line 51 of file flexray_coder_intf.h.
enum tEnumPDU |
Enumerator | |
---|---|
ENUM_PDU_START | Used in the EnumPDUs() method as start value. |
Definition at line 57 of file flexray_coder_intf.h.
|
pure virtual |
Enumerates PDUs in internal buffer.
pPDUID | [inout] ENUM_PDU_START : Start enumeration. Else : ID of previous enumerated PDU |
pnChannel | [out] Channel of last reception |
pnECUID | [out] ID of sending ECU |
ptmTimeStamp | [out] Timestamp of last reception |
bSkipUnmodified | [in] If true, only modified PDUs will be enumerated |
|
pure virtual |
Returns a reference to the FIBEX database.
|
pure virtual |
Retrieves the status of a PDU.
nPDUID | [in] ID of PDU |
pnChannel | [out] Channel of last reception |
ptmTimeStamp | [out] Timestamp of last reception |
pbModified | [out] True if PDU is in modified state |
|
pure virtual |
Retrieves the value of a signal.
nSignalID | [in] Signal ID |
pValue | [out] Value of signal |
|
pure virtual |
Transfers data to the internal PDU buffer.
pData | [in] Pointer to data |
nDataSize | [in] Size of data |
nTimeStamp | [in] Timestamp of data |
|
pure virtual |
Clears internal PDU buffer.
|
pure virtual |
Resets the modified flag for all PDUs in the internal PDU buffer.
|
pure virtual |
Sets the value of a signal.
To set the rawvalue directly, the field tSignalValue::nf64Value has to be set to std::numeric_limits<double>::quiet_NaN() and the field tSignalValue::nRawValue to the new raw value.
nSignalID | [in] ID of signal |
pValue | [out] Value of signal |
|
pure virtual |
Transmit all modified PDUs from the internal PDU buffer to the data block.
pData | [inout] Pointer to data, set to NULL for calculation of datasize |
pnDataSize | [inout] Size of data |
tmHWTime | [in] The hardware timestamp to use. |