Converts voltage input to discrete integers on Analog input pins.
ADC (Analog-to-digital converter) module can be used to read the value of an assigned analog input pin and converts the input voltage value 0 ~ 5V to discrete integers 0 ~ 1023. Refer to the pin table for pins that can be assigned as an analog input. To use ADC API, follow these steps:
The pins that can be used as analog input is different on each HDK. Refer to the HDK documentation for available pins and their input limitations.
|
Struct, Record, Enum |
Description |
|
The channel name for VM_DCL_ADC_COMMAND_GET_CHANNEL command. Note that not all of the channels are available. Refer to the HDK pin table and pin-out diagram for the corresponding GPIO pin number, or, use the macro PIN2CHANNEL in vmdcl.h to convert pin name to corresponding VM_DCL_ADC_CHANNEL. | |
|
The control commands of ADC module. | |
|
The structure of ADC control command VM_DCL_ADC_COMMAND_CREATE_OBJECT. | |
|
The structure of ADC control command VM_DCL_ADC_COMMAND_GET_CHANNEL. | |
|
The structure of ADC control command VM_DCL_ADC_COMMAND_MODIFY_PARAMETER. | |
|
The structure of ADC control command VM_DCL_ADC_COMMAND_SEND_START. | |
|
The structure of ADC control command VM_DCL_ADC_COMMAND_SEND_STOP. | |
|
This enum type represents the device of ADC (Analog Digital Convert) 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 ACD module. Different analog input pins are defined in VM_DCL_ADC_CHANNEL. | |
|
ADC module events. | |
|
The structure of ADC measure result for event VM_DCL_ADC_GET_RESULT. |
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.