GX5280, GX5290, GX5290e, GX5295, file
Sets the External reference clock frequency.
DioSetupExternalRefClkFrequency (nHandle, nClock, dwFrequency, pnStatus)
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. |
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.
The following example sets the External reference clock frequency value to 10MHz:
SHORT nStatus;
DioSetupExternalRefClkFrequency (nMasterHandle, 0, 10000000, &nStatus);
DioGetExternalRefClkFrequency, DioSetupFrequency, DioSetupClkStrobeSource, DioGetClkStrobeSource, DioGetErrorString