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
00590 #if defined (DDSP_PROFILE)
00591
00617 EXPORT_API
00618 DSP_STATUS
00619 PROC_instrument (IN ProcessorId procId, OUT PROC_Instrument * retVal) ;
00620 #endif
00621
00622
00623 #if defined (DDSP_DEBUG)
00624
00643 EXPORT_API
00644 Void
00645 PROC_debug (IN ProcessorId procId) ;
00646 #endif
00647
00648
00658 EXPORT_API
00659 DSP_STATUS
00660 PROC_Setup (Void) ;
00661
00671 #define PROC_Destroy PROC_destroy
00672
00682 #define PROC_Attach PROC_attach
00683
00693 #define PROC_Detach PROC_detach
00694
00704 #define PROC_GetState PROC_getState
00705
00715 #define PROC_Load PROC_load
00716
00726 #define PROC_LoadSection PROC_loadSection
00727
00737 #define PROC_Read PROC_read
00738
00748 #define PROC_Write PROC_write
00749
00759 #define PROC_Start PROC_start
00760
00770 #define PROC_Stop PROC_stop
00771
00781 #define PROC_Control PROC_control
00782
00783 #if defined (DDSP_DEBUG)
00784
00793 #define PROC_Debug PROC_debug
00794 #endif
00795
00796
00797 #if defined (__cplusplus)
00798 }
00799 #endif
00800
00801
00802 #endif