int eth32_reset(eth32 handle);
This function resets most aspects of the device to their power-up default status. It does not perform a "cold reset" of the device. All TCP/IP connections to the device are preserved and do not need to be reestablished. See the remarks below for a list of everything that is affected.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.
The following parts of the device are reset by this function:
All digital I/O ports are configured as inputs.
The output values of all digital I/O ports are set to zero.
The LED's are turned off
The Analog to Digital Converter is disabled.
The analog voltage reference is configured to the external reference (REF_EXTERNAL).
The analog channel assignments are all set to the single-ended channels. Logical channel 0 is set to single-ended channel 0, Logical channel 1 to single-ended 1, and so on.
All events are disabled for all connections.
Analog event definitions are cleared.
Both counters are disabled.
Counter values are set to zero.
Counter rollover points are set to their highest possible values (0xFFFF for 16-bit counter 0, 0xFF for 8-bit counter 1).
Counter event threshold (applies only to counter 0) set to zero.
PWM channels are disabled and the main PWM clock is stopped.
The PWM base period is set to its highest (lowest frequency) setting of 0xFFFF counts.
The duty period of both PWM channels is set to zero.
The connection flags are reset only for the connection that performed the reset. The connection flags for any other connections are not affected.