eth32_get_analog_eventdef

int eth32_get_analog_eventdef(eth32 handle, int bank, int channel, int *lomark, int *himark);

Summary

This function retrieves the low and high thresholds defined for the specified analog event bank and channel. Please see the eth32_set_analog_eventdef function for more information about the analog event definition and thresholds.

Parameters

  • handle - The value returned by the eth32_open function.

  • bank - Identifies which bank of analog events from which to retrieve information (0 or 1).

  • channel - Identifies the analog channel (0-7).

  • lomark - Pointer to a variable which will receive the low threshold (8-bit value) for the analog event.

  • himark - Pointer to a variable which will receive the high threshold (8-bit value) for the analog event.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

Remarks

Note that this function does not return the default value that was specified when the thresholds were set. This is because the default value is only used during the moment that the thresholds are defined and is not applicable after that point.

See Also

eth32_enable_event, eth32_input_analog, eth32_set_analog_eventdef