User`s guide

High-Speed Simultaneous Transfer
Target Library Interface
285Targeting MC56F83xx/DSP5685x Controllers
Parameters
stream
Passes a pointer to the communication channel.
dir_name
Passes a pointer to the path to the directory in which to store temporary log files.
Returns
0 if the call was successful or -1 if the call was unsuccessful.
HSST Target Program Example
In Listing 9.2 the HSST target program runs in parallel with the host plugin. The target
communicates with the host-side (your computer).
NOTE
To restart the program after execution, click on Restart HSST as
shown in Figure 9.1.
Listing 9.2 Sample HSST Target Program
#include <stdio.h>
#include <stdlib.h>
#include "HSST.h"
#define buf_size 1000 /* Data size */
long i, test_buffer[buf_size];
int main ( )
{
HSST_STREAM *channel_1, *channel_2;
int written_items=0;
int read_items=0;
for ( i = 0; i < buf_size; ++ i )
{
test_buffer[i] = i;
}