Applies To
GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e, GX5295, File
Purpose
Returns the specified Master board’s clock and strobe source.
Syntax
DioGetClkStrobeSource (nMasterHandle, pnSource, pnStatus)
Parameters
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master board or File board handle. |
pnSource |
PSHORT |
Clock and strobe source values are as follow: 0. Internal Clock and Strobe (default). Clock is programmable using an internal reference. Strobe is internal in accordance with strobe timing (default). 1. External Clock, internal Strobe. External clock. Strobe is internal in accordance with strobe timing. This setting enables the External Clock input without the need to pull down the External Clock Enable line. 2. Clock programmed by external, internal Strobe. Clock is Programmable using external clock reference. Strobe is internal in accordance with strobe timing. Note: not supported by Gx5055. 3. External Clock and Strobe. Both clock and strobe are external. This setting enables the External Clock and External Strobe inputs without the need to pull down the External Clock Enable and External Strobe Enable lines. 4. Internal Clock, external Strobe. Clock is programmable using an internal reference Strobe is external, setting enables the External Strobe input without the need to pull down the External Strobe Enable line (GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e, GX5295). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
DioSetupFrequency function can be used to set the frequency when the selected clock source (nSource) is set to 0. DioSetupClkStrobeDelay may be called to set the time interval between the strobe and clock signals.
Example
The following example returns the clock and strobe source from a board specified by the board handle:
SHORT nStatus, nMode;
DioGetClkStrobeSource (nMasterHandle, &nMode, &nStatus);
See Also
DioSetupClkStrobeSource, DioSetupClkStrobeExternalGateMode, DioGetErrorString