The Global Bus

Top  Previous  Next

The functions discussed above are enough for most users. Occasionally it may be necessary to access devices directly on the global bus. You can perform such accesses using Smt_GbRead and Smt_GbWrite. In these functions, GbAddr is the address issued to the global bus, while Size and Buffer define the memory to be used in the DSP. Size must be a multiple of 4 and Buffer must be aligned on a 4 byte boundary. Control is the

value to be used in the global bus control register for the transfer. Details of this can be found in the User Guide for your TIM.

 

Smt_GbRead

#include <SMT_BSI.h>

int Smt_GbRead(SC6xSmtI     *BsI,

               unsigned int  GbAddr,

               unsigned int  Size,

               void         *Buffer,

               unsigned int  Control);

 stand-alone

Read Size bytes of data from the global bus at address GbAddr to Buffer. Control is the value to be used in the global bus control register for the transfer.

Smt_GbWrite

#include <SMT_BSI.h>

int Smt_GbWrite(SC6xSmtI     *BsI,

                unsigned int  GbAddr,

                unsigned int  Size,

                void         *Buffer);

                unsigned int  Control);

 stand-alone

Write Size bytes of data from Buffer to the global bus at address GbAddr. Control is the value to be used in the global bus control register for the transfer.