mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
27 lines
512 B
C++
27 lines
512 B
C++
// SPDX-License-Identifier: Apache-2.0
|
|
/*
|
|
* Copyright (C) 2019 Gwenhael Goavec-Merou <[email protected]>
|
|
*/
|
|
|
|
#ifndef BITPARSER_H
|
|
#define BITPARSER_H
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <string>
|
|
|
|
#include "configBitstreamParser.hpp"
|
|
|
|
class BitParser: public ConfigBitstreamParser {
|
|
public:
|
|
BitParser(const std::string &filename, bool reverseOrder, bool verbose = false);
|
|
~BitParser();
|
|
int parse() override;
|
|
|
|
private:
|
|
int parseHeader();
|
|
bool _reverseOrder;
|
|
};
|
|
|
|
#endif
|