1 /* 2 * Copyright (C) 2017 Analog Devices, Inc. 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 */ 14 15 #ifndef INTERNAL_DESIGN_FILTER_CG_H 16 #define INTERNAL_DESIGN_FILTER_CG_H 17 18 /* Include Files */ 19 #include <float.h> 20 #include <math.h> 21 #include <stddef.h> 22 #include <stdlib.h> 23 #include <string.h> 24 #include "rt_defines.h" 25 #include "rt_nonfinite.h" 26 #include "rtwtypes.h" 27 #include "internal_design_filter_cg_types.h" 28 29 /* Function Declarations */ 30 #ifdef __cplusplus 31 32 extern "C" { 33 34 #endif 35 36 extern void internal_design_filter_cg(double Rdata, double Fpass, double Fstop, 37 double caldiv, double FIR, double HB1, double PLL_mult, double Apass, double 38 Astop, double phEQ, double HB2, double HB3, const char Type[7], const char 39 RxTx[2], double RFbw, double DAC_div, double converter_rate, double PLL_rate, 40 double Fcenter, double wnom, double FIRdBmin, double int_FIR, double maxTaps, 41 short outputTaps[128], double *numOutputTaps, double *filterGain); 42 extern void internal_design_filter_cg_initialize(void); 43 extern void internal_design_filter_cg_terminate(void); 44 45 #ifdef __cplusplus 46 47 } 48 #endif 49 #endif 50 51 /* 52 * File trailer for internal_design_filter_cg.h 53 * 54 * [EOF] 55 */ 56