Enabled operator API documentation in drivers

pull/4450/head
deepikabhavnani 2017-06-07 23:30:43 -05:00 committed by Deepika
parent 6478e88808
commit c5ff982fc3
10 changed files with 39 additions and 2 deletions

View File

@ -103,6 +103,7 @@ public:
} }
/** An operator shorthand for write() /** An operator shorthand for write()
* \sa AnalogOut::write()
*/ */
AnalogOut& operator= (float percent) { AnalogOut& operator= (float percent) {
// Underlying write call is thread safe // Underlying write call is thread safe
@ -110,6 +111,9 @@ public:
return *this; return *this;
} }
/** An operator shorthand for write()
* \sa AnalogOut::write()
*/
AnalogOut& operator= (AnalogOut& rhs) { AnalogOut& operator= (AnalogOut& rhs) {
// Underlying write call is thread safe // Underlying write call is thread safe
write(rhs.read()); write(rhs.read());
@ -117,6 +121,7 @@ public:
} }
/** An operator shorthand for read() /** An operator shorthand for read()
* \sa AnalogOut::read()
*/ */
operator float() { operator float() {
// Underlying read call is thread safe // Underlying read call is thread safe

View File

@ -95,10 +95,12 @@ public:
} }
/** A shorthand for read() /** A shorthand for read()
* \sa DigitalIn::read()
*/ */
operator int(); operator int();
/** Access to particular bit in random-iterator fashion /** Access to particular bit in random-iterator fashion
* @param index Position of bit
*/ */
DigitalIn & operator[] (int index); DigitalIn & operator[] (int index);

View File

@ -108,15 +108,18 @@ public:
} }
/** A shorthand for write() /** A shorthand for write()
* \sa BusInOut::write()
*/ */
BusInOut& operator= (int v); BusInOut& operator= (int v);
BusInOut& operator= (BusInOut& rhs); BusInOut& operator= (BusInOut& rhs);
/** Access to particular bit in random-iterator fashion /** Access to particular bit in random-iterator fashion
* @param index Bit Position
*/ */
DigitalInOut& operator[] (int index); DigitalInOut& operator[] (int index);
/** A shorthand for read() /** A shorthand for read()
* \sa BusInOut::read()
*/ */
operator int(); operator int();

View File

@ -92,15 +92,18 @@ public:
} }
/** A shorthand for write() /** A shorthand for write()
* \sa BusOut::write()
*/ */
BusOut& operator= (int v); BusOut& operator= (int v);
BusOut& operator= (BusOut& rhs); BusOut& operator= (BusOut& rhs);
/** Access to particular bit in random-iterator fashion /** Access to particular bit in random-iterator fashion
* @param index Bit Position
*/ */
DigitalOut& operator[] (int index); DigitalOut& operator[] (int index);
/** A shorthand for read() /** A shorthand for read()
* \sa BusOut::read()
*/ */
operator int(); operator int();

View File

@ -102,6 +102,7 @@ public:
} }
/** An operator shorthand for read() /** An operator shorthand for read()
* \sa DigitalIn::read()
*/ */
operator int() { operator int() {
// Underlying read is thread safe // Underlying read is thread safe

View File

@ -112,6 +112,7 @@ public:
} }
/** A shorthand for write() /** A shorthand for write()
* \sa DigitalInOut::write()
*/ */
DigitalInOut& operator= (int value) { DigitalInOut& operator= (int value) {
// Underlying write is thread safe // Underlying write is thread safe
@ -119,6 +120,9 @@ public:
return *this; return *this;
} }
/** A shorthand for write()
* \sa DigitalInOut::write()
*/
DigitalInOut& operator= (DigitalInOut& rhs) { DigitalInOut& operator= (DigitalInOut& rhs) {
core_util_critical_section_enter(); core_util_critical_section_enter();
write(rhs.read()); write(rhs.read());
@ -127,6 +131,7 @@ public:
} }
/** A shorthand for read() /** A shorthand for read()
* \sa DigitalInOut::read()
*/ */
operator int() { operator int() {
// Underlying call is thread safe // Underlying call is thread safe

View File

@ -98,6 +98,7 @@ public:
} }
/** A shorthand for write() /** A shorthand for write()
* \sa DigitalOut::write()
*/ */
DigitalOut& operator= (int value) { DigitalOut& operator= (int value) {
// Underlying write is thread safe // Underlying write is thread safe
@ -105,6 +106,9 @@ public:
return *this; return *this;
} }
/** A shorthand for write()
* \sa DigitalOut::write()
*/
DigitalOut& operator= (DigitalOut& rhs) { DigitalOut& operator= (DigitalOut& rhs) {
core_util_critical_section_enter(); core_util_critical_section_enter();
write(rhs.read()); write(rhs.read());
@ -113,6 +117,7 @@ public:
} }
/** A shorthand for read() /** A shorthand for read()
* \sa DigitalOut::read()
*/ */
operator int() { operator int() {
// Underlying call is thread safe // Underlying call is thread safe

View File

@ -89,18 +89,23 @@ public:
} }
/** A shorthand for write() /** A shorthand for write()
* \sa PortInOut::write()
*/ */
PortInOut& operator= (int value) { PortInOut& operator= (int value) {
write(value); write(value);
return *this; return *this;
} }
/** A shorthand for write()
* \sa PortInOut::write()
*/
PortInOut& operator= (PortInOut& rhs) { PortInOut& operator= (PortInOut& rhs) {
write(rhs.read()); write(rhs.read());
return *this; return *this;
} }
/** A shorthand for read() /** A shorthand for read()
* \sa PortInOut::read()
*/ */
operator int() { operator int() {
return read(); return read();

View File

@ -83,18 +83,23 @@ public:
} }
/** A shorthand for write() /** A shorthand for write()
* \sa PortOut::write()
*/ */
PortOut& operator= (int value) { PortOut& operator= (int value) {
write(value); write(value);
return *this; return *this;
} }
/** A shorthand for read()
* \sa PortOut::read()
*/
PortOut& operator= (PortOut& rhs) { PortOut& operator= (PortOut& rhs) {
write(rhs.read()); write(rhs.read());
return *this; return *this;
} }
/** A shorthand for read() /** A shorthand for read()
* \sa PortOut::read()
*/ */
operator int() { operator int() {
return read(); return read();

View File

@ -151,6 +151,7 @@ public:
} }
/** A operator shorthand for write() /** A operator shorthand for write()
* \sa PwmOut::write()
*/ */
PwmOut& operator= (float value) { PwmOut& operator= (float value) {
// Underlying call is thread safe // Underlying call is thread safe
@ -159,6 +160,7 @@ public:
} }
/** A operator shorthand for write() /** A operator shorthand for write()
* \sa PwmOut::write()
*/ */
PwmOut& operator= (PwmOut& rhs) { PwmOut& operator= (PwmOut& rhs) {
// Underlying call is thread safe // Underlying call is thread safe
@ -167,6 +169,7 @@ public:
} }
/** An operator shorthand for read() /** An operator shorthand for read()
* \sa PwmOut::read()
*/ */
operator float() { operator float() {
// Underlying call is thread safe // Underlying call is thread safe