stCM_ISO157652_TxMessage Structure

This structure is used by icsneoISO15765_TransmitMessage

typedef struct __declspec(align(2)) _stCM_ISO157652_TxMessage
{
    unsigned short vs_netid; 
    unsigned char padding; 
    unsigned char reserved2;
    unsigned int id; 
    unsigned int fc_id; 
    unsigned int fc_id_mask; 
    unsigned char stMin;
    unsigned char blockSize;
    unsigned char flowControlExtendedAddress; 
    unsigned char extendedAddress; 

    unsigned short fs_timeout; 
    unsigned short fs_wait; 
   
    unsigned char data[4*1024]; 
    unsigned int num_bytes;
    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 overrideSTmin:1;
            unsigned overrideBlockSize:1;
            unsigned paddingEnable:1;
            unsigned iscanFD : 1;
            unsigned isBRSEnabled : 1;        };
    unsigned short flags;
};

Remarks

Structure Elements

ItemDescription

unsigned short vs_netID

Network ID of the message

unsigned char padding

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

unsigned char reserved2

Reserved set to 0

unsigned int id

ArbID of the message being sent

unsigned int fc_id

ArbID of the flow control frame to look for

unsigned int fc_id_mask

Bitwise mask for the flow control arbitration ID. (1 pass 0 block)

unsigned char stMin

Separation time to wait between consecutive frames

unsigned char blockSize

Number of consecutive frames before expecting another flow control

unsigned char flowControlExtendedAddress

Byte used expected for flow control extended address when using extended addressing (different than 29bit IDs)

unsigned char extendedAddress

Byte used for extended address in transmitted message

unsigned short fs_timeout

Timeout to wait for flow control frame

unsigned short fs_wait

Timeout to wait for 7F 78 (Negative response of request received response pending

unsigned char [4096]

Data array of 4096 that contains the data to send

unsigned int num_bytes

Number of data bytes used in the data array

unsigned short flags

Bit field containing flags for transaction

id_29_bit_enable

Enable 29 Bit

address 1

fc_id_29_bit_enable

Flow control 29 bit address

2

ext_address_enable

Use extended address

4

fc_extended_address_enable

Flow Control use extended address

8

overrideSTmin

Ignore ST Min in flow control

16

overrideBlockSize

Ignore block size in flow control

32

paddingenable

Pad outgoing frames

64

iscanFD

Enables CAN FD

128

isBRSEnabled

Enables CAN FD Baud Rate Switch

256

id_29_bit_enable

Enable 29 Bit

address 1

fc_id_29_bit_enable

Flow control 29 bit address

2

ext_address_enable

Use extended address

4

fc_extended_address_enable

Flow Control use extended address

8

overrideSTmin

Ignore ST Min in flow control

16

overrideBlockSize

Ignore block size in flow control

32

paddingenable

Pad outgoing frames

64

iscanFD

Enables CAN FD

128

isBRSEnabled

Enables CAN FD Baud Rate Switch

256

Last updated