int eth32_get_analog_assignment(eth32 handle, int channel, int *source);
This function retrieves the current physical channel assignment for the specified logical channel. Please see the eth32_set_analog_assignment function for more information about logical channels and the physical channels that may be assigned to them.
handle - The value returned by the eth32_open function.
channel - Specifies the logical channel (0-7).
source - Pointer to a variable which will receive the code indicating which physical channel the logical channel is assigned to. This will be one of the ANALOG_ constants defined in the description of the eth32_set_analog_assignment function.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.