Treehopper C++ API
OneWire.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <cstdint>
5 
6 namespace Treehopper {
7  class OneWire {
9  virtual void startOneWire() = 0;
10 
12  virtual void oneWireResetAndMatchAddress(uint64_t address) = 0;
13 
15  virtual std::vector<uint64_t> oneWireSearch() = 0;
16 
21  virtual bool oneWireReset() = 0;
22 
28  virtual std::vector<uint8_t> receive(int numBytes) = 0;
29 
35  virtual void send(std::vector<uint8_t> dataToSend) = 0;
36 
42  virtual void send(uint8_t dataToSend) = 0;
43  };
44 }
45 
Definition: OneWire.h:7
Definition: AdcPin.h:3