Skip to content

Commit 2fda1c2

Browse files
paul-szczepanek-armCruz Monrreal II
authored andcommitted
doxygen fixes
1 parent ea7be7c commit 2fda1c2

File tree

6 files changed

+161
-148
lines changed

6 files changed

+161
-148
lines changed

features/netsocket/CellularBase.h

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,105 +18,102 @@
1818

1919
#include "netsocket/NetworkInterface.h"
2020

21-
/** CellularBase class
22-
*
23-
* Common interface that is shared between Cellular interfaces
21+
/** Common interface that is shared between Cellular interfaces
22+
* @addtogroup netsocket
2423
*/
2524
class CellularBase: public NetworkInterface {
2625

2726
public:
28-
2927
/** Get the default Cellular interface.
3028
*
3129
* This is provided as a weak method so applications can override.
3230
* Default behaviour is to get the target's default interface, if
3331
* any.
3432
*
35-
* @return pointer to interface, if any
33+
* @return pointer to interface, if any.
3634
*/
37-
3835
static CellularBase *get_default_instance();
3936

40-
/** Set the Cellular network credentials
37+
/** Set the Cellular network credentials.
4138
*
4239
* Please check documentation of connect() for default behaviour of APN settings.
4340
*
44-
* @param apn Access point name
45-
* @param uname optionally, Username
46-
* @param pwd optionally, password
41+
* @param apn Access point name.
42+
* @param uname Username (optional).
43+
* @param pwd Password (optional).
4744
*/
4845
virtual void set_credentials(const char *apn, const char *uname = 0,
4946
const char *pwd = 0) = 0;
5047

51-
/** Set the pin code for SIM card
48+
/** Set the pin code for SIM card.
5249
*
53-
* @param sim_pin PIN for the SIM card
50+
* @param sim_pin PIN for the SIM card.
5451
*/
5552
virtual void set_sim_pin(const char *sim_pin) = 0;
5653

57-
/** Start the interface
54+
/** Attempt to connect to a Cellular network with a pin and credentials.
5855
*
59-
* Attempts to connect to a Cellular network.
60-
*
61-
* @param sim_pin PIN for the SIM card
62-
* @param apn optionally, access point name
63-
* @param uname optionally, Username
64-
* @param pwd optionally, password
65-
* @return NSAPI_ERROR_OK on success, or negative error code on failure
56+
* @param sim_pin PIN for the SIM card.
57+
* @param apn Access point name (optional).
58+
* @param uname Username (optional).
59+
* @param pwd Password (optional).
60+
* @return NSAPI_ERROR_OK on success, or negative error code on failure.
6661
*/
6762
virtual nsapi_error_t connect(const char *sim_pin, const char *apn = 0,
6863
const char *uname = 0,
6964
const char *pwd = 0) = 0;
7065

71-
/** Start the interface
66+
/** Attempt to connect to a Cellular network.
7267
*
73-
* Attempts to connect to a Cellular network.
74-
* If the SIM requires a PIN, and it is not set/invalid, NSAPI_ERROR_AUTH_ERROR is returned.
68+
* If the SIM requires a PIN, and it is invalid or is not set, NSAPI_ERROR_AUTH_ERROR is returned.
7569
*
76-
* @return NSAPI_ERROR_OK on success, or negative error code on failure
70+
* @return NSAPI_ERROR_OK on success, or negative error code on failure.
7771
*/
7872
virtual nsapi_error_t connect() = 0;
7973

80-
/** Stop the interface
74+
/** Stop the interface.
8175
*
82-
* @return 0 on success, or error code on failure
76+
* @return NSAPI_ERROR_OK on success, or error code on failure.
8377
*/
8478
virtual nsapi_error_t disconnect() = 0;
8579

86-
/** Check if the connection is currently established or not
80+
/** Check if the connection is currently established or not.
8781
*
88-
* @return true/false If the cellular module have successfully acquired a carrier and is
89-
* connected to an external packet data network using PPP, isConnected()
90-
* API returns true and false otherwise.
82+
* @return True if the cellular module have successfully acquired a carrier and is
83+
* connected to an external packet data network using PPP, false otherwise.
9184
*/
9285
virtual bool is_connected() = 0;
9386

94-
/** Get the local IP address
87+
/** Get the local IP address.
9588
*
9689
* @return Null-terminated representation of the local IP address
97-
* or null if no IP address has been received
90+
* or null if no IP address has been received.
9891
*/
9992
virtual const char *get_ip_address() = 0;
10093

101-
/** Get the local network mask
94+
/** Get the local network mask.
10295
*
10396
* @return Null-terminated representation of the local network mask
104-
* or null if no network mask has been received
97+
* or null if no network mask has been received.
10598
*/
10699
virtual const char *get_netmask() = 0;
107100

108-
/** Get the local gateways
101+
/** Get the local gateways.
109102
*
110103
* @return Null-terminated representation of the local gateway
111-
* or null if no network mask has been received
104+
* or null if no network mask has been received.
112105
*/
113106
virtual const char *get_gateway() = 0;
114107

108+
/** @copydoc NetworkInterface::cellularBase
109+
*/
115110
virtual CellularBase *cellularBase()
116111
{
117112
return this;
118113
}
119114

115+
#if !defined(DOXYGEN_ONLY)
116+
120117
protected:
121118
/** Get the target's default Cellular interface.
122119
*
@@ -127,6 +124,8 @@ class CellularBase: public NetworkInterface {
127124
* @return pointer to interface, if any
128125
*/
129126
static CellularBase *get_target_default_instance();
127+
128+
#endif //!defined(DOXYGEN_ONLY)
130129
};
131130

132131
#endif //CELLULAR_BASE_H

features/netsocket/EthInterface.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
#include "netsocket/NetworkInterface.h"
2424

2525

26-
/** EthInterface class
27-
*
28-
* Common interface that is shared between ethernet hardware.
26+
/** Common interface that is shared between Ethernet hardware.
27+
* @addtogroup netsocket
2928
*/
3029
class EthInterface : public virtual NetworkInterface {
3130
public:
3231

32+
/** @copydoc NetworkInterface::ethInterface
33+
*/
3334
virtual EthInterface *ethInterface()
3435
{
3536
return this;
@@ -41,10 +42,11 @@ class EthInterface : public virtual NetworkInterface {
4142
* Default behaviour is to get the target's default interface, if
4243
* any.
4344
*
44-
* @return pointer to interface, if any
45+
* @return Pointer to interface, if one exists.
4546
*/
4647
static EthInterface *get_default_instance();
4748

49+
#if !defined(DOXYGEN_ONLY)
4850
protected:
4951

5052
/** Get the target's default Ethernet interface.
@@ -53,9 +55,10 @@ class EthInterface : public virtual NetworkInterface {
5355
* default implementation will invoke EthernetInterface with the
5456
* default EMAC and default network stack, if DEVICE_EMAC is set.
5557
*
56-
* @return pointer to interface, if any
58+
* @return Pointer to interface, if one exists.
5759
*/
5860
static EthInterface *get_target_default_instance();
61+
#endif //!defined(DOXYGEN_ONLY)
5962
};
6063

6164

features/netsocket/EthernetInterface.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121
#include "EMACInterface.h"
2222

2323

24-
/** EthernetInterface class
25-
* Implementation of the NetworkStack for an EMAC-based Ethernet driver
24+
/** Implementation of the NetworkStack for an EMAC-based Ethernet driver.
2625
*/
2726
class EthernetInterface : public EMACInterface, public EthInterface {
2827
public:
29-
/** Create an EMAC-based ethernet interface.
28+
/** Create an EMAC-based Ethernet interface.
3029
*
3130
* The default arguments obtain the default EMAC, which will be target-
3231
* dependent (and the target may have some JSON option to choose which
@@ -36,8 +35,8 @@ class EthernetInterface : public EMACInterface, public EthInterface {
3635
* Due to inability to return errors from the constructor, no real
3736
* work is done until the first call to connect().
3837
*
39-
* @param emac Reference to EMAC to use
40-
* @param stack Reference to onboard-network stack to use
38+
* @param emac Reference to EMAC to use.
39+
* @param stack Reference to onboard-network stack to use.
4140
*/
4241
EthernetInterface(EMAC &emac = EMAC::get_default_instance(),
4342
OnboardNetworkStack &stack = OnboardNetworkStack::get_default_instance()) : EMACInterface(emac, stack) { }

features/netsocket/MeshInterface.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
#include "netsocket/NetworkInterface.h"
2424

2525

26-
/** MeshInterface class
27-
*
28-
* Common interface that is shared between mesh hardware
26+
/** Common interface that is shared between mesh hardware
27+
* @addtogroup netsocket
2928
*/
3029
class MeshInterface : public virtual NetworkInterface {
3130
public:
32-
31+
/** @copydoc NetworkInterface::meshInterface
32+
*/
3333
virtual MeshInterface *meshInterface()
3434
{
3535
return this;
@@ -41,10 +41,11 @@ class MeshInterface : public virtual NetworkInterface {
4141
* Default behaviour is to get the target's default interface, if
4242
* any.
4343
*
44-
* @return pointer to interface, if any
44+
* @return pointer to interface, if any.
4545
*/
4646
static MeshInterface *get_default_instance();
4747

48+
#if !defined(DOXYGEN_ONLY)
4849
protected:
4950

5051
/** Get the target's default Mesh interface.
@@ -53,9 +54,10 @@ class MeshInterface : public virtual NetworkInterface {
5354
* default implementation will invoke LoWPANNDInterface or ThreadInterface
5455
* with the default NanostackRfPhy.
5556
*
56-
* @return pointer to interface, if any
57+
* @return pointer to interface, if any.
5758
*/
5859
static MeshInterface *get_target_default_instance();
60+
#endif //!defined(DOXYGEN_ONLY)
5961
};
6062

6163

0 commit comments

Comments
 (0)