openFPGALoader/altera.hpp

22 lines
370 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:
2019-11-21 09:26:43 +01:00
Altera(FtdiJtag *jtag, std::string filename, bool verbose);
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