ResetDevice Method

ResetDevice()

Summary

This method 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.

Parameters

This method does not have any parameters.

Return Value

This method does not have a return value.

Remarks

The following parts of the device are reset by this method

  • 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 (Eth32AnalogReference.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 hex for 16-bit counter 0, 0xFF hex 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.