Skip to content

Commit b21b71a

Browse files
committed
doxygen!
1 parent 2cec932 commit b21b71a

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

src/Wippersnapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ bool encodeI2CResponse(wippersnapper_signal_v1_I2CResponse *msgi2cResponse) {
522522
Protobuf message's tag type.
523523
@param arg
524524
Optional arguments from decoder calling function.
525+
@returns True if decoded successfully, False otherwise.
525526
*/
526527
/******************************************************************************************/
527528
bool cbDecodeSignalRequestI2C(pb_istream_t *stream, const pb_field_t *field,

src/Wippersnapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#endif
5656

5757
// Uncomment the following use the staging IO server //
58-
#define USE_STAGING
58+
#define USE_STAGING ///< Use Adafruit IO staging certificate
5959
#define IO_MQTT_SERVER "io.adafruit.us" ///< Adafruit IO MQTT Server
6060

6161
//#define IO_MQTT_SERVER "io.adafruit.com" ///< Adafruit IO MQTT Server
@@ -313,7 +313,7 @@ class Wippersnapper {
313313
milliseconds. */
314314
char *_topic_signal_i2c_device; /*!< Topic carries messages from a broker to a
315315
device. */
316-
bool pinCfgCompleted = false;
316+
bool pinCfgCompleted = false; /*!< Did initial pin sync complete? */
317317

318318
private:
319319
void _init();

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ WipperSnapper_Component_I2C::~WipperSnapper_Component_I2C() {
7474

7575
/*****************************************************/
7676
/*!
77-
@brief Returns if port is already initialized.
77+
@brief Returns if i2c port is initialized.
78+
@returns True if initialized, False otherwise.
7879
*/
7980
/*****************************************************/
8081
bool WipperSnapper_Component_I2C::isInitialized() { return _isInit; }

src/components/i2c/WipperSnapper_I2C.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
class Wippersnapper;
2626
class I2C_Driver;
2727

28+
/**************************************************************************/
29+
/*!
30+
@brief Class that provides an interface with the I2C bus.
31+
*/
32+
/**************************************************************************/
2833
class WipperSnapper_Component_I2C {
2934
public:
3035
WipperSnapper_Component_I2C(

src/drivers/I2C_Driver.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@brief Creates a generic I2C Driver object.
2020
@param deviceAddress
2121
The i2c device's address.
22-
@param _i2c
22+
@param i2c
2323
The desired i2c port.
2424
*/
2525
/*******************************************************************************/
@@ -44,6 +44,10 @@ I2C_Driver::~I2C_Driver() {
4444
/*!
4545
@brief Sets an I2C device's
4646
polling period, in seconds.
47+
@param Period
48+
The time elapsed between
49+
polling the I2C sensor for new
50+
data.
4751
*/
4852
/*******************************************/
4953
void I2C_Driver::setPeriod(float period) { _pollPeriod = period; }

src/drivers/I2C_Driver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
#include <Adafruit_AHTX0.h>
2121

22+
/**************************************************************************/
23+
/*!
24+
@brief Class that provides a sensor driver interface for the AHTX0.
25+
*/
26+
/**************************************************************************/
2227
class I2C_Driver {
2328
public:
2429
// GENERIC, shared

0 commit comments

Comments
 (0)