XJAPI_SetPins

Manually sets pins on the XJLink connector.

XJAPI_ERROR XJAPI_SetPins(
    unsigned int setHigh,
    unsigned int setLow,
    unsigned int setInput
);

Version

This function was added in XJTAG version 1.3.1, and so requires that XJAPI_VERSION be defined to be greater than or equal to 0x010301.

Arguments

setHigh
Bit array specifying which pins to drive high.
setLow
Bit array specifying which pins to drive low.
setInput
Bit array specifying which pins to set as inputs.

Return value

An XJAPI_ERROR value indicating whether the function call was successful or not.

Notes

The three parameters are bit arrays, with one bit per pin on the connector. The least significant bit represents pin 1 on the connector. On an XJLink2, the hard ground pins 10 and 20 are not controllable.

Once a pin is set via this function call it remains set until one of the following happens:

See Also