Moxa V2426A-C2-W7E [61/88] Epm 3112 programming guide

Moxa V2426A-C7 [61/88] Epm 3112 programming guide
V2400A Series Expansion Modules Software Installation and Programming Guide
4-41
6. The system should find the new hardware and install the driver automatically. Check the Windows Device
Manager to verify.
EPM-3112: Programming Guide
Some operations can be configured through programming; the following “CANBUS” example can be found on
the software DVD at \examples\EPM-3112\.
Moxa CAN Bus Library
int mxcan_close (int fd)
Description Close an open port.
Input <fd> the open port
Return Value None
unsigned int mxcan_get_bus_timing (int fd)
Description Gets the bus timing of an open port.
Input <fd> the open port
Return Value 0 on failure, otherwise the bus speed in KHz
int mxcan_get_parameters (int fd, CANPRM * param)
Description Gets the parameter of an open port.
Input <fd> the open port
Output < param> pointer to the CANPRM structure
Return Value 0 on failure, otherwise returns a negative value
int mxcan_get_registers (int fd, unsigned char * buffer, int num)
Description Gets the register values of an open port.
Input <fd> the open port
Output < buffer > pointer to a buffer for these values
<num> number of register values; for a module with sja1000 chipset, the value must be 32
Return Value 0 on success; other numbers indicate failure

Содержание

Похожие устройства

Скачать