hardware interface: add copyFrom
Add a copyFrom method to the hardware window interface and empty
implementations of it within the current lpc handlers.
Change-Id: If2ab6a47763387721edd1a0c451ed8c6087eb475
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/window_hw_interface.hpp b/window_hw_interface.hpp
index a9de4dd..d00bfcd 100644
--- a/window_hw_interface.hpp
+++ b/window_hw_interface.hpp
@@ -2,6 +2,7 @@
#include <cstdint>
#include <utility>
+#include <vector>
namespace blobs
{
@@ -29,6 +30,14 @@
*/
virtual std::pair<std::uint32_t, std::uint32_t>
mapWindow(std::uint32_t address, std::uint32_t length) = 0;
+
+ /**
+ * Returns the bytes from the mapped window.
+ *
+ * @param[in] length - the number of bytes to copy.
+ * @return the bytes copied out of the region.
+ */
+ virtual std::vector<std::uint8_t> copyFrom(std::uint32_t length) = 0;
};
} // namespace blobs