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>CIOgetq – Return non-zero count if input data is availableDescription:Prototype:Inputs:Returns:Returns the number of characters or zero if no input characters are waiting.short CIOgetq(void);NoneNumber of characters availableCIOgets – Input line with minimal editing featuresDescription:Prototype:Inputs:Returns:Get a line of input.short CIOgets(char *buf, short len);*buf is a pointer to destination storage for characterslen is the maximum length for the storageThe number of characters readCIOhexdump – Dump memory in hex and ASCII to the consoleDescription:Prototype:Inputs:Returns:Provided to enable display of hex data to the console for debugging or whatever the need.bool CIOhexdump(void *mem, ulong addr, short wsize, long bytecount);*mem is a pointer to the start address to dumpaddr is the start address to displaywsize is the display format 1 for byte, 2 for word, and 4 for long wordbytecount is the total number of bytes to displayReturns TRUE only if the display was interrupted by detection of a console input character(which is gobbled with CIOgetc).CIOiflush – Flush any pending input dataDescription:Prototype:Inputs:Returns:Flushes the input buffer of any data.short CIOiflush(void);NoneReturns TRUE if bytes were flushed as a result of the call, FALSE if the queue was already emptyand no data was flushed.CIOoflush – Discard any queued transmit charactersDescription:Prototype:Inputs:Returns:Flushes the transmit buffer.void CIOoflush(void);NoneNothingPERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.16 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!