/* * Define here the outputs for the module */ #ifndef _OUTPUTS_H #define _OUTPUTS_H /** Type declaration */ typedef struct { float re; float im; }symbolOUT; /*Defined according the data needs*/ #define OUTPUT_MAX_DATA 4096 /*Max buffer size for data out symbols*/ /* buffers for data and control*/ symbolOUT output_data[OUTPUT_MAX_DATA]; /* defined interfaces functions*/ int get_dataout_length(); int generate_outputdata(); /** configure output interfaces */ struct utils_itf output_itfs[] = { {"data_flow_out", /**<< Name of the interface */ sizeof(symbolOUT), /**<< Size of the sample (in bytes) */ OUTPUT_MAX_DATA, /**<< Size of the buffer in samples */ output_data, /**<< Buffer for data */ get_dataout_length, /**<< Returns number of samples to generate */ generate_outputdata, /**<< Function to generate data */ }, {NULL, 0, 0, 0, 0, 0}}; /** =============== End ================ */ #endif /* _OUTPUTS_H */