User`s guide
High-Speed Simultaneous Transfer
Target Library Interface
279Targeting MC56F83xx/DSP5685x Controllers
Prototype
int HSST_close ( HSST_STREAM *stream );
Parameters
stream
Passes a pointer to the communication channel.
Returns
0 if the call was successful or -1 if the call was unsuccessful.
HSST_setvbuf
A target application can use this function to perform the following actions:
• Set an open channel opened in write mode to use buffered mode
NOTE
This can greatly improve performance.
• Resize the buffer in an existing buffered channel opened in write mode
• Provide an external buffer for an existing channel opened in write mode
• Reset buffering to unbuffered mode
You can use this function only after you successfully open the channel.
The contents of a buffer (either internal or external) at any time are indeterminate.
Prototype
int HSST_setvbuf (
HSST_STREAM *rs,
unsigned char *buf,
int mode,
size_t size );
Parameters
rs
Specifies a pointer to the communication channel.