Преглед изворни кода

doxygen: add groups for all modules

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll пре 10 година
родитељ
комит
befba8c18d

+ 5
- 2
DoxygenLayout.xml Прегледај датотеку

@@ -4,8 +4,11 @@
4 4
   <navindex>
5 5
     <tab type="mainpage" visible="yes" title=""/>
6 6
     <tab type="pages" visible="yes" title="" intro=""/>
7
-    <tab type="modules" visible="yes" title="" intro=""/>
8
-    <tab type="namespaces" visible="yes" title="">
7
+    <tab type="modules" visible="yes" title="UPM libraries" intro="Here is a
8
+    list of UPM libraries that can be used. Note that each of the classes
9
+    listed in these libraries are completely seperate so you will need to link
10
+    against all those that you have used in your program"/> <tab
11
+    type="namespaces" visible="yes" title="">
9 12
     <tab type="namespacelist" visible="yes" title="" intro=""/>
10 13
     <tab type="namespacemembers" visible="yes" title="" intro=""/>
11 14
     </tab>

+ 6
- 1
src/buzzer/buzzer.h Прегледај датотеку

@@ -36,13 +36,18 @@
36 36
 
37 37
 namespace upm {
38 38
 
39
+/**
40
+ * @brief Buzzer library
41
+ * @defgroup buzzer libupm-buzzer
42
+ */
43
+
39 44
 /**
40 45
  * @brief C++ API for Buzzer component
41 46
  *
42 47
  * This file defines the Buzzer C++ interface for libbuzzer
43 48
  *
49
+ * @ingroup buzzer
44 50
  * @snippet buzzer-sound.cxx Interesting
45
- *
46 51
  */
47 52
 class Buzzer {
48 53
     public:

+ 6
- 0
src/ecs1030/ecs1030.h Прегледај датотеку

@@ -41,9 +41,15 @@ namespace upm {
41 41
 #define TRUE               HIGH
42 42
 #define FALSE              LOW
43 43
 
44
+/**
45
+ * @brief ECS1030 electricity sensor library
46
+ * @defgroup ecs1030 libupm-ecs1030
47
+ */
48
+
44 49
 /**
45 50
  * @brief C++ API for ECS1030 (electricity sensor)
46 51
  *
52
+ * @ingroup ecs1030
47 53
  * @snippet ecs1030.cxx Interesting
48 54
  */
49 55
 

+ 2
- 3
src/gas/gas.h Прегледај датотеку

@@ -36,9 +36,8 @@ struct thresholdContext {
36 36
 namespace upm {
37 37
 
38 38
 /**
39
- * @brief C++ API for Gas sensors
40
- *
41
- * This file defines the Gas Analog sensors virtual functions
39
+ * @brief gas sensor library
40
+ * @defgroup gas libupm-gas
42 41
  */
43 42
 class Gas {
44 43
     public:

+ 1
- 0
src/gas/mq2.h Прегледај датотеку

@@ -36,6 +36,7 @@ namespace upm {
36 36
      * Hydrogen, smoke and other combustible gases. It's a medium sensitivity
37 37
      * sensor with a detect concentration of 300-10000ppm.
38 38
      *
39
+     * @ingroup gas
39 40
      * @snippet mq2-example.cxx Interesting
40 41
      * @image html grovegas.jpeg
41 42
      */

+ 1
- 0
src/gas/mq3.h Прегледај датотеку

@@ -36,6 +36,7 @@ namespace upm {
36 36
      * highly sensitive but has a long warmup time of about 1minute. It's
37 37
      * detect rate is of 0.04-4mg/L Alcohol.
38 38
      *
39
+     * @ingroup gas
39 40
      * @snippet mq3-example.cxx Interesting
40 41
      * @image html grovegas.jpeg
41 42
      */

+ 1
- 0
src/gas/mq5.h Прегледај датотеку

@@ -36,6 +36,7 @@ namespace upm {
36 36
      * on. It is highly sensitive and has a detection concentration of
37 37
      * 300-10000ppm.
38 38
      *
39
+     * @ingroup gas
39 40
      * @snippet mq5-example.cxx Interesting
40 41
      * @image html grovegas.jpeg
41 42
      */

+ 1
- 0
src/gas/mq9.h Прегледај датотеку

@@ -35,6 +35,7 @@ namespace upm {
35 35
      * home and industry). It can detect Carbon Monoxide, Coal Gas and
36 36
      * Liquefied Gas. It's sensitivty is 10-1000ppmCO 100-10000PPm Gas.
37 37
      *
38
+     * @ingroup gas
38 39
      * @snippet mq9-example.cxx Interesting
39 40
      * @image html mq9.jpeg
40 41
      */

+ 7
- 0
src/grove/grove.h Прегледај датотеку

@@ -29,6 +29,10 @@
29 29
 
30 30
 namespace upm {
31 31
 
32
+/**
33
+ * @brief library for basic grove sensors
34
+ * @defgroup grove libupm-grove
35
+ */
32 36
 class Grove {
33 37
     public:
34 38
         virtual ~Grove() {}
@@ -45,6 +49,7 @@ class Grove {
45 49
  *
46 50
  * Very basic UPM module for grove LED, or any LED for that matter
47 51
  *
52
+ * @ingroup grove
48 53
  * @snippet groveled.cxx Interesting
49 54
  */
50 55
 class GroveLed: public Grove {
@@ -63,6 +68,7 @@ class GroveLed: public Grove {
63 68
  *
64 69
  * Very basic UPM module for grove temperature sensor on analog
65 70
  *
71
+ * @ingroup grove
66 72
  * @snippet grovetemp.cxx Interesting
67 73
  */
68 74
 class GroveTemp: public Grove {
@@ -90,6 +96,7 @@ class GroveTemp: public Grove {
90 96
  *
91 97
  * Very basic UPM module for grove Light sensor on analog
92 98
  *
99
+ * @ingroup grove
93 100
  * @snippet grovelight.cxx Interesting
94 101
  */
95 102
 class GroveLight: public Grove {

+ 6
- 0
src/gy65/gy65.h Прегледај датотеку

@@ -60,6 +60,11 @@
60 60
 
61 61
 namespace upm {
62 62
 
63
+/**
64
+ * @brief GY65 & BPM085 atmospheric pressure sensor library
65
+ * @defgroup gy65 libupm-gy65
66
+ */
67
+
63 68
 /**
64 69
  * @brief C++ API for GY65/BMP085 chip (Atmospheric Pressure Sensor)
65 70
  *
@@ -68,6 +73,7 @@ namespace upm {
68 73
  * is a high precision, ultra-low power consumption pressure sensor. It has a
69 74
  * range of between 30,000 and 110,000 Pa.
70 75
  *
76
+ * @ingroup gy65
71 77
  * @snippet gy65.cxx Interesting
72 78
  * @image html bmp085.jpeg
73 79
  */

+ 1
- 2
src/gy65/pyupm_gy65.i Прегледај датотеку

@@ -3,9 +3,8 @@
3 3
 
4 4
 %include "stdint.i"
5 5
 
6
-%feature("autodoc", "3");
7
-
8 6
 %include "gy65.h"
9 7
 %{
10 8
     #include "gy65.h"
11 9
 %}
10
+

+ 7
- 2
src/hcsr04/hcsr04.h Прегледај датотеку

@@ -1,4 +1,4 @@
1
-/*
1
+ /*
2 2
  * Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
3 3
  * Copyright (c) 2014 Intel Corporation.
4 4
  *
@@ -37,13 +37,18 @@
37 37
 
38 38
 namespace upm {
39 39
 
40
+/**
41
+ * @brief HCSR04 ultrasonic sensor library
42
+ * @defgroup hcsr04 libupm-hcsr04
43
+ */
44
+
40 45
 /**
41 46
  * @brief C++ API for HCSR04 (ultrasonic ranging module) component
42 47
  *
43 48
  * This file defines the HCSR04 C++ interface for libhcsr04
44 49
  *
50
+ * @ingroup hcsr04
45 51
  * @snippet hcsr04.cxx Interesting
46
- *
47 52
  */
48 53
 class HCSR04 {
49 54
     public:

+ 6
- 1
src/hmc5883l/hmc5883l.h Прегледај датотеку

@@ -29,6 +29,11 @@
29 29
 
30 30
 namespace upm {
31 31
 
32
+/**
33
+ * @brief HMC5883l magnometer library
34
+ * @defgroup hmc5883l libupm-hmc5883l
35
+ */
36
+
32 37
 /**
33 38
  * @brief C++ API for HMC5883l (3-axis digital compass)
34 39
  *
@@ -38,10 +43,10 @@ namespace upm {
38 43
  * all done through an I2C interface. Different breakout boards are available,
39 44
  * typically a 3V supply is all that is needed to power the sensor.
40 45
  *
46
+ * @ingroup hmc5883l
41 47
  * @snippet hmc5883l.cxx Interesting
42 48
  * @image html hmc5883l.jpeg
43 49
  */
44
-
45 50
 class Hmc5883l {
46 51
 public:
47 52
     /**

+ 6
- 1
src/joystick12/joystick12.h Прегледај датотеку

@@ -29,6 +29,11 @@
29 29
 
30 30
 namespace upm {
31 31
 
32
+/**
33
+ * @brief Analog Joystick library
34
+ * @defgroup joystick libupm-joystick
35
+ */
36
+
32 37
 /**
33 38
  * @brief C++ API for Elecfreaks Joystick v 1.2-1.4 breakout
34 39
  *
@@ -36,8 +41,8 @@ namespace upm {
36 41
  * button could be treated as normal GPIO, this enables easier
37 42
  * interrupt support
38 43
  *
44
+ * @ingroup joystick
39 45
  * @snippet joystick12-example.cxx Interesting
40
- *
41 46
  */
42 47
 class Joystick12 {
43 48
     public:

+ 4
- 0
src/lcd/i2clcd.h Прегледај датотеку

@@ -72,6 +72,10 @@ namespace upm {
72 72
 #define LCD_RW 0x02 // Read/Write bit
73 73
 #define LCD_RS 0x01 // Register select bit
74 74
 
75
+/**
76
+ * @brief i2c LCD display library
77
+ * @defgroup i2clcd libupm-i2clcd
78
+ */
75 79
 class I2CLcd {
76 80
     public:
77 81
         I2CLcd (int bus, int lcdAddress);

+ 1
- 0
src/lcd/jhd1313m1.h Прегледај датотеку

@@ -38,6 +38,7 @@ namespace upm {
38 38
  * [Grove LCD RGB Backlight v2.0 display]
39 39
  * (http://www.seeedstudio.com/depot/Grove-LCD-RGB-Backlight-p-1643.html?cPath=34_36)
40 40
  *
41
+ * @ingroup i2clcd
41 42
  * @snippet rgb-lcd.cxx Interesting
42 43
  * @image html grovergblcd.jpeg
43 44
  */

+ 1
- 0
src/lcd/lcm1602.h Прегледај датотеку

@@ -42,6 +42,7 @@ namespace upm {
42 42
  * [TC1602A-01T](https://www.adafruit.com/datasheets/TC1602A-01T.pdf) seems to
43 43
  * the best documented example.
44 44
  *
45
+ * @ingroup i2clcd
45 46
  * @snippet lcm-lcd.cxx Interesting
46 47
  * @image html lcm1602.jpeg
47 48
  */

+ 1
- 0
src/lcd/ssd1308.h Прегледај датотеку

@@ -155,6 +155,7 @@ typedef enum {
155 155
  * (http://www.seeedstudio.com/wiki/Grove_-_OLED_Display_0.96%22)
156 156
  * which is an OLED monochrome display
157 157
  *
158
+ * @ingroup i2clcd
158 159
  * @snippet oled-1308.cxx Interesting
159 160
  * @image html ssd1308.jpeg
160 161
  */

+ 1
- 0
src/lcd/ssd1327.h Прегледај датотеку

@@ -155,6 +155,7 @@ typedef enum {
155 155
  * (http://www.seeedstudio.com/wiki/Grove_-_OLED_Display_1.12%22)
156 156
  * which is an OLED monochrome display
157 157
  *
158
+ * @ingroup i2clcd
158 159
  * @snippet oled-1327.cxx Interesting
159 160
  * @image html ssd1327.jpeg
160 161
  */

+ 8
- 3
src/lol/lol.h Прегледај датотеку

@@ -32,14 +32,19 @@ namespace upm {
32 32
 
33 33
 #define LOL_X 14
34 34
 #define LOL_Y 9
35
+
36
+/**
37
+ * @brief Olimex LoL array library
38
+ * @defgroup lol libupm-lol
39
+ */
40
+
35 41
 /**
36 42
  * @brief C++ API for Olimex LoL array
37 43
  *
38
- * This file defines the LoL API and implemntation for 
39
- * a simple framebuffer
44
+ * This file defines the LoL API and implemntation for a simple framebuffer
40 45
  *
46
+ * @ingroup lol
41 47
  * @snippet lol-example.cxx Interesting
42
- *
43 48
  */
44 49
 class LoL {
45 50
     public:

+ 6
- 0
src/lpd8806/lpd8806.h Прегледај датотеку

@@ -33,11 +33,17 @@
33 33
 
34 34
 namespace upm {
35 35
 
36
+/**
37
+ * @brief FastPixel lpd8806 library
38
+ * @defgroup lpd8806 libupm-lpd8806
39
+ */
40
+
36 41
 /**
37 42
  * @brief C++ API for LPD8806 
38 43
  *
39 44
  * The FastPixel lpd8806 is an RGB led strip controller.
40 45
  *
46
+ * @ingroup lpd8806
41 47
  * @snippet lpd8806-example.cxx Interesting
42 48
  * @image html lpd8806.jpeg
43 49
  */

+ 6
- 0
src/lsm303/lsm303.h Прегледај датотеку

@@ -60,6 +60,11 @@ namespace upm {
60 60
 #define Z 1
61 61
 #define Y 2
62 62
 
63
+/**
64
+ * @brief LSM303 accelerometer/compass library
65
+ * @defgroup lsm303 libupm-lsm303
66
+ */
67
+
63 68
 /**
64 69
  * @brief C++ API for LSM303
65 70
  *
@@ -69,6 +74,7 @@ namespace upm {
69 74
  * module that is used over i2c. The magnometer and acceleromter are accessed
70 75
  * at two seperate i2c addresses.
71 76
  *
77
+ * @ingroup lsm303
72 78
  * @snippet lsm303.cxx Interesting
73 79
  * @image html lsm303.jpeg
74 80
  */

+ 6
- 0
src/max31723/max31723.h Прегледај датотеку

@@ -33,6 +33,11 @@
33 33
 
34 34
 namespace upm {
35 35
 
36
+/**
37
+ * @brief max31723 temperature sensor library
38
+ * @defgroup max31723 libupm-max31723
39
+ */
40
+
36 41
 /**
37 42
  * @brief C++ API for MAX31723 chip (Temperature sensor)
38 43
  *
@@ -43,6 +48,7 @@ namespace upm {
43 48
  * module](http://datasheets.maximintegrated.com/en/ds/MAX31723PMB1.pdf) from
44 49
  * the analog PMOD kit.
45 50
  *
51
+ * @ingroup max31723
46 52
  * @snippet max31723.cxx Interesting
47 53
  * @image html max31723.jpeg
48 54
  */

+ 6
- 0
src/max31855/max31855.h Прегледај датотеку

@@ -29,6 +29,11 @@
29 29
 
30 30
 namespace upm {
31 31
 
32
+/**
33
+ * @brief max31855 thermocouple library
34
+ * @defgroup max31855 libupm-max31855
35
+ */
36
+
32 37
 /**
33 38
  * @brief C++ API for MAX31855
34 39
  *
@@ -40,6 +45,7 @@ namespace upm {
40 45
  * (http://datasheets.maximintegrated.com/en/ds/MAX31855PMB1.pdf) from the
41 46
  * analog PMOD kit.
42 47
  *
48
+ * @ingroup max31855
43 49
  * @snippet max31855.cxx Interesting
44 50
  * @image html max31855.jpeg
45 51
  */

+ 5
- 0
src/max44000/max44000.h Прегледај датотеку

@@ -52,6 +52,11 @@
52 52
 
53 53
 namespace upm {
54 54
 
55
+/**
56
+ * @brief max44000 proxmity sensor library
57
+ * @defgroup max44000 libupm-max44000
58
+ */
59
+
55 60
 /**
56 61
  * @brief C++ API for MAX44000 chip (Ambient and Infrared Proximity Sensor)
57 62
  *

+ 6
- 0
src/max5487/max5487.h Прегледај датотеку

@@ -33,6 +33,11 @@
33 33
 
34 34
 namespace upm {
35 35
 
36
+/**
37
+ * @brief max5847 digital potentiometer library
38
+ * @defgroup max5847 libupm-max5847
39
+ */
40
+
36 41
 /**
37 42
  * @brief C++ API for MAX5487 chip (SPI digital potentionmeter)
38 43
  *
@@ -43,6 +48,7 @@ namespace upm {
43 48
  * PMOD module](http://datasheets.maximintegrated.com/en/ds/MAX5487PMB1.pdf)
44 49
  * from the analog PMOD kit.
45 50
  *
51
+ * @ingroup max5847
46 52
  * @snippet max5487.cxx Interesting
47 53
  * @image html max5487.jpeg
48 54
  */

+ 6
- 2
src/maxds3231m/maxds3231m.h Прегледај датотеку

@@ -62,11 +62,15 @@ struct Time3231 {
62 62
     uint8_t weekDay;
63 63
 };
64 64
 
65
+/**
66
+ * @brief maxds3231m proximity sensor library
67
+ * @defgroup maxds3231m libupm-maxds3231m
68
+ */
69
+
65 70
 /**
66 71
  * @brief C++ API for MAXDS3231M chip (Ambient and Infrared Proximity Sensor)
67 72
  *
68
- * This file defines the MAXDS3231M C++ interface for libmax44000
69
- *
73
+ * @ingroup maxds3231m
70 74
  */
71 75
 class MAXDS3231M {
72 76
     public:

+ 6
- 1
src/mic/mic.h Прегледај датотеку

@@ -35,13 +35,18 @@ struct thresholdContext {
35 35
 
36 36
 namespace upm {
37 37
 
38
+/**
39
+ * @brief analog microphone library
40
+ * @defgroup mic libupm-mic
41
+ */
42
+
38 43
 /**
39 44
  * @brief C++ API for Microphone
40 45
  *
41 46
  * This file defines the Microphone Analog sensor
42 47
  *
48
+ * @ingroup mic
43 49
  * @snippet mic-example.cxx Interesting
44
- *
45 50
  */
46 51
 class Microphone {
47 52
     public:

+ 8
- 1
src/mlx90614/mlx90614.h Прегледај датотеку

@@ -53,10 +53,17 @@
53 53
 namespace upm {
54 54
 
55 55
 /**
56
- * @brief C++ API for MLX90614 
56
+ * @brief mlx90614 temperature sensor library
57
+ * @defgroup mlx90614 libupm-mlx90614
58
+ */
59
+
60
+/**
61
+ * @brief C++ API for MLX90614
57 62
  *
58 63
  * This file defines the MLX90614 C++ interface for libmlx90614
59 64
  *
65
+ * @ingroup mlx90641
66
+ * @snippet mlx90641.cxx Interesting
60 67
  */
61 68
 class MLX90614 {
62 69
     public:

+ 6
- 1
src/mma7455/mma7455.h Прегледај датотеку

@@ -149,13 +149,18 @@ union accelData {
149 149
 
150 150
 #define BIT(n) (1<<n)
151 151
 
152
+/**
153
+ * @brief mma7455 accelerometer library
154
+ * @defgroup mma7455 libupm-mma7455
155
+ */
156
+
152 157
 /**
153 158
  * @brief C++ API for MMA7455 chip (accelerometer)
154 159
  *
155 160
  * This file defines the MMA7455 C++ interface for libmma7455
156 161
  *
162
+ * @ingroup mma7455
157 163
  * @snippet mma7455.cxx Interesting
158
- *
159 164
  */
160 165
 class MMA7455 {
161 166
     public:

+ 6
- 0
src/mpu9150/mpu9150.h Прегледај датотеку

@@ -108,11 +108,17 @@ struct AxisData {
108 108
     Vector3D    data;
109 109
 };
110 110
 
111
+/**
112
+ * @brief mpu9150 sensor library
113
+ * @defgroup mpu9150 libupm-mpu9150
114
+ */
115
+
111 116
 /**
112 117
  * @brief C++ API for MPU9150 chip (Accelrometer, Gyro and Magnometer Sensor)
113 118
  *
114 119
  * This file defines the MPU9150 C++ interface for libmpu9150
115 120
  *
121
+ * @ingroup mpu9150
116 122
  * @snippet mpu9150-example.cxx Interesting
117 123
  */
118 124
 class MPU9150 {

+ 6
- 0
src/my9221/my9221.h Прегледај датотеку

@@ -37,11 +37,17 @@
37 37
 
38 38
 namespace upm {
39 39
 
40
+/**
41
+ * @brief my9221 led bar library
42
+ * @defgroup my9221 libupm-9221
43
+ */
44
+
40 45
 /**
41 46
  * @brief C++ API for MY9221 led bar module
42 47
  *
43 48
  * This file defines the MY9221 C++ interface for libmy9221
44 49
  *
50
+ * @ingroup my9221
45 51
  * @snippet led-bar.cxx Interesting
46 52
  */
47 53
 class MY9221 {

+ 6
- 0
src/nrf24l01/nrf24l01.h Прегледај датотеку

@@ -150,11 +150,17 @@ typedef enum {
150 150
     NRF_18DBM   = 3,
151 151
 } power_t;
152 152
 
153
+/**
154
+ * @brief nrf24l01 transceiver library
155
+ * @defgroup nrf24l01 libupm-nrf24l01
156
+ */
157
+
153 158
 /**
154 159
  * @brief C++ API for NRF24l01 transceiver module
155 160
  *
156 161
  * This file defines the NRF24l01 C++ interface for libnrf24l01
157 162
  *
163
+ * @ingroup nrf24l01
158 164
  * @snippet nrf_receiver.cxx Interesting
159 165
  * @snippet nrf_transmitter.cxx Interesting
160 166
  */

+ 1
- 1
src/servo/es08a.h Прегледај датотеку

@@ -33,8 +33,8 @@ namespace upm {
33 33
  *
34 34
  * This file defines the ES08A C++ interface for libes08a
35 35
  *
36
+ * @ingroup servo
36 37
  * @snippet es08a.cxx Interesting
37
- *
38 38
  */
39 39
 class ES08A : public Servo {
40 40
     public:

+ 2
- 4
src/servo/servo.h Прегледај датотеку

@@ -36,10 +36,8 @@ namespace upm {
36 36
 #define LOW                   0
37 37
 
38 38
 /**
39
- * @brief Base class for other servo components
40
- *
41
- * PMOD pins for MAX44000PMB1 board
42
- *
39
+ * @brief servo libraries
40
+ * @defgroup servo libupm-servo
43 41
  */
44 42
 class Servo {
45 43
     public:

+ 18
- 11
src/sm130/sm130.h Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
3 3
  * Copyright (c) 2014 Intel Corporation.
4
- * 
4
+ *
5 5
  * Based on SM130 library developed by Marc Boon <http://www.marcboon.com>
6 6
  *
7 7
  * Permission is hereby granted, free of charge, to any person obtaining
@@ -40,13 +40,20 @@
40 40
 
41 41
 namespace upm {
42 42
 
43
+/**
44
+ * @brief sm130 rfid module library
45
+ * @defgroup sm130 libupm-sm130
46
+ */
47
+
43 48
 /**
44 49
  * @brief C++ API for SM130 RFID reader module
45 50
  *
46 51
  * This file defines the SM130 C++ interface for libsm130
52
+ *
53
+ * @ingroup sm130
47 54
  */
48 55
 class SM130 {
49
-    
56
+
50 57
     uint8_t m_Data[SIZE_PACKET]; //!< packet data
51 58
 	char    m_Version[8];      //!< version string
52 59
 	uint8_t m_TagNumber[7];    //!< tag number as uint8_t array
@@ -56,7 +63,7 @@ class SM130 {
56 63
 	char    errorCode;         //!< error code from some commands
57 64
 	uint8_t antennaPower;      //!< antenna power level
58 65
 	uint8_t m_LastCMD;         //!< last sent command
59
-    
66
+
60 67
     public:
61 68
         static const uint8_t MIFARE_ULTRALIGHT = 1;
62 69
         static const uint8_t MIFARE_1K         = 2;
@@ -81,7 +88,7 @@ class SM130 {
81 88
         static const uint8_t CMD_HALT_TAG      = 0x93;
82 89
         static const uint8_t CMD_SET_BAUD      = 0x94;
83 90
         static const uint8_t CMD_SLEEP         = 0x96;
84
-    
91
+
85 92
          /**
86 93
          * Instanciates a SM130 object
87 94
          *
@@ -94,12 +101,12 @@ class SM130 {
94 101
          * SM130 object destructor
95 102
          */
96 103
         ~SM130 ();
97
-        
104
+
98 105
         /**
99 106
          * Get the firmware version string.
100 107
          */
101 108
         const char* getFirmwareVersion ();
102
-        
109
+
103 110
         /**
104 111
          * 	Checks for availability of a valid response packet.
105 112
          *
@@ -109,12 +116,12 @@ class SM130 {
109 116
          *	@returns	true if a valid response packet is available
110 117
          */
111 118
         uint8_t available ();
112
-        
119
+
113 120
         /**
114 121
          * Returns the packet length, excluding checksum
115 122
          */
116 123
         uint8_t getPacketLength () { return this->m_Data[0]; };
117
-        
124
+
118 125
         /**
119 126
          * Returns the last executed command
120 127
          */
@@ -131,14 +138,14 @@ class SM130 {
131 138
         std::string m_name;
132 139
         mraa_gpio_context m_resetPinCtx;
133 140
         mraa_gpio_context m_dataReadyPinCtx;
134
-        
141
+
135 142
         int m_i2cAddr;
136 143
         int m_bus;
137 144
         mraa_i2c_context m_i2Ctx;
138
-        
145
+
139 146
         void arrayToHex (char *s, uint8_t array[], uint8_t len);
140 147
         char toHex (uint8_t b);
141
-        
148
+
142 149
         uint16_t i2cRecievePacket (uint32_t len);
143 150
         mraa_result_t i2cTransmitPacket (uint32_t len);
144 151
         mraa_result_t sendCommand (uint8_t cmd);

+ 6
- 0
src/st7735/st7735.h Прегледај датотеку

@@ -493,11 +493,17 @@ const unsigned char font[] = {
493 493
     0x00, 0x00, 0x00, 0x00, 0x00
494 494
 };
495 495
 
496
+/**
497
+ * @brief st7735 lcd display library
498
+ * @defgroup st7735 libupm-st7735
499
+ */
500
+
496 501
 /**
497 502
  * @brief C++ API for ST7735 SPI LCD module
498 503
  *
499 504
  * This file defines the ST7735 C++ interface for libst7735
500 505
  *
506
+ * @ingroup st7735
501 507
  * @snippet st7735.cxx Interesting
502 508
  */
503 509
 class ST7735 : public GFX {

+ 6
- 0
src/stepmotor/stepmotor.h Прегледај датотеку

@@ -41,11 +41,17 @@
41 41
 
42 42
 namespace upm {
43 43
 
44
+/**
45
+ * @brief Stepper motor library
46
+ * @defgroup stepper libupm-stepper
47
+ */
48
+
44 49
 /**
45 50
  * @brief C++ API for StepMotor Drivers
46 51
  *
47 52
  * This file defines the stepmotor C++ interface for libstepmotor
48 53
  *
54
+ * @ingroup stepmotor
49 55
  * @snippet stepmotor.cxx Interesting
50 56
  */
51 57
 class StepMotor {

+ 6
- 0
src/tcs3414cs/tcs3414cs.h Прегледај датотеку

@@ -104,11 +104,17 @@ typedef struct {
104 104
     uint16_t clr;
105 105
 } tcs3414sc_rgb_t;
106 106
 
107
+/**
108
+ * @brief tcs3414cs color sensor library
109
+ * @defgroup tcs3414cs libupm-tcs3414cs
110
+ */
111
+
107 112
 /**
108 113
  * @brief C++ API for TCS3414CS chip (Color sensor)
109 114
  *
110 115
  * This file defines the TCS3414CS C++ interface for libtcs3414cs
111 116
  *
117
+ * @snippet tcs3414cs-example.cxx Interesting
112 118
  */
113 119
 class TCS3414CS {
114 120
     public:

+ 6
- 1
src/th02/th02.h Прегледај датотеку

@@ -49,13 +49,18 @@
49 49
 
50 50
 namespace upm {
51 51
 
52
+/**
53
+ * @brief th02 temperature & humidity sensor library
54
+ * @defgroup th02 libupm-th02
55
+ */
56
+
52 57
 /**
53 58
  * @brief C++ API for TH02 chip (Temperature and Humidity Sensor Pro)
54 59
  *
55 60
  * This file defines the TH02 C++ interface for libth02
56 61
  *
62
+ * @ingroup th02
57 63
  * @snippet th02-example.cxx Interesting
58
- *
59 64
  */
60 65
 class TH02 {
61 66
     public:

+ 6
- 0
src/tm1637/tm1637.h Прегледај датотеку

@@ -46,11 +46,17 @@
46 46
 
47 47
 namespace upm {
48 48
 
49
+/**
50
+ * @brief tm1637 7-segment screen library
51
+ * @defgroup tm1637 libupm-tm1637
52
+ */
53
+
49 54
 /**
50 55
  * @brief C++ API for Seven segments screen
51 56
  *
52 57
  * This file defines the TM1637 C++ interface for lib4digitdisplay
53 58
  *
59
+ * @ingroup tm1637
54 60
  * @snippet 4digitdisplay.cxx Interesting
55 61
  *
56 62
  *      A