Go to the documentation of this file.
8 #ifndef OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H
9 #define OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H
14 #define DTC_CMD_SHIFT_TMS_BYTES(bytes) ((0x1 << 4) | ((bytes) - 1))
18 #define DTC_CMD_SHIFT_TDI_BYTES(bytes) ((0x2 << 4) | ((bytes) - 1))
22 #define DTC_CMD_SHIFT_TDI_AND_TMS_BYTES(bytes) ((0x3 << 4) | ((bytes) - 1))
26 #define DTC_CMD_SHIFT_TDO_BYTES(bytes) ((0x4 << 4) | ((bytes) - 1))
30 #define DTC_CMD_SHIFT_TDIO_BYTES(bytes) ((0x6 << 4) | ((bytes) - 1))
33 #define DTC_CMD_SHIFT_TMS_TDI_BIT_PAIR(tms, tdi, tdo) ((0x8 << 4) | (\
34 (tms) ? (1 << 0) : 0 \
36 (tdi) ? (1 << 1) : 0 \
38 (tdo) ? (1 << 3) : 0 \
50 #define DTC_CMD_SHIFT_TMS_BITS(bits) ((0x9 << 4) | ((bits) - 1))
54 #define DTC_CMD_SHIFT_TDIO_BITS(bits) ((0xe << 4) | ((bits) - 1))
59 #define DTC_CMD_STOP (0xf << 4)