25 lines
460 B
C++
25 lines
460 B
C++
#include <iostream>
|
|
#include <stdexcept>
|
|
|
|
#include "device.hpp"
|
|
|
|
using namespace std;
|
|
|
|
Device::Device(FtdiJtag *jtag, string filename, bool verbose):
|
|
_filename(filename),
|
|
_file_extension(filename.substr(filename.find_last_of(".") +1)),
|
|
_mode(NONE_MODE), _verbose(verbose)
|
|
{
|
|
_jtag = jtag;
|
|
if (_verbose)
|
|
cout << "File type : " << _file_extension << endl;
|
|
}
|
|
|
|
Device::~Device() {}
|
|
|
|
void Device::reset()
|
|
{
|
|
throw std::runtime_error("Not implemented");
|
|
}
|
|
|