Skip to content

Commit 3d111dd

Browse files
kartbendanieldegrasse
authored andcommitted
include: dsp: doc: cleanup Doxygen for DSP headers
moved docs to Utilities group (vs. top-level) cleaned several incorrect Doxygen group definitions Signed-off-by: Benjamin Cabé <[email protected]>
1 parent e728f80 commit 3d111dd

File tree

3 files changed

+33
-18
lines changed

3 files changed

+33
-18
lines changed

include/zephyr/dsp/basicmath.h

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ extern "C" {
2020
/**
2121
* @ingroup math_dsp
2222
* @defgroup math_dsp_basic Basic Math Functions
23+
* Basic element-wise math operations for DSP.
24+
* @{
2325
*/
2426

2527
/**
2628
* @ingroup math_dsp_basic
27-
* @addtogroup math_dsp_basic_mult Vector Multiplication
29+
* @defgroup math_dsp_basic_mult Vector Multiplication
2830
*
2931
* Element-by-element multiplication of two vectors.
3032
* <pre>
@@ -95,7 +97,7 @@ DSP_FUNC_SCOPE void zdsp_mult_f32(const DSP_DATA float32_t *src_a, const DSP_DAT
9597

9698
/**
9799
* @ingroup math_dsp_basic
98-
* @addtogroup math_dsp_basic_add Vector Addition
100+
* @defgroup math_dsp_basic_add Vector Addition
99101
*
100102
* Element-by-element addition of two vectors.
101103
* <pre>
@@ -166,7 +168,7 @@ DSP_FUNC_SCOPE void zdsp_add_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31
166168

167169
/**
168170
* @ingroup math_dsp_basic
169-
* @addtogroup math_dsp_basic_sub Vector Subtraction
171+
* @defgroup math_dsp_basic_sub Vector Subtraction
170172
*
171173
* Element-by-element subtraction of two vectors.
172174
* <pre>
@@ -237,7 +239,7 @@ DSP_FUNC_SCOPE void zdsp_sub_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31
237239

238240
/**
239241
* @ingroup math_dsp_basic
240-
* @addtogroup math_dsp_basic_scale Vector Scale
242+
* @defgroup math_dsp_basic_scale Vector Scale
241243
*
242244
* Multiply a vector by a scalar value. For floating-point data, the algorithm used is:
243245
* <pre>
@@ -328,7 +330,7 @@ DSP_FUNC_SCOPE void zdsp_scale_q31(const DSP_DATA q31_t *src, q31_t scale_fract,
328330

329331
/**
330332
* @ingroup math_dsp_basic
331-
* @addtogroup math_dsp_basic_abs Vector Absolute Value
333+
* @defgroup math_dsp_basic_abs Vector Absolute Value
332334
*
333335
* Computes the absolute value of a vector on an element-by-element basis.
334336
* <pre>
@@ -397,7 +399,7 @@ DSP_FUNC_SCOPE void zdsp_abs_q31(const DSP_DATA q31_t *src, DSP_DATA q31_t *dst,
397399

398400
/**
399401
* @ingroup math_dsp_basic
400-
* @addtogroup math_dsp_basic_dot Vector Dot Product
402+
* @defgroup math_dsp_basic_dot Vector Dot Product
401403
*
402404
* Computes the dot product of two vectors. The vectors are multiplied element-by-element and then
403405
* summed.
@@ -477,7 +479,7 @@ DSP_FUNC_SCOPE void zdsp_dot_prod_q31(const DSP_DATA q31_t *src_a, const DSP_DAT
477479

478480
/**
479481
* @ingroup math_dsp_basic
480-
* @addtogroup math_dsp_basic_shift Vector Shift
482+
* @defgroup math_dsp_basic_shift Vector Shift
481483
*
482484
* Shifts the elements of a fixed-point vector by a specified number of bits.
483485
* There are separate functions for Q7, Q15, and Q31 data types. The underlying algorithm used is:
@@ -546,7 +548,7 @@ DSP_FUNC_SCOPE void zdsp_shift_q31(const DSP_DATA q31_t *src, int8_t shift_bits,
546548

547549
/**
548550
* @ingroup math_dsp_basic
549-
* @addtogroup math_dsp_basic_offset Vector Offset
551+
* @defgroup math_dsp_basic_offset Vector Offset
550552
*
551553
* Adds a constant offset to each element of a vector.
552554
* <pre>
@@ -620,7 +622,7 @@ DSP_FUNC_SCOPE void zdsp_offset_q31(const DSP_DATA q31_t *src, q31_t offset, DSP
620622

621623
/**
622624
* @ingroup math_dsp_basic
623-
* @addtogroup math_dsp_basic_negate Vector Negate
625+
* @defgroup math_dsp_basic_negate Vector Negate
624626
*
625627
* Negates the elements of a vector.
626628
* <pre>
@@ -690,7 +692,7 @@ DSP_FUNC_SCOPE void zdsp_negate_q31(const DSP_DATA q31_t *src, DSP_DATA q31_t *d
690692

691693
/**
692694
* @ingroup math_dsp_basic
693-
* @addtogroup math_dsp_basic_and Vector bitwise AND
695+
* @defgroup math_dsp_basic_and Vector bitwise AND
694696
*
695697
* Compute the logical bitwise AND.
696698
*
@@ -734,7 +736,7 @@ DSP_FUNC_SCOPE void zdsp_and_u32(const DSP_DATA uint32_t *src_a, const DSP_DATA
734736

735737
/**
736738
* @ingroup math_dsp_basic
737-
* @addtogroup math_dsp_basic_or Vector bitwise OR
739+
* @defgroup math_dsp_basic_or Vector bitwise OR
738740
*
739741
* Compute the logical bitwise OR.
740742
*
@@ -778,7 +780,7 @@ DSP_FUNC_SCOPE void zdsp_or_u32(const DSP_DATA uint32_t *src_a, const DSP_DATA u
778780

779781
/**
780782
* @ingroup math_dsp_basic
781-
* @addtogroup math_dsp_basic_not Vector bitwise NOT
783+
* @defgroup math_dsp_basic_not Vector bitwise NOT
782784
*
783785
* Compute the logical bitwise NOT.
784786
*
@@ -819,7 +821,7 @@ DSP_FUNC_SCOPE void zdsp_not_u32(const DSP_DATA uint32_t *src, DSP_DATA uint32_t
819821

820822
/**
821823
* @ingroup math_dsp_basic
822-
* @addtogroup math_dsp_basic_xor Vector bitwise XOR
824+
* @defgroup math_dsp_basic_xor Vector bitwise XOR
823825
*
824826
* Compute the logical bitwise XOR.
825827
*
@@ -863,7 +865,7 @@ DSP_FUNC_SCOPE void zdsp_xor_u32(const DSP_DATA uint32_t *src_a, const DSP_DATA
863865

864866
/**
865867
* @ingroup math_dsp_basic
866-
* @addtogroup math_dsp_basic_clip Vector Clipping
868+
* @defgroup math_dsp_basic_clip Vector Clipping
867869
*
868870
* Element-by-element clipping of a value.
869871
*
@@ -921,6 +923,10 @@ DSP_FUNC_SCOPE void zdsp_clip_q7(const DSP_DATA q7_t *src, DSP_DATA q7_t *dst, q
921923
* @}
922924
*/
923925

926+
/**
927+
* @}
928+
*/
929+
924930
#ifdef __cplusplus
925931
}
926932
#endif

include/zephyr/dsp/dsp.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
#endif
3131

3232
/**
33-
* @brief DSP Interface
34-
* @defgroup math_dsp DSP Interface
33+
* @brief Digital Signal Processing (DSP) math functions and utilities.
34+
* @defgroup math_dsp DSP (Digital Signal Processing)
35+
* @ingroup utilities
3536
* @since 3.3
3637
* @version 0.1.0
3738
*/

include/zephyr/dsp/utils.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ extern "C" {
2424
/**
2525
* @ingroup math_dsp
2626
* @defgroup math_dsp_utils_shifts Float/Fixed point shift conversion functions
27+
*
28+
* Convert number representation in Float or Double to/from Q31/Q15/Q7.
29+
*
30+
* @{
2731
*/
2832

2933
/**
3034
* @ingroup math_dsp_utils_shifts
31-
* @addtogroup math_dsp_basic_conv_to_float Fixed to Float point conversions
35+
* @defgroup math_dsp_basic_conv_to_float Fixed to Float point conversions
3236
*
3337
* Convert number Q7/Q15/Q31 to Float or Double representation with shift.
3438
*
@@ -96,7 +100,7 @@ extern "C" {
96100

97101
/**
98102
* @ingroup math_dsp_utils_shifts
99-
* @addtogroup math_dsp_basic_conv_to_fixed Float to Fixed point conversions
103+
* @defgroup math_dsp_basic_conv_to_fixed Float to Fixed point conversions
100104
*
101105
* Convert number representation in Float or Double to Q31/Q15/Q7.
102106
*
@@ -168,6 +172,10 @@ extern "C" {
168172
* @}
169173
*/
170174

175+
/**
176+
* @}
177+
*/
178+
171179
#ifdef __cplusplus
172180
}
173181
#endif

0 commit comments

Comments
 (0)