User`s guide

Stream I/O—Reading and Writing Streams
7-14
The complete source code and configuration template for Example 7-6 can
be found in the c:\ti\tutorial\target\siotest directory of the DSP/BIOS product
distribution (siotest2.c, siotest2.cdb, dgn_print.c). For more details on how to
add and configure a DGN device using the Configuration Tool, see the DGN
section in the TMS320 DSP/BIOS API Reference Guide for your platform.
In the output for this example, sine wave data appears in the myLog window
display.
Figure 7-5. Results Window for Example 7-6.
7.3.4 Example - Stream I/O using the Issue/Reclaim Model
Example 7-7 is functionally equivalent to Example 7-6. However, the streams
are now created using the Issue/Reclaim model, and the SIO operations to
read and write data to a stream are SIO_issue and SIO_reclaim.
In this model, when streams are created dynamically, no buffers are initially
allocated so the application must allocate the necessary buffers and provide
them to the streams to be used for data I/O. For static streams, you can
allocate static buffers with the Configuration Tool by checking the Allocate
Static Buffer(s) check box for the SIO object.