DioFreqDoublerSetupClkSource

Applies To

GX5150

Purpose

Sets up the clock source for the Frequency Doubler I/O module.

Syntax

DioFreqDoublerSetupClkSource (nHandle, nClkSource, pnStatus)

Parameters

Name

Type

Comments

nHandle

SHORT

Board handle.

nClkSource

SHORT

Clock source can have the following values:

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 the GX5150 board, the module can be set by either calling 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

DioFreqDoublerGetClkSource, DioGetClkStrobeSource, DioSetupClkStrobeSource