TriangleQ15

Generates a triangle with a frequency, phase, and magnitude specified in the triangle generator structure.

Syntax

IppStatus ippsTriangleQ15_16s(Ipp16s* pDst, int len, IppTriangleState_16s* pTriangleState);

Parameters

pDst

Pointer to the array which stores the generated samples.

len

Number of samples to be computed.

pTriangleState

Pointer to the triangle generator specification structure.

Description

The function ippsTriangleQ15 is declared in the ipps.h file. This function generates the triangle with the frequency, phase, magnitude, and asymmetry parameters that are specified in the previously created structure pTriangleState. The function computes len samples of the triangle, and stores them in the array pDst. Generated values x[n] are computed using the same f ormulas as in ippsTriangle_Direct function for computing real triangles.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pDst or pToneState pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to zero.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.