|
|
using | tPduIndex = uint32_t |
| |
|
|
| ADTF_IID (ICANFDCoder, "canfd_coder.jack.canfd.sdk.devicetb.adtf.iid") |
| |
| virtual tResult | GetContainedPdus (const ucom::nitro::ifunction< void(const tPduInfo *pPduInfo, tPduIndex nPduIndex)> &fnCallback) const =0 |
| |
| virtual tResult | AddContainedPdu (tPduIndex &nPduIndexContained, tPDUID nPduId, tPduIndex nPduIndexContainer=0)=0 |
| |
| virtual tResult | SelectContainedPdu (tPduIndex nPduIndex=0)=0 |
| |
|
| ADTF_IID (ICANFDCoder, "canfd_coder.ignition.canfd.sdk.devicetb.adtf.iid") |
| |
| virtual tResult | SetData (const tCANFDData *pData)=0 |
| |
| virtual tResult | SetData (const adtf::devicetb::sdk::can::tCANData *pData)=0 |
| |
| virtual tResult | CreateMessage (const tMessageID nMsgId, const tChannelID nChannelId)=0 |
| |
| virtual tResult | GetMessageData (tCANFDData *pMsgData)=0 |
| |
| virtual tResult | GetMessageData (adtf::devicetb::sdk::can::tCANData *pMsgData)=0 |
| |
| virtual tResult | GetMessageId (tMessageID &nMessageId) const =0 |
| |
| virtual tResult | SetRawSignalValue (tSignalID nSignalId, const tSignalValue &oRawValue)=0 |
| |
| virtual tResult | SetRawSignalValue (tSignalID nSignalId, const void *pRawValue, uint64_t nSize)=0 |
| |
| virtual tResult | SetPhysicalSignalValue (tSignalID nSignalId, double nPhysValue)=0 |
| |
| virtual tResult | GetSignalValue (tSignalID nSignalId, tSignalValue &oRawValue, double &nPhysValue) const =0 |
| |
| virtual tResult | GetSignalValue (tSignalID nSignalId, void *pRawValue, uint64_t nSize) const =0 |
| |
| virtual tResult | SetRawData (const void *pData, uint8_t nLength)=0 |
| |
| virtual tResult | GetDatabase (tChannelID nChannelId, adtf::ucom::ant::iobject_ptr< ICANFDDatabase > &pCANFDDatabase) const =0 |
| |
| virtual tResult | GetAllSignalValues (const ucom::nitro::ifunction< void(tSignalID nSignalId, tSignalValue oRawValue, double nPhysValue)> &fnCallback) const =0 |
| |
| virtual tResult | GetMultiplexSelectorFieldCode (uint32_t &nSelectorFieldCode)=0 |
| |
| virtual tResult | SetMultiplexSelectorFieldCode (uint32_t nSelectorFieldCode)=0 |
| |
◆ AddContainedPdu()
| virtual tResult adtf::devicetb::sdk::canfd::jack::ICANFDCoder::AddContainedPdu |
( |
tPduIndex & | nPduIndexContained, |
|
|
tPDUID | nPduId, |
|
|
tPduIndex | nPduIndexContainer = 0 ) |
|
pure virtual |
Add a PDU to the container PDU and returns the index at which the new PDU was set. SelectContainedPdu is called automatically to increment the intern pdu offset/counter. So there is no need to use SelectContainedPdu manually together with this function.
- Parameters
-
| [out] | nPduIndexContained | Contained PDU index at which the new PDU was set. |
| [in] | nPduId | Intern Id of the PDU to add. |
| [in] | nPduIndexContainer | Container PDU index at which the PDU shall be set. Change this if you want container in container. default = 0. |
- Return values
-
| ERR_INVALID_ARG | Invalid nPduIndexContained. |
| ERR_INVALID_INDEX | The given nPduId was not found. |
| ERR_OUT_OF_RANGE | The container is no longer large enough to add this PDU. |
| ERR_MEMORY | No buffer area was set or created. |
◆ GetContainedPdus()
| virtual tResult adtf::devicetb::sdk::canfd::jack::ICANFDCoder::GetContainedPdus |
( |
const ucom::nitro::ifunction< void(const tPduInfo *pPduInfo, tPduIndex nPduIndex)> & | fnCallback | ) |
const |
|
pure virtual |
Return the contained PduInfos and the corresponding index located in a container PDU from the current data buffer.
- Parameters
-
| [out] | fnCallback | Callback function returning pointer to the PduInfo and the index of this contained PDU in a container. |
- Return values
-
| ERR_MEMORY | No buffer area was set or created. |
◆ SelectContainedPdu()
| virtual tResult adtf::devicetb::sdk::canfd::jack::ICANFDCoder::SelectContainedPdu |
( |
tPduIndex | nPduIndex = 0 | ) |
|
|
pure virtual |
Set the current index of a contained PDU within a container PDU. Use this function only in reading mode and not together with AddContainedPdu because AddContainedPdu calls SelectContainedPdu internally.
- Parameters
-
| [in] | nPduIndex | Index to set. Starts at 0, default = 0. |
- Return values
-
| ERR_INVALID_INDEX | The given nPduIndex is greater than the number of contained PDUs. |
| ERR_MEMORY | No buffer area was set or created. |
The documentation for this class was generated from the following file: