Skip to content

Commit 52fde55

Browse files
authored
Merge pull request #4450 from deepikabhavnani/doxygen-template
Doxygen template
2 parents 1afb23b + c5ff982 commit 52fde55

27 files changed

+166
-48
lines changed

drivers/AnalogOut.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,25 @@ class AnalogOut {
103103
}
104104

105105
/** An operator shorthand for write()
106+
* \sa AnalogOut::write()
106107
*/
107108
AnalogOut& operator= (float percent) {
108109
// Underlying write call is thread safe
109110
write(percent);
110111
return *this;
111112
}
112113

114+
/** An operator shorthand for write()
115+
* \sa AnalogOut::write()
116+
*/
113117
AnalogOut& operator= (AnalogOut& rhs) {
114118
// Underlying write call is thread safe
115119
write(rhs.read());
116120
return *this;
117121
}
118122

119123
/** An operator shorthand for read()
124+
* \sa AnalogOut::read()
120125
*/
121126
operator float() {
122127
// Underlying read call is thread safe

drivers/BusIn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ class BusIn {
9595
}
9696

9797
/** A shorthand for read()
98+
* \sa DigitalIn::read()
9899
*/
99100
operator int();
100101

101102
/** Access to particular bit in random-iterator fashion
103+
* @param index Position of bit
102104
*/
103105
DigitalIn & operator[] (int index);
104106

drivers/BusInOut.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,18 @@ class BusInOut {
108108
}
109109

110110
/** A shorthand for write()
111-
*/
111+
* \sa BusInOut::write()
112+
*/
112113
BusInOut& operator= (int v);
113114
BusInOut& operator= (BusInOut& rhs);
114115

115116
/** Access to particular bit in random-iterator fashion
116-
*/
117+
* @param index Bit Position
118+
*/
117119
DigitalInOut& operator[] (int index);
118120

119121
/** A shorthand for read()
122+
* \sa BusInOut::read()
120123
*/
121124
operator int();
122125

drivers/BusOut.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,18 @@ class BusOut {
9292
}
9393

9494
/** A shorthand for write()
95+
* \sa BusOut::write()
9596
*/
9697
BusOut& operator= (int v);
9798
BusOut& operator= (BusOut& rhs);
9899

99100
/** Access to particular bit in random-iterator fashion
101+
* @param index Bit Position
100102
*/
101103
DigitalOut& operator[] (int index);
102104

103105
/** A shorthand for read()
106+
* \sa BusOut::read()
104107
*/
105108
operator int();
106109

drivers/CAN.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class CANMessage : public CAN_Message {
4646
}
4747

4848
/** Creates CAN message with specific content.
49+
*
50+
* @param _id Message ID
51+
* @param _data Mesaage Data
52+
* @param _len Message Data length
53+
* @param _type Type of Data: Use enum CANType for valid parameter values
54+
* @param _format Data Format: Use enum CANFormat for valid parameter values
4955
*/
5056
CANMessage(int _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard) {
5157
len = _len & 0xF;
@@ -56,6 +62,9 @@ class CANMessage : public CAN_Message {
5662
}
5763

5864
/** Creates CAN remote message.
65+
*
66+
* @param _id Message ID
67+
* @param _format Data Format: Use enum CANType for valid parameter values
5968
*/
6069
CANMessage(int _id, CANFormat _format = CANStandard) {
6170
len = 0;
@@ -197,11 +206,15 @@ class CAN {
197206
*/
198207
int filter(unsigned int id, unsigned int mask, CANFormat format = CANAny, int handle = 0);
199208

200-
/** Returns number of read errors to detect read overflow errors.
209+
/** Detects read errors - Used to detect read overflow errors.
210+
*
211+
* @returns number of read errors
201212
*/
202213
unsigned char rderror();
203214

204-
/** Returns number of write errors to detect write overflow errors.
215+
/** Detects write errors - Used to detect write overflow errors.
216+
*
217+
* @returns number of write errors
205218
*/
206219
unsigned char tderror();
207220

drivers/DigitalIn.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class DigitalIn {
102102
}
103103

104104
/** An operator shorthand for read()
105+
* \sa DigitalIn::read()
105106
*/
106107
operator int() {
107108
// Underlying read is thread safe

drivers/DigitalInOut.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,17 @@ class DigitalInOut {
112112
}
113113

114114
/** A shorthand for write()
115+
* \sa DigitalInOut::write()
115116
*/
116117
DigitalInOut& operator= (int value) {
117118
// Underlying write is thread safe
118119
write(value);
119120
return *this;
120121
}
121122

123+
/** A shorthand for write()
124+
* \sa DigitalInOut::write()
125+
*/
122126
DigitalInOut& operator= (DigitalInOut& rhs) {
123127
core_util_critical_section_enter();
124128
write(rhs.read());
@@ -127,6 +131,7 @@ class DigitalInOut {
127131
}
128132

129133
/** A shorthand for read()
134+
* \sa DigitalInOut::read()
130135
*/
131136
operator int() {
132137
// Underlying call is thread safe

drivers/DigitalOut.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,17 @@ class DigitalOut {
9898
}
9999

100100
/** A shorthand for write()
101+
* \sa DigitalOut::write()
101102
*/
102103
DigitalOut& operator= (int value) {
103104
// Underlying write is thread safe
104105
write(value);
105106
return *this;
106107
}
107108

109+
/** A shorthand for write()
110+
* \sa DigitalOut::write()
111+
*/
108112
DigitalOut& operator= (DigitalOut& rhs) {
109113
core_util_critical_section_enter();
110114
write(rhs.read());
@@ -113,6 +117,7 @@ class DigitalOut {
113117
}
114118

115119
/** A shorthand for read()
120+
* \sa DigitalOut::read()
116121
*/
117122
operator int() {
118123
// Underlying call is thread safe

drivers/Ethernet.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,16 @@ class Ethernet {
111111

112112
/** Read from an recevied ethernet packet.
113113
*
114-
* After receive returnd a number bigger than 0it is
114+
* After receive returned a number bigger than 0 it is
115115
* possible to read bytes from this packet.
116-
* Read will write up to size bytes into data.
117116
*
118-
* It is possible to use read multible times.
117+
* @param data Pointer to data packet
118+
* @param size Size of data to be read.
119+
* @returns The number of byte read.
120+
*
121+
* @note It is possible to use read multiple times.
119122
* Each time read will start reading after the last read byte before.
120123
*
121-
* @returns
122-
* The number of byte read.
123124
*/
124125
int read(char *data, int size);
125126

drivers/InterruptManager.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ namespace mbed {
5555
*/
5656
class InterruptManager {
5757
public:
58-
/** Return the only instance of this class
58+
/** Get the instance of InterruptManager Class
59+
*
60+
* @return the only instance of this class
5961
*/
6062
static InterruptManager* get();
6163

0 commit comments

Comments
 (0)