lib: xc7series: add accessor to get words in a bitstream

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
Rick Altherr 2017-12-11 14:06:21 -08:00 committed by Tim 'mithro' Ansell
parent bd9338da4a
commit 78546b275d
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class BitstreamReader {
template<typename T>
static absl::optional<BitstreamReader> InitWithBytes(T &bitstream);
const std::vector<uint32_t> &words() { return words_; };
// Returns an iterator that yields `ConfigurationPackets`
// as read from the bitstream.
iterator begin();