DioSetupExternalRefClkFrequency

Applies To

GX5280, GX5290, GX5290e, GX5295, file

Purpose

Sets the External reference clock frequency.

Syntax

DioSetupExternalRefClkFrequency (nHandle, nClock, dwFrequency, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Master board handle.
nClock
SHORT
Not used, set to 0.
dwFrequency
DWORD
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 sets the External reference clock frequency value to 10MHz:

 

SHORT nStatus;

DioSetupExternalRefClkFrequency (nMasterHandle, 0, 10000000, &nStatus);

 

See Also

DioGetExternalRefClkFrequency, DioSetupFrequency, DioSetupClkStrobeSource, DioGetClkStrobeSource, DioGetErrorString