1.4.2.3 DSP_ComplexConj32 Function

Calculates the complex conjugate of a complex number.

Description

void DSP_ComplexConj32(int32c *indata, int32c *Output);

Calculates the complex conjugate of indata, and stores the result in Output. Both numbers must be in the complex number data structure, which includes real and imaginary components. Values are in Q31 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

indata1 pointer to input complex number (int32c)

Returns

pointer to result complex numbers (int32c)

Remarks

None.

Example

int32c *res, result;

int32c *input1;

int32c test_complex_1 = {0x40000000,0x0CCCCCCC};

_// (0.5 + 0.1i)_

res=&result;

input1=&test_complex_1;

DSP_ComplexConj32(input1, res);

_// result = {0x40000000, 0xF3333334} = (0.5 - 0.1i)_

C

void  DSP_ComplexConj32 (int32c * indata , int32c * Output );