/* *File: C:\Users\Administrator\Desktop\gc_awg\demod_algorithm\daq_matlab\codegen\dll\nco\nco_dpi.c *Created: 2025-04-09 02:18:36 *Generated by MATLAB 24.1 and HDL Verifier 24.1 */ #include "nco.h" #include "nco_dpi.h" #include DPI_DLL_EXPORT void * DPI_nco_initialize(void* existhandle) { nco_initialize(); existhandle=NULL; return NULL; } DPI_DLL_EXPORT void * DPI_nco_reset(void* objhandle,real_T fcw,real_T ptw,real_T clr,real_T acc,real_T * my_c,real_T * my_s,real_T * acc_o) { DPI_nco_terminate(objhandle); objhandle=NULL; objhandle=DPI_nco_initialize(NULL); DPI_nco(objhandle,fcw,ptw,clr,acc,my_c,my_s,acc_o); DPI_nco_terminate(objhandle); objhandle=NULL; return DPI_nco_initialize(NULL); } DPI_DLL_EXPORT void DPI_nco(void* objhandle,real_T fcw,real_T ptw,real_T clr,real_T acc,real_T * my_c,real_T * my_s,real_T * acc_o) { nco(fcw,ptw,clr,acc,my_c,my_s,acc_o); objhandle=NULL; } DPI_DLL_EXPORT void DPI_nco_terminate(void* existhandle) { existhandle=NULL; nco_terminate(); }