@@ -54,8 +54,7 @@ class sfeTkArdSPI : public sfeTkISPI
5454 /* *
5555 @brief Copy constructor for Arduino SPI bus object of the toolkit
5656
57- @param spiPort Port for SPI communication.
58- @param busSPISettings Settings for speed, endianness, and spi mode of the SPI bus.
57+ @param rhs source of the copy operation
5958 */
6059 sfeTkArdSPI (sfeTkArdSPI const &rhs) : sfeTkISPI(), _spiPort{rhs._spiPort }, _sfeSPISettings{rhs._sfeSPISettings }
6160 {
@@ -78,19 +77,29 @@ class sfeTkArdSPI : public sfeTkISPI
7877 @brief Method sets up the required SPI settings.
7978 @note This function provides a default SPI Port.
8079
81- @param bInit This flag tracks whether the bus has been initialized .
80+ @param bInit Init the device - default is false .
8281
8382 @retval sfeTkError_t - kSTkErrOk on success
8483 */
8584 sfeTkError_t init (bool bInit = false );
8685
86+ /* *
87+ @brief Method sets up the required SPI settings.
88+ @note This function provides a default SPI Port.
89+
90+ @param csPin The CS Pin for the device
91+ @param bInit Init the device - default is false.
92+
93+ @retval sfeTkError_t - kSTkErrOk on success
94+ */
8795 sfeTkError_t init (uint8_t csPin, bool bInit = false );
8896
8997 /* *
9098 @brief Method sets up the required SPI settings.
9199
92100 @param spiPort Port for SPI communication.
93101 @param busSPISettings Settings for speed, endianness, and spi mode of the SPI bus.
102+ @param csPin The CS Pin for the device
94103 @param bInit This flag tracks whether the bus has been initialized.
95104
96105 @retval sfeTkError_t - kSTkErrOk on success
@@ -132,6 +141,7 @@ class sfeTkArdSPI : public sfeTkISPI
132141
133142 @param devReg The device's register's address.
134143 @param data Data to write.
144+ @param length - length of data
135145
136146 @retval sfeTkError_t - kSTkErrOk on success
137147 */
@@ -143,6 +153,7 @@ class sfeTkArdSPI : public sfeTkISPI
143153
144154 @param devReg The device's register's address.
145155 @param data Data to write.
156+ @param length - length of data
146157
147158 @retval sfeTkError_t - kSTkErrOk on success
148159 */
@@ -152,7 +163,7 @@ class sfeTkArdSPI : public sfeTkISPI
152163 @brief Read a single byte from the given register
153164
154165 @param devReg The device's register's address.
155- @param data Data to read.
166+ @param[out] data Data to read.
156167
157168 @retval sfeTkError_t - kSTkErrOk on success
158169 */
@@ -162,7 +173,7 @@ class sfeTkArdSPI : public sfeTkISPI
162173 @brief read a single word to the given register
163174
164175 @param devReg The device's register's address.
165- @param data Data to write.
176+ @param[out] data Data to write.
166177
167178 @retval sfeTkError_t - true on success
168179 */
@@ -172,9 +183,9 @@ class sfeTkArdSPI : public sfeTkISPI
172183 @brief Reads a block of data from the given register.
173184 @note This method is virtual to allow it to be overridden to support a device that requires a unique impl
174185
175- @param devReg The device's register's address.
176- @param data Data to write.
177- @param numBytes - length of data
186+ @param reg The device's register's address.
187+ @param[out] data Data buffer to read into
188+ @param numBytes - length of data/size of data buffer
178189 @param[out] readBytes - Number of bytes read
179190
180191 @retval sfeTkError_t - true on success
@@ -185,9 +196,9 @@ class sfeTkArdSPI : public sfeTkISPI
185196 @brief Reads a block of data from the given register.
186197 @note This method is virtual to allow it to be overridden to support a device that requires a unique impl
187198
188- @param devReg The device's register's 16 bit address.
189- @param data Data to write.
190- @param numBytes - length of data
199+ @param reg The device's register's 16 bit address.
200+ @param[out] data Data buffer to read into
201+ @param numBytes - Length of data to read/size of data buffer
191202 @param[out] readBytes - Number of bytes read
192203
193204 @retval sfeTkError_t - true on success
0 commit comments