GX5280, GX5290, GX5290e, GX5295
Sets the output clock pin state.
DioSetupOutputClocksState (nHandle, nClock, nState, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Master or File board handles. |
nClock |
SHORT |
specified output clocks are:0. DIO_OUT_CLOCK – output clock (J3 pin 22).1. DIO_OUT_STROBE – output clock (J3 pin 24).2. DIO_OUT_B_CLOCK – output clock (J3 pin 20).3. DIO_OUT_LVDS_CLOCK – output clock (J4 pins 4 and 38). |
nState |
SHORT |
States values are:0. DIO_CLOCK_OUTPUT_DISABLE – specified clock output pin is disabled.1. DIO_CLOCK_OUTPUT_ENABLE– specified clock output pin is enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The DIO needs to be in HALT mode before calling this function.
This function sets the specified output clock signal pin state to be enabled or disabled state.
NOTE: settings will be overwritten whenever calling reset, settings main clock frequency or settings B clock frequency.
The following example enables the output strobe signal:
SHORT nStatus, nOutputState;
DioSetupOutputClocksState (nHandle, DIO_OUT_STROBE, DIO_CLOCK_OUTPUT_ENABLE, &nStatus);
DioGetOutputClocksState, DioWriteIOPinsValue, DioReadIOPinsValue, DioGetErrorString