PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 72
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
0: Denotes the CAN standard ID, which uses a 11-bit CAN message ID.
1: Denotes the CAN extended ID, which uses a 29-bit CAN message ID.
Id
[out] CAN message ID parameter.
standard CAN message (11-bit CAN ID)
0x000 ~ 0x7FF
extended CAN message (29-bit CAN ID)
0x00000000 ~ 0x1FFFFFFF
Type
[out] Indicates the address of a variable used to retrieve the type of the
message, where:
0: Indicates that the message is a remote-transmit-request message
1: Indicates that the message is a normal CAN data message
2: Indicates that the message is a CAN FD message with no bit rate switch
3: Indicates that the message is a CAN FD message with bit rate switch
Note that as this parameter will be set to 0, the
Data
parameter will be useless.
Dlc
[out] CAN/CAN FD frame data length code parameter.
Normal CAN frame: Valid range: 0x0 ~ 0x8
CAN FD frame: Valid range: 0x0 ~ 0xF
Dlc
(Hexadecimal)
Frame data length
(Decimal)
Dlc
(Hexadecimal)
Frame data length
(Decimal)
0x0
0
0x8
8
0x1
1
0x9
12
0x2
2
0xA
16
0x3
3
0xB
20
0x4
4
0xC
24
0x5
5
0xD
32
0x6
6
0xE
48
0x7
7
0xF
64
Data
[out] This point to an user defined 64 bytes array buffer for saving CAN/CAN FD
message data parameter.
H_MsgTimeStamps
[out] Indicates the address of a variable used to retrieve the upper timestamp of
the received CAN message in increments interval of 4,294,967,29.5