Moxa TC-SW04-M12-4P-T [39/43] Tc cp02 db t can module programming guide

Moxa TC-DK20-T [39/43] Tc cp02 db t can module programming guide
TC-6000 Series Expansion Modules Software Installation and Programming Guide
4-19
9. Next, open the Windows Device Manager, right click on the computer located at the top of the tree, and
select Scan for hardware change to finish the installation.
TC-CP02-DB-T CAN Module: Programming Guide
Note that the driver and example code can be obtained from the official website:
http://www.moxa.com/product/TC-6000-Series-Expansion-Modules.htm
Refer to the following table for an introduction to the sample code for the TC-CP02-DB-T CAN module.
Sample Code Description
mxcan_get_filter Gets the filter values
mxcan_get_registers Gets the register values
mxcan_get_status Gets the CAN bus status
mxcan_ioctl_gettiming Gets the bus timing of an open port.
mxcan_ioctl_settiming Sets the bus timing of an open port.
mxcan_read Reads data into a buffer from an open port (the size
should be a multiple of the CANMSG size)
mxcan_set_filter Sets the filter values
mxcan_write Writes data into a buffer from an open port (the size
should be a multiple of the CANMSG size)
Moxa CAN Bus Library
int mxcan_close (int fd)
Description Close an open port.
Input <fd> the open port
Return Value
None

Содержание

Скачать