Skip to content

Commit c58774c

Browse files
committed
doxygen:
1 parent 9205787 commit c58774c

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

src/components/i2c/controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ bool I2cController::Handle_I2cDeviceAddOrReplace(pb_istream_t *stream) {
848848
/***********************************************************************/
849849
/*!
850850
@brief Scans the I2C bus for devices and stores the results.
851-
@param defualt_bus
851+
@param default_bus
852852
True to scan the default I2C bus, False to scan the
853853
alternative I2C bus.
854854
@returns True if the I2C bus was successfully scanned, False

src/components/i2c/controller.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
"UNKNOWN_SCAN" ///< Name for I2C devices found by an i2c scan
7272

7373
typedef struct {
74-
uint32_t address;
75-
bool is_initialized;
74+
uint32_t address; ///< I2C address of the device
75+
bool is_initialized; ///< Flag to indicate if the device is initialized
7676
} initialized_device_t; ///< Struct to hold initialized device info
7777

7878
class Wippersnapper_V2; ///< Forward declaration

src/components/i2c/drivers/drvBase.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,11 @@ class drvBase {
161161
/*******************************************************************************/
162162
/*!
163163
@brief Configures an i2c device's sensors.
164+
@param use_default_types
165+
Use default sensor types from the driver, rather than
166+
the cfg file.
164167
@param sensor_types
165-
Pointer to an array of SensorType objects.
168+
The sensor types to use for the device.
166169
@param sensor_types_count
167170
The number of active sensors to read from the device.
168171
*/
@@ -754,6 +757,14 @@ class drvBase {
754757
wippersnapper_sensor_SensorType
755758
_sensors[15]; ///< Sensors attached to the device.
756759

760+
/***************************************************************************/
761+
/*!
762+
@brief Converts a SensorType to a string.
763+
@param type
764+
The SensorType to convert.
765+
@returns The string representation of the SensorType.
766+
*/
767+
/***************************************************************************/
757768
const char *SensorTypeToString(wippersnapper_sensor_SensorType type) {
758769
switch (type) {
759770
case wippersnapper_sensor_SensorType_SENSOR_TYPE_UNSPECIFIED:
@@ -850,6 +861,6 @@ class drvBase {
850861
wippersnapper_sensor_SensorType
851862
_default_sensor_types[15]; ///< Default sensor types
852863
size_t _default_sensor_types_count; ///< Number of default sensor types
853-
const char *_sensor_type_strings[15];
864+
const char *_sensor_type_strings[15]; ///< Sensor type strings
854865
};
855866
#endif // DRV_BASE_H

0 commit comments

Comments
 (0)