File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,32 @@ class sfeTkIBus
87
87
{
88
88
public:
89
89
/* *--------------------------------------------------------------------------
90
- * @brief Write a single byte to the device*
90
+ * @brief Send a single byte to the device*
91
91
* @param data Data to write.
92
92
*
93
93
* @retval sfeTkError_t - kSTkErrOk on successful execution.
94
94
*
95
95
*/
96
96
virtual sfeTkError_t writeByte (uint8_t data) = 0;
97
97
98
+ /* *--------------------------------------------------------------------------
99
+ * @brief Send a word to the device.
100
+ * @param data Data to write.
101
+ *
102
+ * @retval sfeTkError_t - kSTkErrOk on successful execution.
103
+ *
104
+ */
105
+ virtual sfeTkError_t writeWord (uint16_t data) = 0;
106
+
107
+ /* *--------------------------------------------------------------------------
108
+ * @brief Send an array of data to the device.
109
+ * @param data Data to write.
110
+ *
111
+ * @retval sfeTkError_t - kSTkErrOk on successful execution.
112
+ *
113
+ */
114
+ virtual sfeTkError_t writeBlock (const uint8_t *data, size_t length) = 0;
115
+
98
116
/* *--------------------------------------------------------------------------
99
117
* @brief Write a single byte to the given register
100
118
*
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ sfeTkError_t sfeTkArdI2C::writeWord(uint16_t dataToWrite)
125
125
//
126
126
// Returns true on success, false on failure
127
127
//
128
- sfeTkError_t sfeTkArdI2C::writeBlock (const uint8_t *dataToWrite , size_t length)
128
+ sfeTkError_t sfeTkArdI2C::writeBlock (const uint8_t *data , size_t length)
129
129
{
130
130
int nData = 0 ;
131
131
if (!_i2cPort)
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ class sfeTkArdI2C : public sfeTkII2C
136
136
137
137
@retval returns kStkErrOk on success
138
138
*/
139
- sfeTkError_t writeBlock (const uint8_t *data);
139
+ sfeTkError_t writeBlock (const uint8_t *data, size_t length );
140
140
141
141
/* *
142
142
@brief Write a single byte to the given register
You can’t perform that action at this time.
0 commit comments