![background image](http://html1.mh-extra.com/html/icp-das-usa/piso-can-fd-series/piso-can-fd-series_user-manual_4476347070.webp)
PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 70
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
Id
[in] CAN message ID parameter.
standard CAN message (11-bit CAN ID)
0x000 ~ 0x7FF
extended CAN message (29-bit CAN ID)
0x00000000 ~ 0x1FFFFFFF
Type
[in] 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
[in] 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
[in] This point to an user defined 64 bytes array buffer for saving CAN/CAN FD
message data parameter.
Return Value
If the function succeeds, the return value will be 0.
If the function fails, refer to Section 3.6 Error Code Definitions.