Skip to content

Commit aabecf6

Browse files
theotherjimmysg-
authored andcommitted
Remove doxygen warnings in nsapi
1 parent a09db78 commit aabecf6

File tree

8 files changed

+38
-51
lines changed

8 files changed

+38
-51
lines changed

features/netsocket/CellularInterface.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/** \addtogroup netsocket */
2-
/** @{*/
31
/* CellularInterface
42
* Copyright (c) 2015 ARM Limited
53
*
@@ -25,6 +23,7 @@
2523
/** CellularInterface class
2624
*
2725
* Common interface that is shared between ethernet hardware
26+
* @addtogroup netsocket
2827
*/
2928
class CellularInterface : public NetworkInterface
3029
{
@@ -36,8 +35,8 @@ class CellularInterface : public NetworkInterface
3635
/** Set the cellular network APN and credentials
3736
*
3837
* @param apn Optional name of the network to connect to
39-
* @param user Optional username for the APN
40-
* @param pass Optional password fot the APN
38+
* @param username Optional username for the APN
39+
* @param password Optional password fot the APN
4140
* @return 0 on success, negative error code on failure
4241
*/
4342
virtual nsapi_error_t set_credentials(const char *apn,
@@ -70,5 +69,3 @@ class CellularInterface : public NetworkInterface
7069

7170

7271
#endif
73-
74-
/** @}*/

features/netsocket/NetworkInterface.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
/** \addtogroup netsocket */
3-
/** @{*/
41
/* NetworkStack
52
* Copyright (c) 2015 ARM Limited
63
*
@@ -30,6 +27,7 @@ class NetworkStack;
3027
/** NetworkInterface class
3128
*
3229
* Common interface that is shared between network devices
30+
* @addtogroup netsocket
3331
*/
3432
class NetworkInterface {
3533
public:
@@ -73,10 +71,10 @@ class NetworkInterface {
7371
* Implicitly disables DHCP, which can be enabled in set_dhcp.
7472
* Requires that the network is disconnected.
7573
*
76-
* @param address Null-terminated representation of the local IP address
77-
* @param netmask Null-terminated representation of the local network mask
78-
* @param gateway Null-terminated representation of the local gateway
79-
* @return 0 on success, negative error code on failure
74+
* @param ip_address Null-terminated representation of the local IP address
75+
* @param netmask Null-terminated representation of the local network mask
76+
* @param gateway Null-terminated representation of the local gateway
77+
* @return 0 on success, negative error code on failure
8078
*/
8179
virtual nsapi_error_t set_network(
8280
const char *ip_address, const char *netmask, const char *gateway);
@@ -123,7 +121,7 @@ class NetworkInterface {
123121

124122
/** Add a domain name server to list of servers to query
125123
*
126-
* @param addr Destination for the host address
124+
* @param address Destination for the host address
127125
* @return 0 on success, negative error code on failure
128126
*/
129127
virtual nsapi_error_t add_dns_server(const SocketAddress &address);
@@ -146,5 +144,3 @@ class NetworkInterface {
146144

147145

148146
#endif
149-
150-
/** @}*/

features/netsocket/NetworkStack.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
/** \addtogroup netsocket */
3-
/** @{*/
42
/* NetworkStack
53
* Copyright (c) 2015 ARM Limited
64
*
@@ -31,6 +29,7 @@
3129
* can connect to a network over IP. By implementing the
3230
* NetworkStack, a network stack can be used as a target
3331
* for instantiating network sockets.
32+
* @addtogroup netsocket
3433
*/
3534
class NetworkStack
3635
{
@@ -63,7 +62,7 @@ class NetworkStack
6362

6463
/** Add a domain name server to list of servers to query
6564
*
66-
* @param addr Destination for the host address
65+
* @param address Destination for the host address
6766
* @return 0 on success, negative error code on failure
6867
*/
6968
virtual nsapi_error_t add_dns_server(const SocketAddress &address);
@@ -246,7 +245,7 @@ class NetworkStack
246245
*
247246
* @param handle Socket handle
248247
* @param address Destination for the source address or NULL
249-
* @param data Destination buffer for data received from the host
248+
* @param buffer Destination buffer for data received from the host
250249
* @param size Size of the buffer in bytes
251250
* @return Number of received bytes on success, negative error
252251
* code on failure
@@ -322,5 +321,3 @@ NetworkStack *nsapi_create_stack(IF *iface)
322321

323322

324323
#endif
325-
326-
/** @}*/

features/netsocket/SocketAddress.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
/** \addtogroup netsocket */
3-
/** @{*/
42
/* SocketAddress
53
* Copyright (c) 2015 ARM Limited
64
*
@@ -31,6 +29,7 @@ class NetworkInterface;
3129
/** SocketAddress class
3230
*
3331
* Representation of an IP address and port pair.
32+
* @addtogroup netsocket
3433
*/
3534
class SocketAddress {
3635
public:
@@ -66,7 +65,7 @@ class SocketAddress {
6665

6766
/** Create a SocketAddress from an IP address and port
6867
*
69-
* @param host Null-terminated representation of the IP address
68+
* @param addr Null-terminated representation of the IP address
7069
* @param port Optional 16-bit port
7170
*/
7271
SocketAddress(const char *addr, uint16_t port = 0);
@@ -81,7 +80,7 @@ class SocketAddress {
8180

8281
/** Create a SocketAddress from another SocketAddress
8382
*
84-
* @param address SocketAddress to copy
83+
* @param addr SocketAddress to copy
8584
*/
8685
SocketAddress(const SocketAddress &addr);
8786

features/netsocket/TCPServer.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
/** \addtogroup netsocket */
3-
/** @{*/
42
/* TCPServer
53
* Copyright (c) 2015 ARM Limited
64
*
@@ -28,7 +26,8 @@
2826

2927

3028
/** TCP socket server
31-
*/
29+
* @addtogroup netsocket
30+
*/
3231
class TCPServer : public Socket {
3332
public:
3433
/** Create an uninitialized socket
@@ -78,9 +77,9 @@ class TCPServer : public Socket {
7877
* non-blocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
7978
* immediately.
8079
*
81-
* @param socket TCPSocket instance that will handle the incoming connection.
82-
* @param address Destination for the remote address or NULL
83-
* @return 0 on success, negative error code on failure
80+
* @param connection TCPSocket instance that will handle the incoming connection.
81+
* @param address Destination for the remote address or NULL
82+
* @return 0 on success, negative error code on failure
8483
*/
8584
nsapi_error_t accept(TCPSocket *connection, SocketAddress *address = NULL);
8685

@@ -94,5 +93,3 @@ class TCPServer : public Socket {
9493

9594

9695
#endif
97-
98-
/** @}*/

features/netsocket/WiFiInterface.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
/** \addtogroup netsocket */
3-
/** @{*/
42
/* WiFiInterface
53
* Copyright (c) 2015 - 2016 ARM Limited
64
*
@@ -27,6 +25,7 @@
2725
/** WiFiInterface class
2826
*
2927
* Common interface that is shared between WiFi devices
28+
* @addtogroup netsocket
3029
*/
3130
class WiFiInterface: public NetworkInterface
3231
{
@@ -91,12 +90,12 @@ class WiFiInterface: public NetworkInterface
9190
/** Scan for available networks
9291
*
9392
* This function will block. If the @a count is 0, function will only return count of available networks, so that
94-
* user can allocated necessary memory. If the @count is grater than 0 and the @a ap is not NULL it'll be populated
95-
* with discovered networks up to value of @a count.
93+
* user can allocated necessary memory. If the \p count is grater than 0 and the a \p res is not NULL it'll be populated
94+
* with discovered networks up to value of \p count.
9695
*
97-
* @param ap Pointer to allocated array to store discovered AP
96+
* @param res Pointer to allocated array to store discovered AP
9897
* @param count Size of allocated @a res array, or 0 to only count available AP
99-
* @return Number of entries in @a, or if @a count was 0 number of available networks,
98+
* @return Number of entries in \p count, or if \p count was 0 number of available networks,
10099
* negative on error see @a nsapi_error
101100
*/
102101
virtual nsapi_size_or_error_t scan(WiFiAccessPoint *res, nsapi_size_t count) = 0;

features/netsocket/nsapi_ppp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,6 @@ const char *nsapi_ppp_get_gw_addr(FileHandle *stream);
8383

8484
} //namespace mbed
8585

86+
/** @} */
87+
8688
#endif /* NSAPI_PPP_H_ */

features/netsocket/nsapi_types.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
* Valid error codes have negative values and may
3333
* be returned by any network operation.
3434
*
35-
* @enum nsapi_error_t
35+
* @enum nsapi_error
3636
*/
3737
enum nsapi_error {
3838
NSAPI_ERROR_OK = 0, /*!< no error */
@@ -125,7 +125,7 @@ typedef enum nsapi_security {
125125
*
126126
* The IP version specifies the type of an IP address.
127127
*
128-
* @enum nsapi_version_t
128+
* @enum nsapi_version
129129
*/
130130
typedef enum nsapi_version {
131131
NSAPI_UNSPEC, /*!< Address is unspecified */
@@ -160,51 +160,51 @@ typedef void *nsapi_socket_t;
160160
* The socket protocol specifies a particular protocol to
161161
* be used with a newly created socket.
162162
*
163-
* @enum nsapi_protocol_t
163+
* @enum nsapi_protocol
164164
*/
165165
typedef enum nsapi_protocol {
166166
NSAPI_TCP, /*!< Socket is of TCP type */
167167
NSAPI_UDP, /*!< Socket is of UDP type */
168168
} nsapi_protocol_t;
169169

170-
/* Enum of standardized stack option levels
170+
/** Enum of standardized stack option levels
171171
* for use with NetworkStack::setstackopt and getstackopt.
172172
*
173-
* @enum nsapi_stack_level_t
173+
* @enum nsapi_stack_level
174174
*/
175175
typedef enum nsapi_stack_level {
176176
NSAPI_STACK = 5000, /*!< Stack option level - see nsapi_stack_option_t for options */
177177
} nsapi_stack_level_t;
178178

179-
/* Enum of standardized stack option names for level NSAPI_STACK
179+
/** Enum of standardized stack option names for level NSAPI_STACK
180180
* of NetworkStack::setstackopt and getstackopt.
181181
*
182182
* These options may not be supported on all stacks, in which
183183
* case NSAPI_ERROR_UNSUPPORTED may be returned.
184184
*
185-
* @enum nsapi_stack_option_t
185+
* @enum nsapi_stack_option
186186
*/
187187
typedef enum nsapi_stack_option {
188188
NSAPI_IPV4_MRU, /*!< Sets/gets size of largest IPv4 fragmented datagram to reassemble */
189189
NSAPI_IPV6_MRU, /*!< Sets/gets size of largest IPv6 fragmented datagram to reassemble */
190190
} nsapi_stack_option_t;
191191

192-
/* Enum of standardized socket option levels
192+
/** Enum of standardized socket option levels
193193
* for use with Socket::setsockopt and getsockopt.
194194
*
195-
* @enum nsapi_socket_level_t
195+
* @enum nsapi_socket_level
196196
*/
197197
typedef enum nsapi_socket_level {
198198
NSAPI_SOCKET = 7000, /*!< Socket option level - see nsapi_socket_option_t for options */
199199
} nsapi_socket_level_t;
200200

201-
/* Enum of standardized socket option names for level NSAPI_SOCKET
201+
/** Enum of standardized socket option names for level NSAPI_SOCKET
202202
* of Socket::setsockopt and getsockopt.
203203
*
204204
* These options may not be supported on all stacks, in which
205205
* case NSAPI_ERROR_UNSUPPORTED may be returned.
206206
*
207-
* @enum nsapi_socket_option_t
207+
* @enum nsapi_socket_option
208208
*/
209209
typedef enum nsapi_socket_option {
210210
NSAPI_REUSEADDR, /*!< Allow bind to reuse local addresses */

0 commit comments

Comments
 (0)