Skip to content

Commit 2673758

Browse files
authored
Merge pull request #6313 from SeppoTakalo/doxygen
Add missing Doxygen descriptions for Nanostack
2 parents 57b48f6 + fbea6f1 commit 2673758

File tree

11 files changed

+28
-7
lines changed

11 files changed

+28
-7
lines changed

doxyfile_options

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,8 @@ EXCLUDE_PATTERNS = */tools/* \
847847
*/features/FEATURE_COMMON_PAL/* \
848848
*/features/FEATURE_LWIP/* \
849849
*/features/FEATURE_UVISOR/* \
850-
*/features/nanostack/* \
850+
*/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/* \
851+
*/features/nanostack/FEATURE_NANOSTACK/coap-service/* \
851852
*/ble/generic/* \
852853
*/ble/pal/*
853854

doxygen_options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"PREDEFINED": "DOXYGEN_ONLY DEVICE_ANALOGIN DEVICE_ANALOGOUT DEVICE_CAN DEVICE_ETHERNET DEVICE_EMAC DEVICE_FLASH DEVICE_I2C DEVICE_I2CSLAVE DEVICE_I2C_ASYNCH DEVICE_INTERRUPTIN DEVICE_ITM DEVICE_LOWPOWERTIMER DEVICE_PORTIN DEVICE_PORTINOUT DEVICE_PORTOUT DEVICE_PWMOUT DEVICE_RTC DEVICE_TRNG DEVICE_SERIAL DEVICE_SERIAL_ASYNCH DEVICE_SERIAL_FC DEVICE_SLEEP DEVICE_SPI DEVICE_SPI_ASYNCH DEVICE_SPISLAVE DEVICE_STORAGE \"MBED_DEPRECATED_SINCE(f, g)=\" \"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)=\" \"MBED_DEPRECATED(s)=\"",
1010
"EXPAND_AS_DEFINED": "",
1111
"SKIP_FUNCTION_MACROS": "NO",
12-
"EXCLUDE_PATTERNS": "*/tools/* */targets/* */features/mbedtls/* */features/storage/* */features/unsupported/* */BUILD/* */rtos/TARGET_CORTEX/rtx*/* */cmsis/* */features/FEATURE_COMMON_PAL/* */features/FEATURE_LWIP/* */features/FEATURE_UVISOR/* */features/nanostack/* */ble/generic/* */ble/pal/*"
12+
"EXCLUDE_PATTERNS": "*/tools/* */targets/* */features/mbedtls/* */features/storage/* */features/unsupported/* */BUILD/* */rtos/TARGET_CORTEX/rtx*/* */cmsis/* */features/FEATURE_COMMON_PAL/* */features/FEATURE_LWIP/* */features/FEATURE_UVISOR/* */features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/* */features/nanostack/FEATURE_NANOSTACK/coap-service/* */ble/generic/* */ble/pal/*"
1313
}

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/LoWPANNDInterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
#include "MeshInterfaceNanostack.h"
2121

22+
/** 6LoWPAN-ND mesh network interface class
23+
*
24+
* Configure Nanostack to use 6LoWPAN-ND protocol.
25+
*/
2226
class LoWPANNDInterface : public MeshInterfaceNanostack {
2327
public:
2428

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/MeshInterfaceNanostack.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "NanostackRfPhy.h"
2323
#include "mesh_interface_types.h"
2424

25+
/** Nanostack's network interface class.
26+
*
27+
* Common class that is shared between mesh interface classes
28+
*/
2529
class MeshInterfaceNanostack : public MeshInterface {
2630
public:
2731

@@ -63,7 +67,7 @@ class MeshInterfaceNanostack : public MeshInterface {
6367

6468
/**
6569
* \brief Callback from C-layer
66-
* \param state state of the network
70+
* \param status state of the network
6771
* */
6872
void mesh_network_handler(mesh_connection_status_t status);
6973

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/NanostackEthernetInterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "MeshInterfaceNanostack.h"
2121
#include "NanostackEthernetPhy.h"
2222

23+
/** Ethernet interface for Nanostack.
24+
*
25+
* Configure Nanostack to use Ethernet connectivity.
26+
*/
2327
class NanostackEthernetInterface : public MeshInterfaceNanostack {
2428
public:
2529

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/ThreadInterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
#include "MeshInterfaceNanostack.h"
2121

22+
/** Thread mesh network interface class
23+
*
24+
* Configure Nanostack to use Thread protocol.
25+
*/
2226
class ThreadInterface : public MeshInterfaceNanostack {
2327
public:
2428

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ typedef enum {
2929
MESH_TYPE_THREAD
3030
} mesh_network_type_t;
3131

32-
/*
32+
/**
3333
* Error status values returned by Mesh network API.
3434
*/
3535
typedef enum {
@@ -40,7 +40,7 @@ typedef enum {
4040
MESH_ERROR_PARAM, /*<! Illegal parameter */
4141
} mesh_error_t;
4242

43-
/*
43+
/**
4444
* Mesh network connection status codes returned in callback.
4545
*/
4646
typedef enum {
@@ -53,7 +53,7 @@ typedef enum {
5353
MESH_BOOTSTRAP_STARTED /*<! bootstrap started */
5454
} mesh_connection_status_t;
5555

56-
/*
56+
/**
5757
* Mesh device types
5858
*/
5959
typedef enum {

features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackEthernetPhy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "NanostackPhy.h"
2222

23+
/** Ethernet PHY driver class for Nanostack */
2324
class NanostackEthernetPhy : public NanostackPhy {
2425
};
2526

features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
struct ns_address;
3131

32+
/** Network interface class for Nanostack */
3233
class NanostackInterface : public NetworkStack {
3334
public:
3435
static NanostackInterface *get_stack();
@@ -179,7 +180,7 @@ class NanostackInterface : public NetworkStack {
179180
*
180181
* @param handle Socket handle
181182
* @param address Destination for the source address or NULL
182-
* @param data Destination buffer for data received from the host
183+
* @param buffer Destination buffer for data received from the host
183184
* @param size Size of the buffer in bytes
184185
* @return Number of received bytes on success, negative error
185186
* code on failure

features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackPhy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef NANOSTACK_PHY_H_
1919
#define NANOSTACK_PHY_H_
2020

21+
/** PHY driver class for Nanostack */
2122
class NanostackPhy {
2223
public:
2324

features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackRfPhy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "NanostackPhy.h"
2222

23+
/** Radio PHY driver class for Nanostack */
2324
class NanostackRfPhy : public NanostackPhy {
2425
public:
2526

0 commit comments

Comments
 (0)