Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
e75c46856This file is pinned to the selected release. Download the original to open it in your design tool.
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2020 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
*/
#ifndef SRC_EFINIXHEXPARSER_HPP_
#define SRC_EFINIXHEXPARSER_HPP_
#include <string>
#include "configBitstreamParser.hpp"
/*!
* \file efinixHexParser
* \class EfinixHexParser
* \brief class used to read a raw data file
* \author Gwenhael Goavec-Merou
*/
class EfinixHexParser: public ConfigBitstreamParser {
public:
/*!
* \brief constructor
* \param[in] filename: raw file to read
*/
EfinixHexParser(const std::string &filename);
/*!
* \brief read full content of the file, fill the buffer
* \return EXIT_SUCCESS is file is fully read, EXIT_FAILURE otherwise
*/
int parse() override;
};
#endif // SRC_EFINIXHEXPARSER_HPP_