JTAG: Move Target interface to separate header.

This commit is contained in:
Jared Boone
2016-07-11 09:39:02 -07:00
parent 6917ffe1e3
commit 18fe30136e
3 changed files with 49 additions and 15 deletions

View File

@@ -22,6 +22,8 @@
#ifndef __JTAG_H__
#define __JTAG_H__
#include "jtag_target.hpp"
#include <cstdint>
#include <cstddef>
@@ -29,20 +31,6 @@
namespace jtag {
class Target {
public:
using bit_t = uint_fast8_t;
virtual ~Target() {
}
virtual void delay(const size_t n) = 0;
virtual bit_t clock(
const bit_t tms_value,
const bit_t tdi_value
) = 0;
};
class JTAG {
public:
constexpr JTAG(