readout_rm/nco_dpi/codegen/dll/nco_model/nco_dpi.c

53 lines
1.1 KiB
C
Raw Normal View History

2025-04-10 15:57:53 +08:00
/*
*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 <string.h>
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();
}