typedef struct { VM_DCL_PMU_LDO_BUCK module; VMBOOL enable; } vm_dcl_pmu_ld0_buck_enable_t;
typedef struct { VM_DCL_PMU_LDO_BUCK module; VMBOOL enable; } vm_dcl_pmu_ld0_buck_enable_t;
This struct is for VM_PMU_CTRL_CMD_LDO_BUCK_SET_EN command
// This example explain how to power on the vibrator with the PMU API // with the VM_DCL_PMU_CONTROL_LDO_BUCK_SET_ENABLE command. VM_DCL_HANDLE handle; vm_dcl_pmu_ld0_buck_enable_t val; handle = vm_dcl_open(VM_DCL_PMU, 0); val.enable = VM_TRUE; // enable , VM_FALSE : disable val.module = VM_DCL_PMU_VIBR; // LDO vm_dcl_control(handle, VM_DCL_PMU_CONTROL_LDO_BUCK_SET_ENABLE, (void *)&val); vm_dcl_close(handle);
vmdcl_pmu.h
|
Members |
Description |
|
VM_DCL_PMU_LDO_BUCK module; |
The LDO/Buck to control. Please refer to VM_DCL_PMU_LDO_BUCK. |
|
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.