Explorar el Código

CMSIS-DSP: Corrected issue #906

Christophe Favergeon hace 5 años
padre
commit
217eddd032

+ 7 - 0
CMSIS/DSP/Source/TransformFunctions/arm_rfft_f32.c

@@ -85,6 +85,13 @@ void arm_split_rifft_f32(
   @param[in]     pSrc points to the input buffer
   @param[out]    pDst points to the output buffer
   @return        none
+
+  @par
+                   For the RIFFT, the source buffer must at least have length 
+                   fftLenReal + 2.
+                   The last two elements must be equal to what would be generated
+                   by the RFFT:
+                     (pSrc[0] - pSrc[1]) and 0.0f
  */
 
 void arm_rfft_f32(

+ 6 - 0
CMSIS/DSP/Source/TransformFunctions/arm_rfft_q15.c

@@ -71,6 +71,12 @@ void arm_split_rifft_q15(
   @par
                    If the input buffer is of length N, the output buffer must have length 2*N.
                    The input buffer is modified by this function.
+  @par
+                   For the RIFFT, the source buffer must at least have length 
+                   fftLenReal + 2.
+                   The last two elements must be equal to what would be generated
+                   by the RFFT:
+                     (pSrc[0] - pSrc[1]) >> 1 and 0
  */
 
 void arm_rfft_q15(

+ 7 - 0
CMSIS/DSP/Source/TransformFunctions/arm_rfft_q31.c

@@ -71,6 +71,13 @@ void arm_split_rifft_q31(
   @par
                    If the input buffer is of length N, the output buffer must have length 2*N.
                    The input buffer is modified by this function.
+  @par
+                   For the RIFFT, the source buffer must at least have length 
+                   fftLenReal + 2.
+                   The last two elements must be equal to what would be generated
+                   by the RFFT:
+                     (pSrc[0] - pSrc[1]) >> 1 and 0
+
  */
 
 void arm_rfft_q31(