1.4.2.2 DSP_ComplexConj16 Function

Calculates the complex conjugate of a complex number.

Description

void DSP_ComplexConj16(int16c *indata, int16c *Output);

Calculates the complex conjugate of Indata, and stores the result in Outdata. Both numbers must be in the complex number data structure which includes real and imaginary components. Values are in Q15 fractional data format. The function will saturate the output if maximum or minimum values are exceeded. (a + bi) => (a - bi)

Preconditions

Complex numbers must be in the int32c format.

Parameters

indata pointer to input complex number (int16c)

Returns

pointer to result complex numbers (int16c)

Remarks

None.

Example

int16c *res, result;

int16c *input1;

int16c test_complex_1 = {0x4000,0x0CCC};

_// (0.5 + 0.1i)_

res=&result;

input1=&test_complex_1;

DSP_ComplexConj16(input1, res);

_// result = {0x4000, 0xF334} = (0.5 - 0.1i)_

C

void  DSP_ComplexConj16 (int16c * indata , int16c * Output );