summaryrefslogtreecommitdiff
path: root/library/include/hwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/include/hwd.h')
-rw-r--r--library/include/hwd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/library/include/hwd.h b/library/include/hwd.h
index 3bec6be..fbd2fef 100644
--- a/library/include/hwd.h
+++ b/library/include/hwd.h
@@ -1,11 +1,23 @@
#pragma once
+#include <cstddef>
+#include <vector>
+
+
namespace hwd
{
+
namespace gpio
{
void set_mode(const unsigned port, const short mode);
void write(const unsigned port, const short value);
short read(const unsigned port);
} // namespace gpio
+
+namespace memory
+{
+std::vector<char> read(std::size_t len, std::size_t off);
+bool write(const std::vector<char> data, std::size_t off);
+} // namespace memory
+
} // namespace hwd