Skip to content

Commit 00188a7

Browse files
authored
Enable typedef to make docs able to link *_t structs. (#185)
1 parent f52fd8b commit 00188a7

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

docs/doxygen/config.doxyfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ ALIASES = "dependencies_section{1}=@section \1_dependencies Depen
299299
"enums_brief{1}=@brief Enumerated types of the \1." \
300300
"functionpointers_group{2}=@defgroup \1_datatypes_functionpointers \2 Function pointer types" \
301301
"functionpointers_brief{1}=@brief Function pointer types of the \1." \
302-
"structs_group{21}=@defgroup \1_datatypes_structs \2 Structured types" \
302+
"structs_group{2}=@defgroup \1_datatypes_structs \2 Structured types" \
303303
"structs_brief{1}=@brief Structured types of the \1." \
304304
"paramstructs_group{2}=@defgroup \1_datatypes_paramstructs \2 Parameter structures" \
305305
"paramstructs_brief{2}=@brief Structures passed as parameters to [\2 functions](@ref \1_functions)<br>These structures are passed as parameters to library functions. Documentation for these structures will state the functions associated with each parameter structure and the purpose of each member." \
@@ -478,7 +478,7 @@ INLINE_SIMPLE_STRUCTS = NO
478478
# types are typedef'ed and only the typedef is referenced, never the tag name.
479479
# The default value is: NO.
480480

481-
TYPEDEF_HIDES_STRUCT = YES
481+
TYPEDEF_HIDES_STRUCT = NO
482482

483483
# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
484484
# cache is used to resolve symbols given their name and scope. Since this can be

docs/doxygen/pages.dox

+10
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ void PlatformMutex_Unlock( PlatformMutex_t * pMutex );
404404
```
405405
*/
406406

407+
/**
408+
* @structs_group{cellular,Cellular}
409+
* @structs_brief{cellular,cellular}
410+
*/
411+
407412
/**
408413
* @paramstructs_group{cellular,Cellular}
409414
* @paramstructs_brief{cellular,cellular}
@@ -423,3 +428,8 @@ void PlatformMutex_Unlock( PlatformMutex_t * pMutex );
423428
* @enums_group{cellular,Cellular}
424429
* @enums_brief{cellular library}
425430
*/
431+
432+
/**
433+
* @common_datatypes_paramstructs_group{cellular,Cellular}
434+
* @common_datatypes_paramstructs_brief{cellular library}
435+
*/

source/include/cellular_types.h

-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
*/
5555
#define CELLULAR_INVALID_SIGNAL_BAR_VALUE ( 0xFFU )
5656

57-
/**
58-
* @ingroup cellular_datatypes_handles
59-
* @brief Opaque Cellular context structure.
60-
*/
6157
struct CellularContext;
6258

6359
/**

source/include/common/cellular_common.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
/*-----------------------------------------------------------*/
5656

5757
/**
58-
* @ingroup cellular_common_datatypes_paramstructs
58+
* @ingroup cellular_datatypes_paramstructs
5959
* @brief The AT command request structure.
6060
*/
6161
typedef struct CellularAtReq
@@ -69,7 +69,7 @@ typedef struct CellularAtReq
6969
} CellularAtReq_t;
7070

7171
/**
72-
* @ingroup cellular_common_datatypes_paramstructs
72+
* @ingroup cellular_datatypes_paramstructs
7373
* @brief The data command request structure.
7474
*/
7575
typedef struct CellularAtDataReq
@@ -94,7 +94,7 @@ typedef void ( * CellularAtParseTokenHandler_t )( CellularContext_t * pContext,
9494
char * pInputStr );
9595

9696
/**
97-
* @ingroup cellular_common_datatypes_paramstructs
97+
* @ingroup cellular_datatypes_paramstructs
9898
* @brief the URC token and URC handler mapping structure used by pkthandler.
9999
*/
100100
typedef struct CellularAtParseTokenMap
@@ -116,7 +116,7 @@ typedef enum CellularSocketState
116116
} CellularSocketState_t;
117117

118118
/**
119-
* @ingroup cellular_common_datatypes_paramstructs
119+
* @ingroup cellular_datatypes_paramstructs
120120
* @brief Parameters involved in sending/receiving data through sockets.
121121
*/
122122
typedef struct CellularSocketContext
@@ -151,7 +151,7 @@ typedef struct CellularSocketContext
151151
} CellularSocketContext_t;
152152

153153
/**
154-
* @ingroup cellular_common_datatypes_paramstructs
154+
* @ingroup cellular_datatypes_paramstructs
155155
* @brief Parameters to setup pktio and pkthandler token tables.
156156
*/
157157
typedef struct CellularTokenTable

source/interface/cellular_comm_interface.h

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ typedef CellularCommInterfaceError_t ( * CellularCommInterfaceRecv_t )( Cellular
151151
typedef CellularCommInterfaceError_t ( * CellularCommInterfaceClose_t )( CellularCommInterfaceHandle_t commInterfaceHandle );
152152

153153
/**
154+
* @ingroup cellular_datatypes_paramstructs
154155
* @brief Represents the functions of a comm interface.
155156
*
156157
* Functions of these signature should be implemented against a comm interface

0 commit comments

Comments
 (0)