]> git.sesse.net Git - pistorm/blob - i2c_updater/pi-i2c/src/bitstream.hpp
Initial work on FPGA I2C programmer
[pistorm] / i2c_updater / pi-i2c / src / bitstream.hpp
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef _BITSTREAM_HPP_
6 #define _BITSTREAM_HPP_
7
8 #include <string>
9 #include <vector>
10 #include <array>
11 #include <fstream>
12
13 struct tBitstream {
14         tBitstream(const std::string &FilePath);
15
16         std::array<uint8_t, 4> m_DeviceId;
17         uint32_t m_ulCtlReg0;
18         std::array<uint8_t, 4> m_UserCode;
19         std::vector<std::string> m_vComments;
20         std::vector<std::vector<uint8_t>> m_vProgramData;
21 };
22
23 #endif // _BITSTREAM_HPP_