DlnAdcGetValue() Function

DLN_RESULT DlnAdcGetValue(
    HDLN handle,
    uint8_t port,
    uint8_t channel,
    uint16_t* value
);      

The DlnAdcGetValue() function retrieves current voltage on the specified ADC channel of your DLN-series adapter.

Parameters:

handle
A handle to the DLN-series adapter.
port
A number of the ADC port to retrieve the information from.
channel
A number of the ADC channel to retrieve the information from.
value
A pointer to an unsigned 8-bit integer. The integer will be filled with the voltage level on the specified ADC channel.

Results:

Result Description
DLN_RES_SUCCESS Function was succesfully executed.

This function is defined in the dln_adc.h file.