Вы здесь

DlnAdcChannelIsEnabled() Function

The DlnAdcChannelIsEnabled() retrieves information, whether the specified ADC channel is activated. This function is defined in the dln_adc.h file.

Syntax
C/C++
DLN_RESULT DlnAdcChannelIsEnabled(
   HDLN handle, 
   uint8_t port,
   uint8_t channel,
   uint8_t* enabled
);
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.

enabled

A pointer to an unsigned 8-bit integer. The integer will be filled with the information whether the specified ADC channel is activated. There are two possible values:

  • 0 or DLN_ADC_DISABLED - ADC channel is deactivated.

  • 1 or DLN_ADC_ENABLED - ADC channel is activated.

Return Value
DLN_RES_SUCCESS

Function was successfully executed.

Языки

Вход на сайт