Syntax
typedef struct {
  VM_DCL_PMU_LDO_BUCK_GPIO_POWER gpio_number;
  VMBOOL enable;
} vm_dcl_pmu_control_ld0_buck_gpio_power_enable_t;
ContentsIndex
PreviousUpNext
vm_dcl_pmu_control_ld0_buck_gpio_power_enable_t
Example
Syntax
typedef struct {
  VM_DCL_PMU_LDO_BUCK_GPIO_POWER gpio_number;
  VMBOOL enable;
} vm_dcl_pmu_control_ld0_buck_gpio_power_enable_t;
Description

This struct is for VM_DCL_PMI_CONTROL_LDO_BUCK_SET_GPIO_POWER_ENABLE command

Example
   // This example explain how to enable gpio power of
   // pin GPIO40 (VM_PIN_D4 on LinkIt ONE).
   VM_DCL_HANDLE handle;
   vm_dcl_pmu_control_ld0_buck_gpio_power_enable_t val;

   handle = vm_dcl_open(VM_DCL_PMU, 0);

   val.enable = VM_TRUE;   // enable ,  VM_FALSE : disable
   val.gpio_number = 40;   // gpio number

   vm_dcl_control(handle, VM_DCL_PMI_CONTROL_LDO_BUCK_SET_GPIO_POWER_ENABLE, (void *)&val);
   vm_dcl_close(handle);
File

vmdcl_pmu.h

Members
Members 
Description 
VM_DCL_PMU_LDO_BUCK_GPIO_POWER gpio_number; 
The GPIO pin number to enable or to disable. Refer to the pin-out diagram of your HDK for the exact GPIO pin number, e.g. set this value to VM_DCL_PMU_VGPIO10 for "GPIO10" on pin-out diagram. Developers can also include vmboard.h and use the supplied macro, e.g. D0. 
VMBOOL enable; 
VM_TRUE: Enable, VM_FALSE: Disable. 
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.