Syntax
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;
ContentsIndex
PreviousUpNext
VM_DCL_SIO_DEVICE_SERIAL_PORT
Example
Syntax
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;
Description

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.

Example
    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.
File

vmdcl_sio.h

Members
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. 
Group
Created with a commercial version of 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.