XJAPI_USER_MAP

A datatype for describing a user-defined pinmap. The C definition is:

typedef XJAPI_PIN_DEF XJAPI_USER_MAP[20];

The array contains an entry for each pin on the XJTAG connector, with array index 0 corresponding to pin 1 and index 19 corresponding to pin 20. Each pin is described by an XJAPI_PIN_DEF structure.

This datatype is typically constructed and then passed into XJAPI_SetPinMap.

Example

XJAPI_ERROR ec;
XJAPI_USER_MAP pinMap = {
    { XJAPI_HIGH,     XJAPI_DRIVE_HIGH }, //  1
    { XJAPI_DISABLED, 0                }, //  2
    { XJAPI_HIGH,     XJAPI_DRIVE_HIGH }, //  3
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, //  4
    { XJAPI_TDI,      XJAPI_DRIVE_LOW  }, //  5
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, //  6
    { XJAPI_TMS,      XJAPI_DRIVE_LOW  }, //  7
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, //  8
    { XJAPI_TCK,      XJAPI_DRIVE_LOW  }, //  9
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, // 10
    { XJAPI_DISABLED, 0                }, // 11
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, // 12
    { XJAPI_TDO,      0                }, // 13
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, // 14
    { XJAPI_DISABLED, 0                }, // 15
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, // 16
    { XJAPI_DISABLED, 0                }, // 17
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, // 18
    { XJAPI_DISABLED, 0                }, // 19
    { XJAPI_LOW,      XJAPI_DRIVE_HIGH }, // 20
};

ec = XJAPI_SetPinMap(XJAPI_USERDEFINED, &pinMap, FALSE);