DioFreqDoublerGetClkSource

Applies To

GX5150

Purpose

Returns the clock source for the Frequency Doubler I/O module.

Syntax

DioFreqDoublerGetClkSource (nHandle, pnSource, pnStatus)

Parameters

Name

Type

Comments

nHandle

SHORT

Board handle.

pnSource

PSHORT

Returned clock source values are:

  0       Internal

  1       External

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

If the Frequency Doubler I/O module is installed on GX5150/GT5150 board, the module can be set by calling either DioSetupClkStrobeSource or DioFreqDoublerSetupClkSource functions.

Example

The following example sets the clock source to external and then verifies the settings:

 

SHORT   nStatus, nSource;

DioFreqDoublerSetupClkSource (nHandle, 1, &nStatus);

DioFreqDoublerGetClkSource (nHandle, &nSource, &nStatus);

 

See Also

DioFreqDoublerSetupClkSource, DioGetClkStrobeSource, DioSetupClkStrobeSource