Go to the documentation of this file.00001
00044 #if !defined (PROC_H)
00045 #define PROC_H
00046
00047
00048
00049 #include <dsplink.h>
00050 #include <procdefs.h>
00051 #include <linkcfgdefs.h>
00052
00053
00054 #if defined (DDSP_PROFILE)
00055 #include <profile.h>
00056 #endif
00057
00058
00059 #if defined (__cplusplus)
00060 extern "C" {
00061 #endif
00062
00063
00095 EXPORT_API
00096 DSP_STATUS
00097 PROC_setup (IN LINKCFG_Object * linkCfg) ;
00098
00099
00128 EXPORT_API
00129 DSP_STATUS
00130 PROC_destroy (Void) ;
00131
00132
00169 EXPORT_API
00170 DSP_STATUS
00171 PROC_attach (IN ProcessorId procId,
00172 PROC_Attrs * attr) ;
00173
00174
00211 EXPORT_API
00212 DSP_STATUS
00213 PROC_detach (IN ProcessorId procId) ;
00214
00215
00239 EXPORT_API
00240 DSP_STATUS
00241 PROC_getState (IN ProcessorId procId,
00242 OUT PROC_State * procState) ;
00243
00244
00296 EXPORT_API
00297 DSP_STATUS
00298 PROC_load (IN ProcessorId procId,
00299 IN Char8 * imagePath,
00300 IN Uint32 argc,
00301 IN Char8 ** argv) ;
00302
00303
00344 EXPORT_API
00345 DSP_STATUS
00346 PROC_loadSection (IN ProcessorId procId,
00347 IN Char8 * imagePath,
00348 IN Uint32 sectID) ;
00349
00350
00388 EXPORT_API
00389 DSP_STATUS
00390 PROC_read (IN ProcessorId procId,
00391 IN Uint32 dspAddr,
00392 IN Uint32 numBytes,
00393 IN OUT Pvoid buffer) ;
00394
00395
00434 EXPORT_API
00435 DSP_STATUS
00436 PROC_write (IN ProcessorId procId,
00437 IN Uint32 dspAddr,
00438 IN Uint32 numBytes,
00439 IN Pvoid buffer) ;
00440
00441
00489 EXPORT_API
00490 DSP_STATUS
00491 PROC_start (IN ProcessorId procId) ;
00492
00493
00529 EXPORT_API
00530 DSP_STATUS
00531 PROC_stop (IN ProcessorId procId) ;
00532
00533
00560 EXPORT_API
00561 DSP_STATUS
00562 PROC_control (IN ProcessorId procId,
00563 IN Int32 cmd,
00564 Pvoid arg) ;
00565
00566
00583 EXPORT_API
00584 DSP_STATUS
00585 PROC_GetSymbolAddress (IN ProcessorId procId,
00586 IN Char8 * symbolName,
00587 OUT Uint32 * dspAddr) ;
00588
00589
00613 EXPORT_API
00614 DSP_STATUS
00615 PROC_sendTerminateEvent(IN ProcessorId procId);
00616
00617
00618 #if defined (DDSP_PROFILE)
00619
00645 EXPORT_API
00646 DSP_STATUS
00647 PROC_instrument (IN ProcessorId procId, OUT PROC_Instrument * retVal) ;
00648 #endif
00649
00650
00651 #if defined (DDSP_DEBUG)
00652
00671 EXPORT_API
00672 Void
00673 PROC_debug (IN ProcessorId procId) ;
00674 #endif
00675
00676
00686 EXPORT_API
00687 DSP_STATUS
00688 PROC_Setup (Void) ;
00689
00699 #define PROC_Destroy PROC_destroy
00700
00710 #define PROC_Attach PROC_attach
00711
00721 #define PROC_Detach PROC_detach
00722
00732 #define PROC_GetState PROC_getState
00733
00743 #define PROC_Load PROC_load
00744
00754 #define PROC_LoadSection PROC_loadSection
00755
00765 #define PROC_Read PROC_read
00766
00776 #define PROC_Write PROC_write
00777
00787 #define PROC_Start PROC_start
00788
00798 #define PROC_Stop PROC_stop
00799
00809 #define PROC_Control PROC_control
00810
00811 #if defined (DDSP_DEBUG)
00812
00821 #define PROC_Debug PROC_debug
00822 #endif
00823
00824
00825 #if defined (__cplusplus)
00826 }
00827 #endif
00828
00829
00830 #endif