@@ -40,13 +40,13 @@ over Inter-Integrated Circuit (I2C) in Arduino
4040class sfeTkArdI2C : public sfeTkII2C
4141{
4242 public:
43- /* *--------------------------------------------------------------------------
43+ /* *
4444 @brief Constructor
4545 */
4646 sfeTkArdI2C (void ) : _i2cPort(nullptr ), _bufferChunkSize{kDefaultBufferChunk }
4747 {
4848 }
49- /* *--------------------------------------------------------------------------
49+ /* *
5050 @brief Constructor
5151
5252 @param addr The address of the device
@@ -74,20 +74,20 @@ class sfeTkArdI2C : public sfeTkII2C
7474 return *this ;
7575 }
7676
77- /* *--------------------------------------------------------------------------
77+ /* *
7878 @brief Method sets up the required I2C settings.
7979 @note This function provides a default I2C Port.
8080
8181 @retval kSTkErrOk on successful execution.
8282 */
8383 sfeTkError_t init ();
8484
85- /* *--------------------------------------------------------------------------
85+ /* *
8686 @brief - address version of the init method
8787 */
8888 sfeTkError_t init (uint8_t addr);
8989
90- /* *--------------------------------------------------------------------------
90+ /* *
9191 @brief Method sets up the required I2C settings.
9292
9393 @param wirePort Port for I2C communication.
@@ -97,15 +97,15 @@ class sfeTkArdI2C : public sfeTkII2C
9797 */
9898 sfeTkError_t init (TwoWire &wirePort, uint8_t addr, bool bInit = false );
9999
100- /* *--------------------------------------------------------------------------
100+ /* *
101101 @brief A simple ping of the device at the given address.
102102 @note sfeTkIBus interface method
103103
104104 @retval kSTkErrOk on success,
105105 */
106106 sfeTkError_t ping ();
107107
108- /* *--------------------------------------------------------------------------
108+ /* *
109109 @brief Write a single byte to the device
110110 @note sfeTkIBus interface method
111111
@@ -115,7 +115,7 @@ class sfeTkArdI2C : public sfeTkII2C
115115 */
116116 sfeTkError_t writeByte (uint8_t data);
117117
118- /* *--------------------------------------------------------------------------
118+ /* *
119119 @brief Write a single byte to the given register
120120 @note sfeTkIBus interface method
121121
@@ -126,7 +126,7 @@ class sfeTkArdI2C : public sfeTkII2C
126126 */
127127 sfeTkError_t writeRegisterByte (uint8_t devReg, uint8_t data);
128128
129- /* *--------------------------------------------------------------------------
129+ /* *
130130 @brief Write a single word to the given register
131131 @note sfeTkIBus interface method
132132
@@ -137,7 +137,7 @@ class sfeTkArdI2C : public sfeTkII2C
137137 */
138138 sfeTkError_t writeRegisterWord (uint8_t devReg, uint16_t data);
139139
140- /* *--------------------------------------------------------------------------
140+ /* *
141141 @brief Writes a number of bytes starting at the given register's address.
142142
143143 @note sfeTkIBus interface method
@@ -150,7 +150,7 @@ class sfeTkArdI2C : public sfeTkII2C
150150 */
151151 sfeTkError_t writeRegisterRegion (uint8_t devReg, const uint8_t *data, size_t length);
152152
153- /* *--------------------------------------------------------------------------
153+ /* *
154154 @brief Writes a number of bytes starting at the given register's 16-bit address.
155155
156156 @param devAddr The device's 16-bit address/pin
@@ -162,7 +162,7 @@ class sfeTkArdI2C : public sfeTkII2C
162162 */
163163 sfeTkError_t writeRegister16Region (uint16_t devReg, const uint8_t *data, size_t length);
164164
165- /* *--------------------------------------------------------------------------
165+ /* *
166166 @brief Reads a byte of data from the given register.
167167
168168 @note sfeTkIBus interface method
@@ -174,7 +174,7 @@ class sfeTkArdI2C : public sfeTkII2C
174174 */
175175 sfeTkError_t readRegisterByte (uint8_t devReg, uint8_t &data);
176176
177- /* *--------------------------------------------------------------------------
177+ /* *
178178 @brief Reads a word of data from the given register.
179179
180180 @note sfeTkIBus interface method
@@ -186,7 +186,7 @@ class sfeTkArdI2C : public sfeTkII2C
186186 */
187187 sfeTkError_t readRegisterWord (uint8_t devReg, uint16_t &data);
188188
189- /* *--------------------------------------------------------------------------
189+ /* *
190190 @brief Reads a block of data from the given register.
191191
192192 @note sfeTkIBus interface method
@@ -202,7 +202,7 @@ class sfeTkArdI2C : public sfeTkII2C
202202 */
203203 sfeTkError_t readRegisterRegion (uint8_t devReg, uint8_t *data, size_t numBytes, size_t &readBytes);
204204
205- /* *--------------------------------------------------------------------------
205+ /* *
206206 @brief Reads a block of data from the given 16-bit register address.
207207
208208 @param reg The device's 16 bit register's address.
@@ -216,7 +216,7 @@ class sfeTkArdI2C : public sfeTkII2C
216216 sfeTkError_t readRegister16Region (uint16_t reg, uint8_t *data, size_t numBytes, size_t &readBytes);
217217
218218 // Buffer size chunk getter/setter
219- /* *--------------------------------------------------------------------------
219+ /* *
220220 @brief set the buffer chunk size
221221
222222 @note default size is 32
@@ -230,7 +230,7 @@ class sfeTkArdI2C : public sfeTkII2C
230230 _bufferChunkSize = theChunk;
231231 }
232232
233- /* *--------------------------------------------------------------------------
233+ /* *
234234 @brief set the buffer chunk size
235235
236236 @retval The current chunk size
0 commit comments