typedef enum { VM_DCL_PWM_START = VM_DCL_PWM_GROUP_START, VM_DCL_PWM_KPLED, VM_DCL_HW_PWM_GROUP_START = (VM_DCL_PWM_GROUP_START+0x20), VM_DCL_PWM_1, VM_DCL_PWM_2_RESERVED, VM_DCL_PWM_3_RESERVED, VM_DCL_PWM_4 } VM_DCL_PWM_DEVICE;
typedef enum { VM_DCL_PWM_START = VM_DCL_PWM_GROUP_START, VM_DCL_PWM_KPLED, VM_DCL_HW_PWM_GROUP_START = (VM_DCL_PWM_GROUP_START+0x20), VM_DCL_PWM_1, VM_DCL_PWM_2_RESERVED, VM_DCL_PWM_3_RESERVED, VM_DCL_PWM_4 } VM_DCL_PWM_DEVICE;
This enum type represents the device of PWM (Pulse Width Modulation) module. The vm_dcl_open() uses the enum values to create a handle to access the device. Applications should use the DCL (Driver Common Layer) APIs to control the PWM.
#include "vmdcl.h" VM_DCL_HANDLE pwm_handle; // Declares a VM_DCL_HANDLE. pwm_handle = vm_dcl_open(VM_DCL_PWM_KPLED, 0); // Calls vm_dcl_open() to get a handle.
vmdcl_pwm.h
|
Members |
Description |
|
VM_DCL_PWM_START = VM_DCL_PWM_GROUP_START |
PWM devices start from here. |
|
VM_DCL_PWM_KPLED |
The keypad LED PWM. |
|
VM_DCL_HW_PWM_GROUP_START = (VM_DCL_PWM_GROUP_START+0x20) |
PWM HW Group start from here. |
|
VM_DCL_PWM_1 |
The PWM1. When configuring the GPIO as PWM, this would be PWM0. |
|
VM_DCL_PWM_2_RESERVED |
Reserved and do not use. |
|
VM_DCL_PWM_3_RESERVED |
Reserved and do not use. |
|
VM_DCL_PWM_4 |
The PWM4. When configuring the GPIO as PWM, this would be PWM1. |
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.