
PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 69
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
3.2.15. CANFD_SendCANMsg
Description
This function is used to transmit a CAN message from the CAN controller of a specified
PISO-CANFD CAN port to the CAN network.
Syntax
Parameters
BoardNo
[in] Specifies the number of the PISO-CANFD series board to be read. The valid
range is 0 to 15.
Port
[in] Specifies the number of the CAN port, where:
1: CAN port 1
2: CAN port 2.
3: CAN port 3
4: CAN port 4.
Mode
[in] Indicates the address of a variable used to retrieve the CAN
standard/extended message ID.
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.
C#
Int16 CANFD_SendCANMsg (
Byte BoardNo,
Byte Port,
Byte Mode,
Uint32 Id,
Byte Type,
Byte Dlc,
Byte[] Data,
);