5.5.10 FIRStructInit

Description

FIRStructInit initializes the values of the parameters in an FIRStruct FIR Filter structure.

Prototype

void FIRStructInit (FIRStruct* filter, int numCoeffs, fractional* coeffsBase fractional* delayBase);

Arguments

ParametersDescription

filter

Pointer to the FIRStruct filter structure

numCoeffs

Number of the filter coefficients (also M)

coeffsBase

Base address for the filter coefficients (also h)

delayBase

Base address for delay buffer

Returns

None.

Remarks

See description of FIRStruct structure above.

Upon completion, FIRStructInit initializes the coeffsEnd and delayEnd pointers, accordingly. Also, the delay is set equal to delayBase.

Source File

  • firinit_aa.s

Function Profile

DeviceProgram WordsCycles

PIC32A

8

26

System resource usage

  • W0…W5 - used, not restored
  • REPEAT instruction(s) usage – None