Moxa TC-SW04-M12-4P-T [41/43] Tc dk10 t tc dk20 t enabling disabling usb socket

Moxa TC-DK10-T [41/43] Tc dk10 t tc dk20 t enabling disabling usb socket
TC-6000 Series Expansion Modules Software Installation and Programming Guide
4-21
int mxcan_set_bus_timing (int fd, unsigned int speed)
Description Sets the bus timing of an open port.
Input <fd> the open port
Output <speed> bus timing in Hz
Return Value 0 on success; otherwise returns a negative number
int mxcan_set_parameters (int fd, CANPRM * param)
Description Sets the parameters of an open port.
Input <fd> the open port
<param> pointer to the CANPRM structure
Output
<speed> bus timing in Hz
Return Value 0 on success; otherwise returns a negative number
int mxcan_write (int fd, char * buffer, int size)
Description Writes data to the open port
Input <fd> the open port
<buffer> pointer to the data
<size> size of the data (should be a multiple of the CANMSG size)
Return Value 0 on failure; otherwise the number of bytes written
TC-DK10-T/TC-DK20-T: Enabling/Disabling USB Socket
Power
Take the following steps to get the current USB power status.
1. Execute mx-tcdk-pwr-control.exe under \\TC-DK00-Windows\SampleCode\Release in the product
DVD.
2. Enter the slave address according to the switch jumper on the TC-DK10-T/TC-DK20-T modules.
3. Select (1) Get USB Slot Power to get current USB power status.

Содержание

Скачать