Gx5732Reset

Purpose

Resets the GX5732 board to its default settings.

Syntax

Gx5732Reset (nHandle, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5732 board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function resets all digital I/O port and counters. Digital I/O ports are set to input direction. Counters are disabled and set to continuous mode, 0 value, clock source is zero, gate is enabled, counter port is set to input from counter 0 with load control set to None, Terminal Counter set to Counter 0, Clock are set to 33Mhz with divider set to 1.

Example

The following example initializes and resets the GX5732 board:

 

Gx5732Initialize (1, &nHandle, &nStatus);

Gx5732Reset (nHandle, &nStatus);

 

See Also

Gx5732Initialize, Gx5732ResetPort, Gx5732ResetCounter