|
The carrier board includes 1MB of SRAM that can be directly addressed from the host PC. The board services module provides functions to transfer data between a data area in this SRAM and the root DSP’s memory. You usually need to indicate when the transfer may be done (when data has been written to SRAM or SRAM has space available for writing) by using another channel to the host, commonly the host comport or Mailboxes.
Note that the High-Speed Channel uses all of the SRAM to communicate address information.
In the following functions:
|
BsI
|
is the interface pointer returned by OpenBoardServices
|
|
Offset
|
is a byte offset from the beginning of the SRAM to the start of the data area.
|
|
Bytes
|
indicates how many bytes of data are to be moved (must be a multiple of 4)
|
|
Buffer
|
points to the first word of DSP memory that provide or receive the data.
|
Smt_SramRead
#include <SMT_BSI.h>
int Smt_SramRead(SC6xSmtI *BsI,
unsigned int Offset,
unsigned int Bytes,
void *Buffer);
|
stand-alone
|
Read from the SRAM into the given buffer.
|
|
Smt_SramWrite
#include <SMT_BSI.h>
int Smt_SramWrite(SC6xSmtI *BsI,
unsigned int Offset,
unsigned int Bytes,
void *Buffer);
|
stand-alone
|
Write from the given buffer to the SRAM.
|
|
|