int eth32_disable_event(eth32 handle, int type, int port, int bit);
This function instructs the ETH32 device to stop sending event notifications for the specified event on this connection to the device. It performs the opposite task of eth32_enable_event.
handle - The value returned by the eth32_open function.
type - The type of event to enable. The valid event types are:
EVENT_DIGITAL - Digital I/O event. This includes port events and bit events.
EVENT_ANALOG - Analog event based on thresholds defined with the eth32_set_analog_eventdef function.
EVENT_COUNTER_ROLLOVER - Counter rollover event, which occurs when the counter rolls over to zero.
EVENT_COUNTER_THRESHOLD - Counter threshold event, which occurs when the counter passes a threshold defined with eth32_set_counter_threshold.
EVENT_HEARTBEAT - Periodic event sent by the device to indicate the TCP/IP connection is still good.
port - For digital events, specifies the port number, for analog events, specifies the bank number, and for either counter event, specifies the counter number.
bit - For digital events, this should be -1 for port events or the bit number (0-7) for bit events. For analog events, this specifies the analog channel number (0-7).
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.