CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API Reference (PDF) - Persistor Instruments Inc
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>Below are macros defined in along with their derivations.Red items are documented in this Console sectionBlue items are documented in the SCI sectionMACRO MAPS to MACRO MAPS TO FUNCTION USES BY DEFAULTkbhit() cgetq() CIOgetq() SCIRxQueuedCount()getch() cgetc() CIOgetc() SCIRxGetChar()kbflush() ciflush() CIOiflush() (SCIRxGetCharWaitIdle(1) !=putch(c) cputc(c) CIOputc(c) SCITxPutChar(c)putflush() cdrain() CIOdrain() SCITxWaitCompletion()coflush() CIOoflush() SCITxFlush()cgetclp(x) CIOgetclp(x) SCIRxGetChar() + low powercgetclp(x) CIOgetclp(x) SCIRxGetChar() + low powergetstr(s,n) cgets(s,n) CIOgets(s,n) uses CIOgetcputstr(s) cputs(s) CIOputs(s) uses CIOputc with CR-LFuprintf cprintf CIOprintf uses CIOputc with CR-LFcsprintf CIOsprintf uses no I/Ocvprintf CIOvprintf uses CIOputc with CR-LFhexdump chexdump CIOhexdump uses CIOputc/CIOgetqcstructdump(st)carraydump(ar)chexdump((void*)&st,(ulong)&st,1,sizeof(st))chexdump((void*)ar,(ulong)&ar,sizeof(*ar),sizeof(ar))CIOdrain – Wait for all transmissions to completeDescription:Prototype:Inputs:Returns:Forces and waits for all characters in the transmit buffer to be transmitted.void CIOdrain(void);NothingNothingCIOgetc – Wait for, and return the next characterDescription:Prototype:Inputs:Returns:Wait for the next input character.short CIOgetc(void);NoneThe character received.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.15 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005