소스 검색

docs: added sensor categories to upm.h

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Mihai Tudor Panu 9 년 전
부모
커밋
2ff5dc16aa
3개의 변경된 파일295개의 추가작업 그리고 7개의 파일을 삭제
  1. 2
    1
      Doxyfile.in
  2. 5
    4
      DoxygenLayout.xml
  3. 288
    2
      src/upm.h

+ 2
- 1
Doxyfile.in 파일 보기

@@ -755,7 +755,8 @@ WARN_LOGFILE           =
755 755
 # spaces.
756 756
 # Note: If this tag is empty the current directory is searched.
757 757
 
758
-INPUT                  = @CMAKE_CURRENT_SOURCE_DIR@/src \
758
+INPUT                  = @CMAKE_CURRENT_SOURCE_DIR@/src/upm.h \
759
+                         @CMAKE_CURRENT_SOURCE_DIR@/src \
759 760
                          @CMAKE_CURRENT_SOURCE_DIR@/docs \
760 761
                          @CMAKE_CURRENT_SOURCE_DIR@/README.md
761 762
 

+ 5
- 4
DoxygenLayout.xml 파일 보기

@@ -6,15 +6,16 @@
6 6
     <tab type="pages" visible="yes" title="" intro=""/>
7 7
     <tab type="modules" visible="yes" title="UPM libraries" intro="Here is a
8 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
9
+    listed in these libraries are completely separate so you will need to link
10
+    against all those that you have used in your program. Use the hierarchical
11
+    tree to filter between different types of sensors."/> <tab
11 12
     type="namespaces" visible="yes" title="">
12 13
     <tab type="namespacelist" visible="yes" title="" intro=""/>
13 14
     <tab type="namespacemembers" visible="yes" title="" intro=""/>
14 15
     </tab>
15 16
     <tab type="classes" visible="yes" title="">
16 17
     <tab type="classlist" visible="yes" title="" intro=""/>
17
-    <tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/> 
18
+    <tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
18 19
     <tab type="hierarchy" visible="yes" title="" intro=""/>
19 20
     <tab type="classmembers" visible="yes" title="" intro=""/>
20 21
     </tab>
@@ -22,7 +23,7 @@
22 23
     <tab type="filelist" visible="yes" title="" intro=""/>
23 24
     <tab type="globals" visible="yes" title="" intro=""/>
24 25
     </tab>
25
-    <tab type="examples" visible="yes" title="" intro=""/>  
26
+    <tab type="examples" visible="yes" title="" intro=""/>
26 27
   </navindex>
27 28
 
28 29
   <!-- Layout definition for a class page -->

+ 288
- 2
src/upm.h 파일 보기

@@ -1,5 +1,6 @@
1 1
 /*
2 2
  * Author: Brendan Le Foll <brendan.le.foll@intel.com>
3
+ * Contributions: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
3 4
  * Copyright (c) 2014 Intel Corporation.
4 5
  *
5 6
  * Permission is hereby granted, free of charge, to any person obtaining
@@ -31,27 +32,312 @@
31 32
  */
32 33
 /// @endcond DEV
33 34
 
35
+////////////////////////////////////////////////////////////////// @cond HEA
36
+/// Main group place holders.
37
+////////////////////////////////////////////////////////////////// @endcond HEA
38
+
39
+/**
40
+ * @brief Sensors grouped by category
41
+ * @defgroup bycat Sensor Categories
42
+ */
43
+
44
+/**
45
+ * @brief Sensors grouped by connection type
46
+ * @defgroup bycon Connection Type
47
+ */
48
+
49
+/**
50
+ * @brief Sensors grouped by manufacturer
51
+ * @defgroup byman Manufacturer
52
+ */
53
+
54
+/**
55
+ * @brief Sensors grouped into starter kits
56
+ * @defgroup bykit Starter Kits
57
+ */
58
+
59
+////////////////////////////////////////////////////////////////// @cond CAT
60
+/// Groups for the various Sensor Categories.
61
+////////////////////////////////////////////////////////////////// @endcond CAT
62
+
63
+/**
64
+ * @brief Measure acceleration & tilt or collision detection
65
+ * @defgroup accelerometer Accelerometer
66
+ * @ingroup bycat
67
+ */
68
+
69
+/**
70
+ * @brief Sensors with a variable voltage output
71
+ * @defgroup ainput Analog Inputs
72
+ * @ingroup bycat
73
+ */
74
+
75
+/**
76
+ * @brief Measure pressure and atmospheric conditions
77
+ * @defgroup pressure Atmospheric Pressure
78
+ * @ingroup bycat
79
+ */
80
+
81
+/**
82
+ * @brief Button, Switch or Toggle
83
+ * @defgroup button Button
84
+ * @ingroup bycat
85
+ */
86
+
87
+/**
88
+ * @brief Light sensors with special function: Color recognition
89
+ * @defgroup color Color Sensor
90
+ * @ingroup bycat
91
+ */
92
+
93
+/**
94
+ * @brief Measure magnetic field to give rotation or heading
95
+ * @defgroup compass Compass/Gyro/Magnometers
96
+ * @ingroup bycat
97
+ */
98
+
99
+/**
100
+ * @brief Resistive digital to analog converters
101
+ * @defgroup digipot Digital Potentiometer
102
+ * @ingroup bycat
103
+ */
104
+
105
+/**
106
+ * @brief TFT, LCD, LED display elements
107
+ * @defgroup display Displays
108
+ * @ingroup bycat
109
+ */
110
+
111
+/**
112
+ * @brief Measure electric current
113
+ * @defgroup electric Electricity
114
+ * @ingroup bycat
115
+ */
116
+
117
+/**
118
+ * @brief Measure bending or detect vibration
119
+ * @defgroup flex Flex/Force
120
+ * @ingroup bycat
121
+ */
122
+
123
+/**
124
+ * @brief Measure substance concentrations in gases
125
+ * @defgroup gaseous Gas
126
+ * @ingroup bycat
127
+ */
128
+
129
+/**
130
+ * @brief Provide positioning capabilities
131
+ * @defgroup gps GPS
132
+ * @ingroup bycat
133
+ */
134
+
135
+/**
136
+ * @brief LEDs, LED strips, LED matrix displays & controllers
137
+ * @defgroup led LEDs
138
+ * @ingroup bycat
139
+ */
140
+
141
+/**
142
+ * @brief Measure light intensity or distances
143
+ * @defgroup light Light/Proximity/IR
144
+ * @ingroup bycat
145
+ */
146
+
147
+/**
148
+ * @brief Measure liquid flow rates or levels
149
+ * @defgroup liquid Liquid Flow
150
+ * @ingroup bycat
151
+ */
152
+
153
+/**
154
+ * @brief Sensors with specific medical application
155
+ * @defgroup medical Medical
156
+ * @ingroup bycat
157
+ */
158
+
159
+/**
160
+ * @brief Various motors & controllers to get things moving
161
+ * @defgroup motor Motor
162
+ * @ingroup bycat
163
+ */
164
+
165
+/**
166
+ * @brief Other types of supported sensors
167
+ * @defgroup other Other
168
+ * @ingroup bycat
169
+ */
170
+
171
+/**
172
+ * @brief Different low and high power relays
173
+ * @defgroup relay Relay
174
+ * @ingroup bycat
175
+ */
176
+
177
+/**
178
+ * @brief Wireless sensors using RFID tags
179
+ * @defgroup rfid RFID
180
+ * @ingroup bycat
181
+ */
182
+
183
+/**
184
+ * @brief Various servo motors & controllers
185
+ * @defgroup servos Servo
186
+ * @ingroup bycat
187
+ */
188
+
189
+/**
190
+ * @brief Provide sound recording or playback
191
+ * @defgroup sound Sound
192
+ * @ingroup bycat
193
+ */
194
+
195
+/**
196
+ * @brief Measure temperature & humidity
197
+ * @defgroup temp Temperature/Humidity
198
+ * @ingroup bycat
199
+ */
200
+
201
+/**
202
+ * @brief Sensors using serial communication
203
+ * @defgroup serial Serial
204
+ * @ingroup bycat
205
+ */
206
+
207
+/**
208
+ * @brief Real time clocks & time measurement
209
+ * @defgroup time Time
210
+ * @ingroup bycat
211
+ */
212
+
213
+/**
214
+ * @brief Capacitive touch sensors
215
+ * @defgroup touch Touch Sensor
216
+ * @ingroup bycat
217
+ */
218
+
219
+/**
220
+ * @brief Provide WiFi, Bluetooth, RF communication
221
+ * @defgroup wifi Wireless Communication
222
+ * @ingroup bycat
223
+ */
224
+
225
+////////////////////////////////////////////////////////////////// @cond CON
226
+/// Groups for the various Connection Types.
227
+////////////////////////////////////////////////////////////////// @endcond CON
228
+
34 229
 /**
35 230
  * @brief Sensors requiring an ADC value to be read
36
- * @defgroup analog Analog Sensors
231
+ * @defgroup analog AIO
232
+ * @ingroup bycon
37 233
  */
38 234
 
39 235
 /**
40 236
  * @brief Modules using the i2c bus
41
- * @defgroup i2c I2c
237
+ * @defgroup i2c I2C
238
+ * @ingroup bycon
42 239
  */
43 240
 
44 241
 /**
45 242
  * @brief Modules using the SPI bus
46 243
  * @defgroup spi SPI
244
+ * @ingroup bycon
47 245
  */
48 246
 
49 247
 /**
50 248
  * @brief Modules using GPIOs directly
51 249
  * @defgroup gpio GPIO
250
+ * @ingroup bycon
52 251
  */
53 252
 
54 253
 /**
55 254
  * @brief Modules using a PWM capable GPIO pin
56 255
  * @defgroup pwm PWM
256
+ * @ingroup bycon
257
+ */
258
+
259
+/**
260
+ * @brief Modules using a PWM capable GPIO pin
261
+ * @defgroup uart UART
262
+ * @ingroup bycon
263
+ */
264
+
265
+////////////////////////////////////////////////////////////////// @cond MAN
266
+/// Groups for the various Manufacturers.
267
+////////////////////////////////////////////////////////////////// @endcond MAN
268
+
269
+/**
270
+ * @brief Adafruit Industries
271
+ * @defgroup adafruit Adafruit
272
+ * @ingroup byman
273
+ */
274
+
275
+/**
276
+ * @brief Amazon.com
277
+ * @defgroup amazon Amazon
278
+ * @ingroup byman
279
+ */
280
+
281
+/**
282
+ * @brief Banggood.com
283
+ * @defgroup banggood Banggood
284
+ * @ingroup byman
285
+ */
286
+
287
+/**
288
+ * @brief EpicTinker
289
+ * @defgroup epict EpicTinker
290
+ * @ingroup byman
291
+ */
292
+
293
+/**
294
+ * @brief Generic brands
295
+ * @defgroup generic Generic
296
+ * @ingroup byman
297
+ */
298
+
299
+/**
300
+ * @brief Honeywell
301
+ * @defgroup honeywell Honeywell
302
+ * @ingroup byman
303
+ */
304
+
305
+/**
306
+ * @brief Maxim Integrated
307
+ * @defgroup maxim Maxim Integrated
308
+ * @ingroup byman
309
+ */
310
+
311
+/**
312
+ * @brief Newegg.com
313
+ * @defgroup newegg Newegg
314
+ * @ingroup byman
315
+ */
316
+
317
+/**
318
+ * @brief SeeedStudio - Grove
319
+ * @defgroup seeed SeeedStudio
320
+ * @ingroup byman
321
+ */
322
+
323
+/**
324
+ * @brief Sparkfun
325
+ * @defgroup sparkfun Sparkfun
326
+ * @ingroup byman
327
+ */
328
+
329
+/**
330
+ * @brief Texas Instruments
331
+ * @defgroup ti Texas Instruments
332
+ * @ingroup byman
333
+ */
334
+
335
+////////////////////////////////////////////////////////////////// @cond KIT
336
+/// Groups for the various Starter Kits.
337
+////////////////////////////////////////////////////////////////// @endcond KIT
338
+
339
+/**
340
+ * @brief Grove Starter Kit
341
+ * @defgroup grovesk Grove Starter Kit
342
+ * @ingroup bykit
57 343
  */