DioGetExternalRefClkFrequency

Applies To

GX5280, GX5290, GX5290e, GX5295, File

Purpose

Returns the External reference clock frequency.

Syntax

DioGetExternalRefClkFrequency (nHandle, nClock, pdwFrequency, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Master or File board handle.
nClock
SHORT
Not used, set to 0.
pdwFrequency
PDWORD
External reference clock frequency
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The user can provide an external reference clock to the master DIO’s on-board PLL. The driver then will use that value when programming the on-board PLL different frequencies.

In order to use that feature the clock source needs to be set to CLK_PRG_EXTERNAL_STROBE_INTERNAL.

The external reference clock range is 7.5MHz to 15MHz

Example

The following example returns the External reference clock frequency value:

 

SHORT nStatus;

DWORD dwFreq;

DioGetExtRefClkStrobeFrequency (nMasterHandle, 0, &dwFreq, &nStatus);

 

See Also

DioSetupExternalRefClkFrequency, DioSetupFrequency, DioSetupClkStrobeSource, DioGetClkStrobeSource, DioGetErrorString