Skip to content

Commit 9d9ddaf

Browse files
committed
fix comment headers/weirdness
1 parent 34a82e2 commit 9d9ddaf

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

src/sfeTkArdI2C.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ over Inter-Integrated Circuit (I2C) in Arduino
4040
class 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

src/sfeTkArdSPI.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class sfeTkArdSPI : public sfeTkISPI
7474
return *this;
7575
}
7676

77-
/**--------------------------------------------------------------------------
77+
/**
7878
@brief Method sets up the required SPI settings.
7979
@note This function provides a default SPI Port.
8080
@@ -86,7 +86,7 @@ class sfeTkArdSPI : public sfeTkISPI
8686

8787
sfeTkError_t init(uint8_t csPin, bool bInit = false);
8888

89-
/**--------------------------------------------------------------------------
89+
/**
9090
@brief Method sets up the required SPI settings.
9191
9292
@param spiPort Port for SPI communication.
@@ -97,7 +97,7 @@ class sfeTkArdSPI : public sfeTkISPI
9797
*/
9898
sfeTkError_t init(SPIClass &spiPort, SPISettings &busSPISettings, uint8_t csPin, bool bInit = false);
9999

100-
/**--------------------------------------------------------------------------
100+
/**
101101
@brief Write a single byte to the device
102102
103103
@param data Data to write.
@@ -106,7 +106,7 @@ class sfeTkArdSPI : public sfeTkISPI
106106
*/
107107
sfeTkError_t writeByte(uint8_t data);
108108

109-
/**--------------------------------------------------------------------------
109+
/**
110110
@brief Write a single byte to the given register
111111
112112
@param devReg The device's register's address.
@@ -116,7 +116,7 @@ class sfeTkArdSPI : public sfeTkISPI
116116
*/
117117
sfeTkError_t writeRegisterByte(uint8_t devReg, uint8_t data);
118118

119-
/**--------------------------------------------------------------------------
119+
/**
120120
@brief Write a single word to the given register
121121
122122
@param devReg The device's register's address.
@@ -126,7 +126,7 @@ class sfeTkArdSPI : public sfeTkISPI
126126
*/
127127
sfeTkError_t writeRegisterWord(uint8_t devReg, uint16_t data);
128128

129-
/**--------------------------------------------------------------------------
129+
/**
130130
@brief Writes a number of bytes starting at the given register's address.
131131
@note This method is virtual to allow it to be overridden to support a device that requires a unique impl
132132
@@ -137,7 +137,7 @@ class sfeTkArdSPI : public sfeTkISPI
137137
*/
138138
sfeTkError_t writeRegisterRegion(uint8_t devReg, const uint8_t *data, size_t length);
139139

140-
/**--------------------------------------------------------------------------
140+
/**
141141
@brief Writes a number of bytes starting at the given register's address.
142142
@note This method is virtual to allow it to be overridden to support a device that requires a unique impl
143143
@@ -148,7 +148,7 @@ class sfeTkArdSPI : public sfeTkISPI
148148
*/
149149
sfeTkError_t writeRegister16Region(uint16_t devReg, const uint8_t *data, size_t length);
150150

151-
/**--------------------------------------------------------------------------
151+
/**
152152
@brief Read a single byte from the given register
153153
154154
@param devReg The device's register's address.
@@ -158,7 +158,7 @@ class sfeTkArdSPI : public sfeTkISPI
158158
*/
159159
sfeTkError_t readRegisterByte(uint8_t devReg, uint8_t &data);
160160

161-
/**--------------------------------------------------------------------------
161+
/**
162162
@brief read a single word to the given register
163163
164164
@param devReg The device's register's address.
@@ -168,7 +168,7 @@ class sfeTkArdSPI : public sfeTkISPI
168168
*/
169169
sfeTkError_t readRegisterWord(uint8_t devReg, uint16_t &data);
170170

171-
/**--------------------------------------------------------------------------
171+
/**
172172
@brief Reads a block of data from the given register.
173173
@note This method is virtual to allow it to be overridden to support a device that requires a unique impl
174174
@@ -181,7 +181,7 @@ class sfeTkArdSPI : public sfeTkISPI
181181
*/
182182
virtual sfeTkError_t readRegisterRegion(uint8_t reg, uint8_t *data, size_t numBytes, size_t &readBytes);
183183

184-
/**--------------------------------------------------------------------------
184+
/**
185185
@brief Reads a block of data from the given register.
186186
@note This method is virtual to allow it to be overridden to support a device that requires a unique impl
187187

0 commit comments

Comments
 (0)