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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>TPU UartSummary of TPU Drivers and FunctionsTUBlockDurationTUCloseTUGetDefaultParamsTUInitTUOpenTUReleaseTURxFlushTURxGetByteTURxGetByteWithTimeoutTURxGetBlockTURxPeekByteTURxQueuedCountTUSetDefaultParamsTUTxFlushTUTxPrintfTUTxPutByteTUTxPutBlockTUTxQueuedCountTUTxWaitCompletionReturn expected block duration in ms at current baudClose the specified port and release its memoryReturn the default TPU UART open parametersInitialize the TPU UART moduleOpen a TPU UART port for serial communicationsClose all ports then release all memory and resources allocated to TPU UARTsDelete any data in the receive queueWait for, and return the next wordReturn next wordReceive a block of bytes with timeoutFetch Nth byte in receive queue without deletingReturn the number of words in the receive queueSetup new default TPU UART open parametersDelete any data in the transmit queueTransmit using standard printf conventionsSend byteTransmit a block of bytes with timeoutReturn the number of words in the transmit queueWait for all transmission to completeTUBlockDuration – Return expected block duration in ms at current baudDescription:Prototype:Inputs:Returns:wordlong TUBlockDuration(TUPort *tup, long bytes);*tup is a pointer to the portbytes is number of bytes for computationTransmission duration in millisecondsNotes:PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.69 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!