19.08.2013 Views

User Manual DSPC-8601-USBE

User Manual DSPC-8601-USBE

User Manual DSPC-8601-USBE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.1 Introduction<br />

The SDK supports two modes, Object mode and API mode, and users can choose<br />

either one for the SDK. Both modes are described below. For detailed information for<br />

the SDK, please refer to the manual installed with the SDK.<br />

6.2 Object Mode<br />

Call the API “<strong>DSPC</strong><strong>8601</strong>_CreateInstance” to create the I<strong>DSPC</strong><strong>8601</strong>SDK instance for<br />

the specified board first. Then users can use the methods for interface<br />

I<strong>DSPC</strong><strong>8601</strong>SDK directly. Call method “Release” of I<strong>DSPC</strong><strong>8601</strong>SDK to release all<br />

resources when the instance will never be used. A sample code is shown below.<br />

int nBoardID = 0;<br />

I<strong>DSPC</strong><strong>8601</strong>SDK * p<strong>DSPC</strong><strong>8601</strong> = NULL;<br />

if<br />

SPC<strong>8601</strong>_CreateInstance ( nBoardID, ( void ** )&p<strong>DSPC</strong><strong>8601</strong> ) )<br />

{<br />

p<strong>DSPC</strong><strong>8601</strong>->Open();<br />

p<strong>DSPC</strong><strong>8601</strong>->Start(<br />

TRUE,<br />

FALSE,<br />

FALSE,<br />

GetDlgItem( IDC_PREVIEW_DLG )-> GetSafeHwnd(),<br />

FALSE );<br />

......<br />

p<strong>DSPC</strong><strong>8601</strong>->Stop();<br />

p<strong>DSPC</strong><strong>8601</strong>->Close();<br />

p<strong>DSPC</strong><strong>8601</strong>->Release();// Release instance<br />

p<strong>DSPC</strong><strong>8601</strong> = NULL;<br />

}<br />

<strong>DSPC</strong>-<strong>8601</strong> <strong>User</strong> <strong>Manual</strong> 30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!