Вы здесь

DlnAdcGetAllValues() Function

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.

Syntax
C/C++
DLN_RESULT DlnAdcGetAllValues( 
   HDLN handle,
   uint8_t port,
   uint16_t* channelMask,
   uint16_t* values
);
Parameters
handle

A handle to the DLN-series adapter.

port

A number of the ADC port to retrieve the information from.

channelMask

A pointer to an unsigned 16-bit integer. This integer will be filled with a bit mask, each of the bits corresponding to an ADC channel of the port. This parameter contains currently enabled ADC channels of your DLN-series device.

values

A pointer to an unsigned 16-bit integer. This integer will be filled with a bit mask, each of the bits corresponding to an ADC value of the ADC channel of the port.

Return Value
DLN_RES_SUCCESS

Function was successfully executed.

Языки

Вход на сайт