diff --git a/Console/Receiver/Spectrum Instrumentation m4i.4451/readme.md b/Console/Receiver/Spectrum Instrumentation m4i.4451/readme.md index b3da1521086f6b96d69fd6dfff0f3eacecab3b79..a6bae83176658e41045c89df3331c4a4b5cfc312 100644 --- a/Console/Receiver/Spectrum Instrumentation m4i.4451/readme.md +++ b/Console/Receiver/Spectrum Instrumentation m4i.4451/readme.md @@ -9,9 +9,25 @@ It is also possible to use other software platforms for the digitizer cards such ## ADC The file **m4iset_extrig_rms.c** contains the functions for the ADC card setup and receiver operation. The routine uses 3 arguments: -- _*pvData_ 16-bit data pointer for the received data -- _*lMemsize_ 32-bit memory length for the received data -- _*posttr_ 32-bit post trigger pointer to adjust the time window of the ADC. Please see manufacturer’s documentation for more information about post trigger. +```c +/** + * Set m4i receiver card + * + * @param *pvData 16-bit data pointer for the received data + * @param *lMemsize 32-bit memory length for the received data + * @param *posttr 32-bit post trigger pointer to adjust the time window of the ADC. Please see manufacturer’s documentation for more about post trigger. + * @Return void +*/ +void m4iset_(int16 *pvData, int32 *lMemsize, int32 *posttr) + { + drv_handle hDrv; // Receiver device + char szErrorText[ERRORTEXTLEN]; // Error buffer + //Card specific parameters + ... + ... + ... + } +``` The other two scripts **rec_m4i_fifo_tdfilter.f** and **rec_m4i_tdfilter_rms.f** implement the c routine. They need to be compiled with a Fortran complier. The first line in these files can be taken as an example i.e. copy and paste it into the OS terminal using the working folder.