Skip to content

Commit c5ff982

Browse files
author
deepikabhavnani
committed
Enabled operator API documentation in drivers
1 parent 6478e88 commit c5ff982

File tree

10 files changed

+39
-2
lines changed

10 files changed

+39
-2
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/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/PortInOut.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,23 @@ class PortInOut {
8989
}
9090

9191
/** A shorthand for write()
92+
* \sa PortInOut::write()
9293
*/
9394
PortInOut& operator= (int value) {
9495
write(value);
9596
return *this;
9697
}
9798

99+
/** A shorthand for write()
100+
* \sa PortInOut::write()
101+
*/
98102
PortInOut& operator= (PortInOut& rhs) {
99103
write(rhs.read());
100104
return *this;
101105
}
102106

103107
/** A shorthand for read()
108+
* \sa PortInOut::read()
104109
*/
105110
operator int() {
106111
return read();

drivers/PortOut.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,23 @@ class PortOut {
8383
}
8484

8585
/** A shorthand for write()
86+
* \sa PortOut::write()
8687
*/
8788
PortOut& operator= (int value) {
8889
write(value);
8990
return *this;
9091
}
9192

93+
/** A shorthand for read()
94+
* \sa PortOut::read()
95+
*/
9296
PortOut& operator= (PortOut& rhs) {
9397
write(rhs.read());
9498
return *this;
9599
}
96100

97101
/** A shorthand for read()
102+
* \sa PortOut::read()
98103
*/
99104
operator int() {
100105
return read();

drivers/PwmOut.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class PwmOut {
151151
}
152152

153153
/** A operator shorthand for write()
154+
* \sa PwmOut::write()
154155
*/
155156
PwmOut& operator= (float value) {
156157
// Underlying call is thread safe
@@ -159,6 +160,7 @@ class PwmOut {
159160
}
160161

161162
/** A operator shorthand for write()
163+
* \sa PwmOut::write()
162164
*/
163165
PwmOut& operator= (PwmOut& rhs) {
164166
// Underlying call is thread safe
@@ -167,6 +169,7 @@ class PwmOut {
167169
}
168170

169171
/** An operator shorthand for read()
172+
* \sa PwmOut::read()
170173
*/
171174
operator float() {
172175
// Underlying call is thread safe

0 commit comments

Comments
 (0)