ser_sr24_reset_board


int   ser_sr24_reset_board(
     ser_sr24 handle   //serial board handle
     );

Summary

This function resets the serial board and also updates the internal state of the API data structure to match the reset state of the board. When the serial board is reset, all ports are put into digital input mode with the tri-state buffer enabled. All events are also cleared. This function does NOT affect internal API items like timeout value, or event handler specifications. This function can time out, but it is quite unlikely that it ever would.

Parameters

handle:
    This is the handle to the serial board; it is actually a pointer to the data structure for the board.

Return Values

Function returns 0 upon success. Possible error codes include:

Visual Basic Notes

The Visual Basic equivalent of this function is the ResetBoard method. Return values are listed above.

Prototype:
object.ResetBoard(
     ) As Long

Example
result = object.ResetBoard()   'reset the board



Back to Contents Winford Engineering (2000)