Download Reference Manual
Transcript
Library Function Descriptions Example 14-8. dspd_cc_revision() /* Read CC monitor revision number */ #include "simcom.h" #include "driver.h" int devn, status; char *rev_buf; devn=0; rev_buf = (unsigned long *)dsp_alloc(100*sizeof(char)); status=dspd_cc_revision(devn,rev_buf); 14.2.9 dspd_cc_write_flag—Write Command Converter Flag Word #include "cc.h" #include "simcom.h" #include "driver.h" int dspd_cc_write_flag(device_index, flag, value) int device_index; int flag; unsigned long value; dspd_cc_write_flag() writes to flag word flag on Command Converter device_index, fetching the value from the location pointed to by value. Valid values for flag are: • DSP_CC_FLAGS • DSP_CC_STATUS • • • • • • DSP_CC_XPTR DSP_CC_YPTR DSP_CC_DEVICE_ADDRESS DSP_CC_CLOCK_RATE DSP_CC_DEVICE_COUNT DSP_CC_DEVICE_ACTIVE The function returns DSP_OK on success, DSP_ERROR otherwise. See Example 14-9. 14-14 Suite56 ADS Debugger User’s Manual Motorola