All devices: new CLI argument to bypass file type autodetection

This commit is contained in:
Gwenhael Goavec-Merou
2021-02-21 18:30:13 +01:00
parent 7cc5676e8e
commit df52d523bf
18 changed files with 82 additions and 47 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ class Device {
WR_FLASH = 1
} prog_type_t;
Device(Jtag *jtag, std::string filename, int8_t verbose = false);
Device(Jtag *jtag, std::string filename, const std::string &file_type,
int8_t verbose = false);
virtual ~Device();
virtual void program(unsigned int offset = 0) = 0;
virtual int idCode() = 0;