diff options
author | Aki <please@ignore.pl> | 2021-10-16 14:57:26 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-16 14:57:26 +0200 |
commit | 8f1844febcd87487e979435469645132da4e09c5 (patch) | |
tree | 657bf48a77f5af7c91a724e38fbb2e8acc1557e8 /library/include | |
parent | 48cfa84671048346f64236dedb53b61e27156ad9 (diff) | |
download | hwd-8f1844febcd87487e979435469645132da4e09c5.zip hwd-8f1844febcd87487e979435469645132da4e09c5.tar.gz hwd-8f1844febcd87487e979435469645132da4e09c5.tar.bz2 |
Library updated to use newly added gpio
Diffstat (limited to 'library/include')
-rw-r--r-- | library/include/hwd.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/library/include/hwd.h b/library/include/hwd.h index 197b44b..3bec6be 100644 --- a/library/include/hwd.h +++ b/library/include/hwd.h @@ -2,7 +2,10 @@ namespace hwd { -void stop_server(); -void set_value(int value); -int get_value(); -} +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 hwd |