CSI-DSP  Version 1.0.0
CSI DSP Software Library
Functions

Functions

void csky_dsp_lib_vec_cx_conj_q15 (q15_t *A, uint32_t N, q15_t *C)
 Q15 complex vector conjugate. More...
 
void csky_dsp_lib_vec_cx_conj_q31 (q31_t *A, uint32_t N, q31_t *C)
 Q31 complex vector conjugate. More...
 

Description

Conjugate the elements of a complex data vector, the source data is from A, and the data in A is stored in an interleaved fashion(real, imag, real, imag, ...), so, the length of A is 2*N(including N complex data), finally the results are stored in C. The computaional process is:

for(i=0; i < N; i++)
{
    *(C+2*i + 0) = *(C+2*i + 0);
    *(C+2*i + 1) = -*(C+2*i + 1);
}

support for q15 and q31 format.

Function Documentation

void csky_dsp_lib_vec_cx_conj_q15 ( q15_t A,
uint32_t  N,
q15_t C 
)
Parameters
[in]*Apoints to the input buffer
[in]Nnumber of samples in each vector
[out]*Cpoints to the output buffer
Returns
none

Scaling and Overflow Behavior:

The function uses saturating arithmetic. The Q15 value -1 (0x8000) will be saturated to the maximum allowable positive value 0x7FFF.
void csky_dsp_lib_vec_cx_conj_q31 ( q31_t A,
uint32_t  N,
q31_t C 
)
Parameters
[in]*Apoints to the input buffer
[in]Nnumber of samples in each vector
[out]*Cpoints to the output buffer
Returns
none

Scaling and Overflow Behavior:

The function uses saturating arithmetic. The Q31 value -1 (0x80000000) will be saturated to the maximum allowable positive value 0x7FFFFFFF.