File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
#pragma once
29
29
30
30
#include " sfeTkError.h"
31
+ #include < stddef.h>
31
32
32
33
// Define our error codes for the bus. Note Errors are negative, warnings/info positive
33
34
// BUT keep the same increment on the base
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
29
29
#include " sfeTkIBus.h"
30
30
31
+ /* *
32
+ * @brief Interface that defines the I2C communication bus for the SparkFun Electronics Toolkit.
33
+ *
34
+ * The I2C bus interface extends the IBus interface and adds the ability to set and get the I2C
35
+ * address and stop flag.
36
+ */
31
37
class sfeTkII2C : public sfeTkIBus
32
38
{
33
39
public:
@@ -72,6 +78,7 @@ class sfeTkII2C : public sfeTkIBus
72
78
/* --------------------------------------------------------------------------
73
79
@brief setter for I2C stop message (vs restarts)
74
80
81
+ @param stop The value to set for "send stop"
75
82
*/
76
83
virtual void setStop (bool stop)
77
84
{
@@ -89,6 +96,9 @@ class sfeTkII2C : public sfeTkIBus
89
96
return _stop;
90
97
}
91
98
99
+ /*
100
+ * @brief kNoAddress is a constant to indicate no address has been set
101
+ */
92
102
static constexpr uint8_t kNoAddress = 0 ;
93
103
94
104
private:
You can’t perform that action at this time.
0 commit comments