GX5280, GX5290, GX5290e, GX5295, File
Returns the External reference clock frequency.
DioGetExternalRefClkFrequency (nHandle, nClock, pdwFrequency, pnStatus)
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. |
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 returns the External reference clock frequency value:
SHORT nStatus;
DWORD dwFreq;
DioGetExtRefClkStrobeFrequency (nMasterHandle, 0, &dwFreq, &nStatus);
DioSetupExternalRefClkFrequency, DioSetupFrequency, DioSetupClkStrobeSource, DioGetClkStrobeSource, DioGetErrorString