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:
- The pin's value is re-set with another call to XJAPI_SetPins.
- A new pin mapping is set with XJAPI_SetPinMap, XJAPI_SetPinMapFromFile or XJAPI_HardwareSetup.
- If the pin was set as one of the JTAG pins in the pin mapping (TMS, TCK, TDI or TDO), then it will be restored to this function on a call to any function that accesses the JTAG chain:
See Also
XJTAG v4.1.100