DlnAdcGetAllValues() Function
DLN_RESULT DlnAdcGetAllValues(
HDLN handle,
uint8_t port,
uint16_t* channelMask,
uint16_t* values
);
The DlnAdcGetAllValues() function retrieves current voltage values from all enabled ADC channels 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.
- channelMask
- A pointer to an unsigned 16-bit integer. This integer will be filled bith 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.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | Function was succesfully executed. |
This function is defined in the dln_adc.h file.
2006-2012