openFPGALoader/altera.hpp

22 lines
356 B
C++
Raw Normal View History

2019-09-26 18:29:20 +02:00
#ifndef ALTERA_HPP
#define ALTERA_HPP
#include "bitparser.hpp"
#include "device.hpp"
#include "ftdijtag.hpp"
#include "svf_jtag.hpp"
2019-09-26 18:29:20 +02:00
class Altera: public Device {
public:
Altera(FtdiJtag *jtag, std::string filename);
2019-09-26 18:29:20 +02:00
~Altera();
void program(unsigned int offset = 0);
2019-09-26 18:29:20 +02:00
int idCode();
void reset() override;
2019-09-26 18:29:20 +02:00
private:
SVF_jtag _svf;
2019-09-26 18:29:20 +02:00
};
#endif