Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

5.4.3 vsip_dfir_getattr_p - Get Attributes of a FIR Filter

typedef struct _vsip_fir_attr_f{ 
  vsip_scalar_vi kernel_len; 
  vsip_symmetry symm; 
  vsip_scalar_vi in_len; 
  vsip_scalar_vi out_len; 
  vsip_length decimation; 
  vsip_obj_state state; 
} vsip_fir_attr_f; 
 
void vsip_fir_getattr_f(const vsip_fir_f *fir, vsip_fir_attr_f *attr); 
void vsip_cfir_getattr_f(const vsip_cfir_f *fir, vsip_cfir_attr_f *attr);
Description

This function retrieves the attributes of the specified FIR filter and stores them in the structure pointed to by attr.

Parameters
Example

vsip_fir_f *fir_filter; 
vsip_fir_attr_f attributes; 
 
// Assuming fir_filter has been properly initialized 
vsip_fir_getattr_f(fir_filter, &attributes); 
 
// The attributes of the FIR filter are now stored in 'attributes'