Set Output Data Array - 7.2 English

FIR Compiler (PG149)

Document ID
PG149
Release Date
2022-10-26
Version
7.2 English

xip_status

xip_fir_v7_2_set_data_sink(

xip_fir_v7_2* model,

xip_array_real* data,

xip_array_complex* cmplx_data

);

xip_status

xip_fir_v7_2_set_data_sink_mpz(

xip_fir_v7_2* model,

xip_array_mpz* data,

xip_array_mpz_complex* cmplx_data

);

This function registers an array (the data sink), pointed to by data or cmplx_data , to push the generated filter output when the xip_fir_v7_2_data_send function is called. Only data or cmplx_data can be set, the other should be set to NULL (or 0).

If the data sink is undefined the filter output must be explicitly pulled using the xip_fir_v7_2_data_get function.

The array is automatically sized by the model given the size of the input request. The owner field of xip_array_<type> is ignored and forced to 0.

Note: The complex data sink is intended for the Hilbert filter type but is populated for other filter types with im set to 0.