Moxa UC-8418-CE [45/48] Visual c examples

Moxa UC-8418-T-CE [45/48] Visual c examples
UC-8400 WinCE Application Development with the SDK and Software Libraries
B-8
unsigned int acceptance_filter_mode; /* non-zero is for single mode, default is
dual mode */
unsigned int acceptance_filter_code; /* default is 0 */
unsigned int acceptance_filter_mask; /* default is 0xFFFFFFFF */
} CANPRM;
Structure of CANBST:
typedef struct _CANBST
{
unsigned int data_overrun_count; /* If the data overrun, this counter will increase
1 */
unsigned int warning_error_count; /* At least one of the error counters has reached
or exceeded the CPU warning limit defined, this counter will increase 1*/
/* the CAN controller is not involved in bus activities, this counter will increase
1*/
unsigned int bus_error_count; /* When the CAN controller detects an error on
the CAN-bus, this counter will increase 1*/
unsigned int status_error_count; /* when the CAN controller lost the arbitration
and becomes a receiver, this counter will increase 1 */
unsigned int error_warning_limit; /* Reserved */
unsigned int tx_errors; /* Reserved */
unsigned int rx_errors; /* Reserved */
} CANBST;
Visual C++ Examples
Refer to the software CD to see C++ programming examples.
Net Compact Framework Library
Moxa also provides a .Net Compact Framework library for .Net programming.
UART
Method
void SetComPortInterface(string port, SerialMode mode);
Description Set the interface of UART.
Class Name: SerialInterface
Input <port> serial port name string, e.g. COM3:, COM4:, $device\COM12
<mode> the interface number of serial port
Return none
Remarks public enum SerialMode : byte
{
RS232_MODE = 0x0,
RS485_2WIRE_MODE = 0x1,
RS422_MODE = 0x2,
RS485_4WIRE_MODE = 0x3
}

Содержание

Скачать