ADC Functions

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.

Function Description
DlnAdcGetPortCount() Retrieves the number of ADC ports available in your DLN-series adapter.
DlnAdcGetChannelCount() Retrieves the number of ADC channels, available in the specified ADC-port of your DLN-series adapter.
DlnAdcEnable() Activates the corresponding ADC port of your DLN-series adapter.
DlnAdcDisable() Deactivates the specified ADC port of your DLN-series adapter.
DlnAdcIsEnabled() Function retrieves information, whether the specified ADC port is activated.
DlnAdcChannelEnable() Function activates the specified channel from the corresponding ADC port of your DLN-series adapter.
DlnAdcChannelDisable() Function deactivates the specified channel from the corresponding ADC port of your DLN-series adapter.
DlnAdcChannelIsEnabled() Retrieves information, whether the specified ADC channel is activated.
DlnAdcSetResolution() Function sets the ADC resolution value of your DLN-series adapter.
DlnAdcGetResolution() Function retrieves the currently set ADC resolution of your DLN-series adapter.
DlnAdcGetValue() Function retrieves current voltage on the specified ADC channel of your DLN-series adapter.
DlnAdcGetAllValues() Function retrieves current voltage values from all enabled ADC channels of your DLN-series adapter.
DlnAdcChannelSetCfg() Function changes the configuration of a single GPIO pin and set the conditions of DLN_ADC_CONDITION_MET_EV event generation.
DlnAdcChannelGetCfg() Function retrieves the current configuration settings of a single ADC channel.