PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 47
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
3.5. CAN Bus API
The following is an overview of the CAN Bus API functions provided on the
PISO-CANFD series board. A detailed description of each function is presented in
subsequent sections.
3.2.1. CANFD_Reset
Description
This function is used to reset the CAN chip for the CAN port on a specified
PISO-CANFD
series board. After resetting, this CAN port will be in configuration mode.
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.
Return Value
If the function succeeds, the return value will be 0.
If the function fails, refer to Section 3.6 Error Code Definitions.
C#
Int16 CANFD_Reset (
Byte BoardNo,
Byte Port
);