10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

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.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>TURxGetBlock – Receive a block of bytes with timeoutDescription:Prototype:Inputs:Returns:Receive a block of bytes with timeoutlong TURxGetBlock(TUPort *tup, uchar *buffer, long bytes, short millisecs);*tup is a pointer to the port*buffer is a pointer to the buffer to hold the bytesbytes is the maximum number of bytesmillisecs is the number of milliseconds to wait before timing outThe number of bytes readNotes:TURxPeekByte – Fetch Nth byte in receive queue without deletingDescription:Prototype:Inputs:Returns:Fetch Nth byte in receive queue without deletingshort TURxPeekByte(TUPort *tup, short index);*tup is a pointer to the portindex is the offset (index) within the input queue from which to extract the byteThe byte at the offset (index)Notes:TURxQueuedCount – Return the number of words in the receive queueDescription:Prototype:Inputs:Returns:Return the number of words in the receive queueshort TURxQueuedCount(TUPort *tup);*tup is a pointer to the portThe number of words (bytes) in the receive queueNotes:TUSetDefaultParams – Setup new default TPU UART open parametersDescription:Prototype:Inputs:Returns:Notes:Setup new default TPU UART open parametersvoid TUSetDefaultParams(TUChParams *rp);*rp is a pointer to a TUChParams struct containing the new parametersNothingThe new setting will only apply to ports opened after the set call.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.72 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

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

Saved successfully!

Ooh no, something went wrong!