Syntax
typedef enum {
  VM_DCL_GPIO,
  VM_DCL_GPIO_CLOCK
} VM_DCL_GPIO_DEVICE;
ContentsIndex
PreviousUpNext
VM_DCL_GPIO_DEVICE
Example
Syntax
typedef enum {
  VM_DCL_GPIO,
  VM_DCL_GPIO_CLOCK
} VM_DCL_GPIO_DEVICE;
Description

These enum defines the device for GPIO module that is passed to vm_dcl_open as a parameter. Before open the device, make sure the pin mode is configured to VM_DCL_PIN_MODE_GPIO with vm_dcl_config_pin_mode. There are two different device enums that can be opened on a GPIO pin. Use the VM_DCL_GPIO_CLOCK enum to send clock-related commands to the GPIO pin.

Example
  #include "vm_dcl.h"
  VM_DCL_HANDLE gpio_handle;
  gpio_handle = vm_dcl_open(VM_DCL_GPIO, 55); // Open GPIO pin number 55,
                                              // denoted as GPIO55 in HDK
                                              // documentation.
File

vmdcl_gpio.h

Members
Members 
Description 
VM_DCL_GPIO 
Open the device for common GPIO commands. 
VM_DCL_GPIO_CLOCK 
Open the device for clock-related commands. 
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.