typedef struct { VM_DCL_PMU_LDO_BUCK_GPIO_POWER gpio_number; VMBOOL enable; } vm_dcl_pmu_control_ld0_buck_gpio_power_enable_t;
typedef struct { VM_DCL_PMU_LDO_BUCK_GPIO_POWER gpio_number; VMBOOL enable; } vm_dcl_pmu_control_ld0_buck_gpio_power_enable_t;
This struct is for VM_DCL_PMI_CONTROL_LDO_BUCK_SET_GPIO_POWER_ENABLE command
// 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);
vmdcl_pmu.h
|
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; |
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.