DioGetOutputClocksState

Applies To

GX5280, GX5290, GX5290e, GX5295

Purpose

Returns the output clock pin state.

Syntax

DioGetOutputClocksState (nHandle, nClock, pnState, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Master or Slave board handle.
nClock
SHORT
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).
pnState
PSHORT
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
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

The following example returns the output strobe signal state:

 

SHORT nStatus, nState;

DioGetOutputClocksState (nHandle, DIO_OUT_STROBE, &nState, &nStatus);

 

See Also

DioSetupOutputClocksState, DioWriteIOPinsValue, DioReadIOPinsValue,  DioGetErrorString