Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (64 sloc) 1.962 kb
/*
* Copyright (C) 2009-2012 Chris McClelland
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef XSVF_H
#define XSVF_H
// TAP states (from xapp503 appendix B)
typedef enum {
TAPSTATE_TEST_LOGIC_RESET = 0x00,
TAPSTATE_RUN_TEST_IDLE = 0x01,
TAPSTATE_SELECT_DR = 0x02,
TAPSTATE_CAPTURE_DR = 0x03,
TAPSTATE_SHIFT_DR = 0x04,
TAPSTATE_EXIT1_DR = 0x05,
TAPSTATE_PAUSE_DR = 0x06,
TAPSTATE_EXIT2_DR = 0x07,
TAPSTATE_UPDATE_DR = 0x08,
TAPSTATE_SELECT_IR = 0x09,
TAPSTATE_CAPTURE_IR = 0x0A,
TAPSTATE_SHIFT_IR = 0x0B,
TAPSTATE_EXIT1_IR = 0x0C,
TAPSTATE_PAUSE_IR = 0x0D,
TAPSTATE_EXIT2_IR = 0x0E,
TAPSTATE_UPDATE_IR = 0x0F
} TAPState;
// XSVF commands (from xapp503 appendix B)
typedef enum {
XCOMPLETE = 0x00,
XTDOMASK = 0x01,
XSIR = 0x02,
XSDR = 0x03,
XRUNTEST = 0x04,
XREPEAT = 0x07,
XSDRSIZE = 0x08,
XSDRTDO = 0x09,
XSETSDRMASKS = 0x0A,
XSDRINC = 0x0B,
XSDRB = 0x0C,
XSDRC = 0x0D,
XSDRE = 0x0E,
XSDRTDOB = 0x0F,
XSDRTDOC = 0x10,
XSDRTDOE = 0x11,
XSTATE = 0x12,
XENDIR = 0x13,
XENDDR = 0x14,
XSIR2 = 0x15,
XCOMMENT = 0x16,
XWAIT = 0x17
} Command;
#define BUF_SIZE 2048
#endif
Jump to Line
Something went wrong with that request. Please try again.