DioLevelShifterGetOutputMode

Applies To

GC5050, GX5050, GX5150

Purpose

Returns the current output state.

Syntax

DioLevelShifterGetOutputMode (nHandle, pnState, pnStatus)

Parameters

Name

Type

Comments

nHandle

SHORT

Board handle.

pnState

PSHORT

Returned output State can be as follows:

0         Disabled (Tri-state).

1         Enabled.

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

In disable mode, all channels have Tri-state high impedance (effectively disconnected).

Example

The following example returns the current output state of the Level Shifter:

 

SHORT   nStatus, nState;

DioLevelShifterGetOutputMode (nHandle, &nState, &nStatus);

 

See Also

DioLevelShifterSetOutputState, DioLevelShifterGetSummary, DioGetErrorString