Functional description, Host comport, Cpread – Sundance SMT6035 v.2.2 User Manual

Page 16: 11 functional description, 12 host comport

Advertising
background image

Version 2.2

Page 16 of 39

SMT6035 User Manual

11 Functional description

Once the interface to the hardware has been obtained by calling
SmtOpenBoard(), it allows you to access the following features available on
various Sundance carrier boards.

Functionality

SMT320-327

SMT300-310-310Q

Comport access

Supported

Supported

Downloading files

Supported

Supported

Mailboxes Not

supported

Supported

High speed channel

Not supported

Supported

Board state

Supported

Supported

Read and write carrier board registers Supported

Supported

PCI bridge chip register access

Supported

Supported

DSP Interrupt

Supported

Supported

Table 2 - Supported functionality for Sundance carrier boards

12 Host comport

The simplest and most general I/O mechanism that can be used to communicate
between the host and the Root DSP is the host comport.
It is a sequential, bi-directional link that gives typical transfer speeds of up to
2MB/s. It is also used for loading programs into the DSP. Please refer to the user
manual of your TIM for more information about the supported file formats.
Blocking functions are used to transfer data over this link: they do not return until
the transfer has completed. To force completion of pending read or write
operations, throw an exception of type SMTExc using CpCancel().

12.1 CpRead

Reads data from the comport.

Prototype:

void IFHw::CpRead( void *pBuf, UINT nBytes )

Parameters:

pBuf

Pointer to a buffer receiving the data read from the
comport.

User Manual - Version 2.2, 04/01/07; © Sundance Italia S.R.L.

Advertising