This section describes the ADC functions. They are used to control and monitor the ADC module of a DLN-series adapter.Actual control of the device is performed by use of commands and responses. Each function utilizes respective commands and responses. You can send such commands directly if necessary.
The DlnAdcEnable()
function activates the corresponding ADC port of your DLN-series adapter. This function is defined in the dln_adc.h
file.
The DlnAdcDisable()
function deactivates the specified ADC port of your DLN-series adapter. This function is defined in the dln_adc.h
file.
The DlnAdcIsEnabled()
function retrieve information, whether the specified ADC port is activated. This function is defined in the dln_adc.h
file.
The DlnAdcChannelEnable()
function activates the specified channel from the corresponding ADC port of your DLN-series adapter. This function is defined in the dln_adc.h
file.
The DlnAdcChannelEnable()
function deactivates the specified channel from the corresponding ADC port of your DLN-series adapter.
This function is defined in the dln_adc.h
file.
The DlnAdcChannelIsEnabled()
retrieves information, whether the specified ADC channel is activated. This function is defined in the dln_adc.h
file.
The DlnAdcGetPortCount()
function retrieves the number of ADC ports available in your DLN-series adapter. This function is defined in the dln_adc.h
file.
The DlnAdcGetChannelCount()
function retrieves the number of ADC channels, available in the specified ADC-port of your DLN-series adapter.This function is defined in the dln_adc.h
file.
The DlnAdcChannelSetCfg()
function changes the configuration of a single GPIO pin and set the conditions of DLN_ADC_CONDITION_MET_EV event generation. This function is defined in the dln_adc.h
file.
The DlnAdcChannelGetCfg()
function retrieves the current configuration settings of a single ADC channel.
This function is defined in the dln_adc.h
file.
The DlnAdcSetResolution()
function sets the ADC resolution value of your DLN-series adapter. This function is defined in the dln_adc.h
file.
The DlnAdcGetResolution()
function retrieves the currently set ADC resolution of your DLN-series adapter.
This function is defined in the dln_adc.h
file.
The DlnAdcGetSupportedResolutions()
function returns all supported resolution values for connected DLN-series adapter.
This function is defined in the dln_adc.h
file.
The DlnAdcGetValue()
function retrieves current voltage on the specified ADC channel of your DLN-series adapter.
This function is defined in the dln_adc.h
file.
The DlnAdcGetAllValues()
function retrieves current voltage values from all enabled ADC channels of your DLN-series adapter.
This function is defined in the dln_adc.h
file.
The DlnAdcGetSupportedEventTypes()
function returns all supported ADC event types for opened DLN-series adapter.
This function is defined in the dln_adc.h
file.