typedef enum { VM_DCL_GPIO, VM_DCL_GPIO_CLOCK } VM_DCL_GPIO_DEVICE;
typedef enum { VM_DCL_GPIO, VM_DCL_GPIO_CLOCK } VM_DCL_GPIO_DEVICE;
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.
#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.
vmdcl_gpio.h
|
Members |
Description |
|
VM_DCL_GPIO |
Open the device for common GPIO commands. |
|
VM_DCL_GPIO_CLOCK |
Open the device for clock-related commands. |
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.