User manual

643
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
Vectors Library
mikroPascal PRO for dsPIC30/33 and PIC24 includes a library for working and using vectors. All routines work with
fractional Q15 format.
Library Routines
- Vector_Set
- Vector_Power
- Vector_Subtract
- Vector_Scale
- Vector_Negate
- Vector_Multiply
- Vector_Min
- Vector_Max
- Vector_Dot
- Vector_Correlate
- Vector_Convolve
- Vector_Add
Vector_Set
Prototype
procedure Vector_Set(var input: array[1024] of word; size, value: word);
Description Sets size elements of input to value, starting from the rst element.
Parameters - input: pointer to original vector
- size: number of vector elements
- value: value written to the elements
Returns Nothing.
Requires Nothing.
Example
var vec2 : array[3] of word;
Vector_Set(vec2, 3, 0x4000);
Notes - size must be > 0
- Length of input is limited by available RAM