/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * main.c * * Code generation for function 'main' * */ /*************************************************************************/ /* This automatically generated example C main file shows how to call */ /* entry-point functions that MATLAB Coder generated. You must customize */ /* this file for your application. Do not modify this file directly. */ /* Instead, make a copy of this file, modify it, and integrate it into */ /* your development environment. */ /* */ /* This file initializes entry-point function arguments to a default */ /* size and value before calling the entry-point functions. It does */ /* not store or use any values returned from the entry-point functions. */ /* If necessary, it does pre-allocate memory for returned values. */ /* You can use this file as a starting point for a main function that */ /* you can deploy in your application. */ /* */ /* After you copy the file, and before you deploy it, you must make the */ /* following changes: */ /* * For variable-size function arguments, change the example sizes to */ /* the sizes that your application requires. */ /* * Change the example values of function arguments to the values that */ /* your application requires. */ /* * If the entry-point functions return values, store these values or */ /* otherwise use them as required by your application. */ /* */ /*************************************************************************/ /* Include files */ #include "main.h" #include "hilbert_fir.h" /* Function Declarations */ static void argInit_1x8_real_T(double result[8]); static double argInit_real_T(void); /* Function Definitions */ static void argInit_1x8_real_T(double result[8]) { int idx1; /* Loop over the array to initialize each element. */ for (idx1 = 0; idx1 < 8; idx1++) { /* Set the value of the array element. Change this value to the value that the application requires. */ result[idx1] = argInit_real_T(); } } static double argInit_real_T(void) { return 0.0; } int main(int argc, char **argv) { (void)argc; (void)argv; /* Initialize the application. You do not need to do this more than one time. */ hilbert_fir_initialize(); /* Invoke the entry-point functions. You can call entry-point functions multiple times. */ main_hilbert_fir(); /* Terminate the application. You do not need to do this more than one time. */ hilbert_fir_terminate(); return 0; } void main_hilbert_fir(void) { double dv[8]; double i_data[8]; double q_data[8]; /* Initialize function 'hilbert_fir' input arguments. */ /* Initialize function input argument 'data'. */ /* Call the entry-point 'hilbert_fir'. */ argInit_1x8_real_T(dv); hilbert_fir(dv, i_data, q_data); } /* End of code generation (main.c) */