Skip to main content

Structure Definitions

This section describes the structures defined for the callout DLL specification.

Structure Definitions

The following structures are available.

StructureDescription
StElementCfgElement configuration
StFrameCfgTransmit/receive frame configuration
StPrePostDataPrefix/postfix information
StMsgConfigChannel message configuration
StFrameInfoTransmit/receive frame information
StCustomParamCfgCallout custom parameter information

StElementCfg

Members of the StElementCfg (element configuration) structure are shown below.

MemberTypeDescription
StartPosDWORDStart bit position of the element
EndPosDWORDEnd bit position of the element
ValueLPBYTEInitial value of the element
ValueLengthDWORDElement length (bits) (*1)
AlignDWORDBit alignment (*2)
EndiannessDWORDByte endianness (*2)

*1: Determined automatically based on StartPos and EndPos.
*2: See the constant definitions for details.

StFrameCfg

Members of the StFrameCfg (transmit/receive frame configuration) structure are shown below.

MemberTypeDescription
SecMsgIdxDWORDMessage index
PrePostLenDWORDPrefix/postfix length (bits)
ElCfgsStElementCfg *Array of prefix/postfix element configuration structures
ElementNumDWORDNumber of elements in the array
IsSyncMsgBOOLSync message enabled/disabled
True = enabled, False = disabled
IsUseFvBOOLWhether FV is used (*1)
IsFvMasterBOOLFV master/slave
True = master, False = slave
ReserveBOOLReserved

StPrePostData

Members of the StPrePostData (prefix/postfix information) structure are shown below.

MemberTypeDescription
ValueLPBYTEPrefix/postfix value
LengthDWORDPrefix/postfix length (bits)

StMsgConfig

Members of the StMsgConfig (channel message configuration) structure are shown below.

MemberTypeDescription
MsgCfgStFrameCfg *Array of message information structures held by the channel
MsgNumDWORDNumber of elements in the message information array

StFrameInfo

Members of the StFrameInfo (transmit/receive frame information) structure are shown below.

MemberTypeDescription
AllPayLoadLPBYTECAN/CAN FD message data
AllLengthDWORDCAN/CAN FD message length (bits)
TruncPayLoadLPBYTEExtracted payload data
TruncPayLoadLengthDWORDExtracted payload length (bits)
TruncFVLPBYTEExtracted FV data
TruncFVLengthDWORDExtracted FV length (bits)
TruncMacLPBYTEExtracted MAC data
TruncMacLengthDWORDExtracted MAC length (bits)
ID-CAN ID information
State-Frame monitoring information

ID Structure

ID is a union of StdID (standard ID), ExtID (extended ID), and Type (status) structures, all defined as DWORD bit fields. Members are as follows.

StructureMemberBitsDescription
StdID-18Unused
CANID11Standard CAN ID
-3Unused
ExtIDCANID29Extended CAN ID
-3Unused
Type-30Unused
RTR1Remote transmission request (RTR) (*1)
IDE1CAN ID type (IDE) (*1)

*1: See the constant definitions for value details.

State Structure

State is a DWORD bit-field structure with the following members.

MemberBitsDescription
LogType6Frame protocol (*1)
Dir1Direction (*1)
Error1Error status (*2)

*1: See the constant definitions for value details.
*2: Among the error-code constants, MPX_COUT_OK means no error and MPX_COUT_ERROR means an error occurred.

StCustomParamCfg

Members of the StCustomParamCfg (callout custom parameter information) structure are shown below.

MemberTypeDescription
UserTypeDWORDCallout custom parameter data type (*1)
DataLPVOIDCallout custom parameter value
ByteLengthDWORDCallout custom parameter length (bytes, max 256) (*2)
ItemNameDWORDCallout custom parameter name

*1: See the constant definitions for value details.
*2: Only applies when the data type is a string.