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);
This function retrieves the attributes of the specified FIR filter and stores them in the structure pointed to by attr.
const vsip_dfir_p* fir: Pointer to the FIR filter.
vsip_dfir_attr_p* attr: Pointer to a structure where the attributes will be stored.
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'