Skip to content

Commit df85e8e

Browse files
hugueskambaevedon
authored andcommitted
Mark Ethernet.h methods as Deprecated in Doxygen documentation (#11146)
1 parent f0f408b commit df85e8e

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

drivers/Ethernet.h

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ class
7575

7676
public:
7777

78-
/** Initialize the ethernet interface.
78+
/**
79+
* @deprecated
80+
* Initialize the ethernet interface.
7981
*/
8082
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
8183
Ethernet();
8284

83-
/** Powers the hardware down.
85+
/**
86+
* @deprecated
87+
* Powers the hardware down.
8488
*/
8589
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
8690
virtual ~Ethernet();
@@ -93,7 +97,9 @@ class
9397
FullDuplex100
9498
};
9599

96-
/** Writes into an outgoing ethernet packet.
100+
/**
101+
* @deprecated
102+
* Writes into an outgoing ethernet packet.
97103
*
98104
* It will append size bytes of data to the previously written bytes.
99105
*
@@ -106,7 +112,9 @@ class
106112
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
107113
int write(const char *data, int size);
108114

109-
/** Send an outgoing ethernet packet.
115+
/**
116+
* @deprecated
117+
* Send an outgoing ethernet packet.
110118
*
111119
* After filling in the data in an ethernet packet it must be send.
112120
* Send will provide a new packet to write to.
@@ -118,7 +126,9 @@ class
118126
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
119127
int send();
120128

121-
/** Receives an arrived ethernet packet.
129+
/**
130+
* @deprecated
131+
* Receives an arrived ethernet packet.
122132
*
123133
* Receiving an ethernet packet will drop the last received ethernet packet
124134
* and make a new ethernet packet ready to read.
@@ -131,7 +141,9 @@ class
131141
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
132142
int receive();
133143

134-
/** Read from an received ethernet packet.
144+
/**
145+
* @deprecated
146+
* Read from an received ethernet packet.
135147
*
136148
* After receive returned a number bigger than 0 it is
137149
* possible to read bytes from this packet.
@@ -147,14 +159,18 @@ class
147159
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
148160
int read(char *data, int size);
149161

150-
/** Gives the ethernet address of the mbed.
162+
/**
163+
* @deprecated
164+
* Gives the ethernet address of the mbed.
151165
*
152166
* @param mac Must be a pointer to a 6 byte char array to copy the ethernet address in.
153167
*/
154168
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
155169
void address(char *mac);
156170

157-
/** Returns if an ethernet link is present or not. It takes a while after Ethernet initialization to show up.
171+
/**
172+
* @deprecated
173+
* Returns if an ethernet link is present or not. It takes a while after Ethernet initialization to show up.
158174
*
159175
* @returns
160176
* 0 if no ethernet link is present,
@@ -180,7 +196,9 @@ class
180196
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
181197
int link();
182198

183-
/** Sets the speed and duplex parameters of an ethernet link
199+
/**
200+
* @deprecated
201+
* Sets the speed and duplex parameters of an ethernet link
184202
*
185203
* - AutoNegotiate Auto negotiate speed and duplex
186204
* - HalfDuplex10 10 Mbit, half duplex

0 commit comments

Comments
 (0)