typedef enum { VM_DCL_SIO_UART_PORT1 = VM_DCL_SIO_GROUP_START, VM_DCL_SIO_UART_PORT2, VM_DCL_SIO_UART_PORT3, VM_DCL_SIO_UART_PORT_RESERVED, VM_DCL_SIO_USB_PORT1, VM_DCL_SIO_USB_PORT2 } VM_DCL_SIO_DEVICE_SERIAL_PORT;
typedef enum { VM_DCL_SIO_UART_PORT1 = VM_DCL_SIO_GROUP_START, VM_DCL_SIO_UART_PORT2, VM_DCL_SIO_UART_PORT3, VM_DCL_SIO_UART_PORT_RESERVED, VM_DCL_SIO_USB_PORT1, VM_DCL_SIO_USB_PORT2 } VM_DCL_SIO_DEVICE_SERIAL_PORT;
Device identifiers for serial ports. Pass this to vm_dcl_open to select one of the serial port devices to use. Currently, only the hardware UART port (TX/RX pins) is available on 2502A. The USB COM ports are used by SDK for debugging and SDK functions, therefore not available to the application.
VM_DCL_HANDLE uart_handle; VM_DCL_MODULE_TYPE usr_id; usr_id = vm_dcl_get_ownerid(); uart_handle = vm_dcl_open(VM_DCL_SIO_UART_PORT1, usr_id); if(VM_DCL_HANDLE_INVALID==uart_handle) return; //Do something with the handle.
vmdcl_sio.h
|
Members |
Description |
|
VM_DCL_SIO_UART_PORT1 = VM_DCL_SIO_GROUP_START |
Hardware UART1 device. This connects to the TX/RX pins on the HDK breakout. |
|
VM_DCL_SIO_UART_PORT2 |
Reserved, UART port 2. |
|
VM_DCL_SIO_UART_PORT3 |
Reserved, UART port 3. |
|
VM_DCL_SIO_UART_PORT_RESERVED |
Reserved. |
|
VM_DCL_SIO_USB_PORT1 |
Reserved, USB COM port 1. |
|
VM_DCL_SIO_USB_PORT2 |
Reserved, USB COM port 2. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.