Functional description, Host comport, Cpread – Sundance SMT6025 v.2.9 User Manual
Page 16: 11 functional description, 12 host comport

Version 2.9
Page 16 of 45
SMT6025 User Manual
11 Functional description
Once an interface to the hardware has been obtained by calling
SmtOpenBoard(), the interface 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. Refer to the user
manual of your TIM for information about the supported file formats.
The functions used to transfer data over this link are blocking. This means that
they do not return until the transfer has completed. To force pending read or
write operation to complete by throwing an exception of the type SMTExc, use
CpCancel().
12.1 CpRead
Read data from the comport.
Prototype:
void IFHw::CpRead( void *pBuf, UINT nBytes )
Parameters:
pBuf
Pointer to a buffer to receive the data read from the
comport.
User Manual (QCF42); Version 2.9, 22/02/02; © Sundance Multiprocessor Technology Ltd. 2002