2019-09-26 18:29:20 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
|
|
|
|
#include "device.hpp"
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
2019-09-28 15:26:47 +02:00
|
|
|
Device::Device(FtdiJtag *jtag, string filename):
|
|
|
|
|
_filename(filename),
|
|
|
|
|
_file_extension(filename.substr(filename.find_last_of(".") +1)),
|
|
|
|
|
_mode(NONE_MODE)
|
2019-09-26 18:29:20 +02:00
|
|
|
{
|
|
|
|
|
_jtag = jtag;
|
2019-09-28 15:26:47 +02:00
|
|
|
cout << _file_extension << endl;
|
2019-09-26 18:29:20 +02:00
|
|
|
}
|
|
|
|
|
|
2019-09-28 15:26:47 +02:00
|
|
|
Device::~Device() {}
|
2019-09-26 18:29:20 +02:00
|
|
|
|
|
|
|
|
void Device::reset()
|
|
|
|
|
{
|
|
|
|
|
throw std::runtime_error("Not implemented");
|
|
|
|
|
}
|
|
|
|
|
|