DioLevelShifterSetByLogicFamily

Applies To

GC5050, GX5050, GX5150

Purpose

Sets the group Low, High and Threshold voltages according to a predefined logic family code.

Syntax

DioLevelShifterSetByLogicFamily (nHandle, nGroup, nLogicFamily, pnStatus)

Parameters

Name

Type

Comments

nHandle

SHORT

Board handle.

nGroup

SHORT

Group number can be as follows:

  0       Group A, channels 1 through 16.

  1       Group B, channels 17 through 32.

nLogicFamily

SHORT

Logic family codes are as follow:

  0       TTL.

  1       ECL 10K.

pnStatus

PSHORT

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

Comments

Groups operate independently from one another; that is, setting of one group does not affect the other.

Threshold voltages apply only to input signals. They are used to determine whether the signal on any pin in the specified group is higher or lower than the threshold voltage.

See "I/O Modules and Interfaces User Guide" for details on the Logic families codes and parameters.

Example

The following example sets group A Low, High and Threshold voltages according to the TTL logic family code:

 

SHORT   nStatus;

DioLevelShifterSetByLogicFamily (nHandle, 1, 0, &nStatus);

 

See Also

DioLevelShifterSetVoltage, DioLevelShifterGetVoltage, DioGetErrorString