stCM_ISO157652_RxMessage Structure

This structure is used by icsneoISO15765_ReceiveMessage

typedef struct __declspec (align(2)) _stCM_ISO157652_RxMessage
{
  unsigned short vs_netid;
  unsigned char padding;
  unsigned int id;
  unsigned int id_mask;
  unsigned int fc_id;
  unsigned char flowControlExtendedAddress;
  unsigned char extendedAddress;
  unsigned char blockSize;
  unsigned char stMin;
  unsigned short cf_timeout;
  union{
     struct
     {
       unsigned id_29_bit_enable:1;
       unsigned fc_id_29_bit_enable:1;
       unsigned ext_address_enable:1;
       unsigned fc_ext_address_enable:1;
       unsigned enableflowControlTransmission:1;
       unsigned PaddingEnable:1;
       unsigned iscanFD:1;
       unsigned isBRSEnabled:1;
     };
     unsigned int flags;
  unsigned char reserved[16];
}stCM_ISO157652_RxMessage;

Remarks

Structure Elements

ItemDescription

vs_netid

Network ID for the message

padding

Character used for padding to fill the rest of the last frame

id

ArbID of the message to look for

id_mask

Settable Mask for incoming ID

fc_id

ArbID for the flow control frame to send

flowControlExtendedAddress

Byte used for the extended address in outgoing flow control message

extendedAddress

Byte to be used for the extended address

blockSize

Number of frames to wait before sending another flow control frame

stMin

Seperation time to send for consecutive frames

cf_timeout

Timeout to wait for flow control

flags

Bit field containing flags for transaction

Flag

Value

id_29_bit_enable: Enables 29 bit ID for ID to look for

1

fc_id_29_bit_enable: Enables 29 bit ID for Flow Control message.

2

ext_address_enable: Enables extended addressing to look for in Rx message

4

fc_ext_address_enable: Enables using an extended addressing byte in Flow Control frame

8

enableFlowControlTransmission: Enables sending a flow control frame

16

paddingEnable: enables padding for outgoing flow control frame

32

iscanFD: Sets transaction as CAN FD

64

isBRSEnabled: Enables Baud Rate Switch for CAN FD

128

Flag

Value

id_29_bit_enable: Enables 29 bit ID for ID to look for

1

fc_id_29_bit_enable: Enables 29 bit ID for Flow Control message.

2

ext_address_enable: Enables extended addressing to look for in Rx message

4

fc_ext_address_enable: Enables using an extended addressing byte in Flow Control frame

8

enableFlowControlTransmission: Enables sending a flow control frame

16

paddingEnable: enables padding for outgoing flow control frame

32

iscanFD: Sets transaction as CAN FD

64

isBRSEnabled: Enables Baud Rate Switch for CAN FD

128

reserved 16 bytes

Reserved

Last updated