CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API Reference (PDF) - Persistor Instruments Inc CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API ReferencePIOSet -- Configure I/O pin as output and set highDescription:Prototype:Inputs:Returns:Configures an individual bit of an I/O port as an output driving high. The pin argument can bespecified as numerical value between 1 and 50 corresponding to the CF2 pin out on connector C.short PIOSet(short pin);pin is the pin number to act onReturns the current level (after setting) or -1 if there's an errorPIOTestAssertClear -- Return true if I/O pin is currently an output asserting lowDescription:Prototype:Inputs:Returns:This function tests to see if the specified pin is configured as an output and is asserted low.short PIOTestAssertClear (short pin);pin is the pin number to test.Returns nonzero if the pin is set low, and zero if the pin is set high or is not an I/O output.PIOTestAssertSet -- Return true if I/O pin is currently an output asserting highDescription:Prototype:Inputs:Returns:Return TRUE if I/O pin is currently an output asserting highshort PIOTestAssertSet (short pin);pin is the pin number to test.Returns nonzero if the pin is set high, and zero if the pin is set low or is not an I/O output.PIOToggle -- Configure I/O pin as output and toggle current levelDescription:Prototype:Inputs:Returns:Configures an individual bit of an I/O port as an output driving at the opposite of the currentlevel. The pin argument can be specified as numerical value between 1 and 50 corresponding tothe CF2 pin out on connector C.short PIOToggle(short pin);pin is the pin number to act onReturns the current level (after toggling) or -1 if there's an errorPIOWrite -- Configure I/O pin as output and write levelDescription:Prototype:Inputs:Returns:Configures an individual bit of an I/O port as an output driving at the specified level. The pinargument can be specified as numerical value between 1 and 50 corresponding to the CF2 pinout on connector C.short PIOWrite(short pin, short value);pin is the pin number to act onvalue is the value (0 or 1) that you wish to write to the pin.Returns the current level (after setting) or -1 if there's an errorPERSISTORInstruments Inc.34 of 84CF2 API Reference7/19/2005
CF2 API ReferencePing-Pong Buffer FunctionsSummary of Ping-Pong Buffer FunctionsPPBCheckRdAvailPPBCheckWrFreePPBClosePPBFlushPPBGetMemBufPPBOpenPPBPutBytePPBPutWordPPBReadPPBWriteReturn the number of bytes waiting to be readReturn the free space left before a wrapClose a ping-pong buffer (does not automatically flush)Flush a ping-pong buffer and force a ping-pong flipReturn the read buffer and optionally zero the sizeOpen and initialize a ping-pong bufferWrite 8-bit byte into the ping-pong bufferWrite 16-bit word into the ping-pong bufferRead data from the ping-pong bufferWrite data into the ping-pong bufferPPBCheckRdAvail -- Return the number of bytes waiting to be readDescription:Prototype:Inputs:Returns:Return the number of bytes waiting to be readlong PPBCheckRdAvail(void *ppb);ppb is the generic pointer returned by PPBOpen and used internally to manage the buffers.Returns the count of available bytes in the read bufferPPBCheckWrFree -- Return the free space left before a wrapDescription:Prototype:Inputs:Returns:Return the free space left before a wraplong PPBCheckWrFree(void *ppb);ppb is the generic pointer returned by PPBOpen and used internally to manage the buffers.Returns the number of bytes that can be written before the buffer ping-pongsPPBClose -- Close a ping-pong buffer (does not automatically flush)Description:Prototype:Inputs:Returns:Close a ping-pong buffer (does not automatically flush)void PPBClose(void *ppb);ppb is the generic pointer returned by PPBOpen and used internally to manage the buffers.Returns nothingPERSISTORInstruments Inc.35 of 84CF2 API Reference7/19/2005
- Page 1 and 2: PERSISTOR ® CF2API ReferenceCopyri
- Page 3 and 4: CF2 API ReferenceATA Device Drivers
- Page 5 and 6: CF2 API ReferenceBigIDEA IDE Driver
- Page 7 and 8: CF2 API ReferenceBIOSVersionCheck -
- Page 9 and 10: CF2 API ReferenceCheckSum32 -- Upda
- Page 11 and 12: CF2 API ReferenceChip Select Wrappe
- Page 13 and 14: CF2 API ReferenceCompactFlash Low L
- Page 15 and 16: CF2 API ReferenceBelow are macros d
- Page 17 and 18: CF2 API ReferenceCIOprintf - Simple
- Page 19 and 20: CF2 API Referenceuprintf -- A clone
- Page 21 and 22: CF2 API ReferenceDIRMatchName -- Re
- Page 23 and 24: CF2 API ReferenceLED Signal Functio
- Page 25 and 26: CF2 API ReferencePeriodic Interrupt
- Page 27 and 28: CF2 API ReferencePicoDOS Initializa
- Page 29 and 30: CF2 API ReferencePin I/O Drivers, F
- Page 31 and 32: CF2 API ReferencePinIO -- Make an I
- Page 33: CF2 API ReferencePIOClear -- Config
- Page 37 and 38: CF2 API ReferencePPBPutWord -- Writ
- Page 39 and 40: CF2 API ReferenceQSMRun - Start the
- Page 41 and 42: CF2 API ReferenceQuery/Reply Functi
- Page 43 and 44: CF2 API ReferenceQRdouble -- Query/
- Page 45 and 46: CF2 API ReferenceQueued PicoBUS (QS
- Page 47 and 48: CF2 API ReferenceQPBSetup -- Set up
- Page 49 and 50: CF2 API ReferenceReal Time Clock Dr
- Page 51 and 52: CF2 API ReferenceRTCtime -- ANSI st
- Page 53 and 54: CF2 API ReferenceSTDIO WarningThe A
- Page 55 and 56: CF2 API ReferenceSCIRxFlush -- Dele
- Page 57 and 58: CF2 API ReferenceSCIRxTxIdle -- Ret
- Page 59 and 60: CF2 API ReferenceSCITxWaitCompletio
- Page 61 and 62: CF2 API ReferenceTable Driven Comma
- Page 63 and 64: CF2 API ReferenceCmdIsNumber- Is Co
- Page 65 and 66: CF2 API ReferenceTime Processing Un
- Page 67 and 68: CF2 API ReferencePrototype:Inputs:N
- Page 69 and 70: CF2 API ReferenceTPU UartSummary of
- Page 71 and 72: CF2 API ReferenceTUOpen - Open a TP
- Page 73 and 74: CF2 API ReferenceTUTxFlush - Delete
- Page 75 and 76: CF2 API ReferenceUtility Functionse
- Page 77 and 78: CF2 API Referencesscantime -- scan
- Page 79 and 80: CF2 API ReferenceVEEDelete -- Delet
- Page 81 and 82: CF2 API ReferenceVEEStoreFloat -- S
- Page 83 and 84: CF2 API ReferencePinBus, 30PinClear
<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>PIOSet -- Configure I/O pin as output and set highDescription:Prototype:Inputs:Returns:Configures an individual bit of an I/O port as an output driving high. The pin argument can bespecified as numerical value between 1 and 50 corresponding to the <strong>CF2</strong> pin out on connector C.short PIOSet(short pin);pin is the pin number to act onReturns the current level (after setting) or -1 if there's an errorPIOTestAssertClear -- Return true if I/O pin is currently an output asserting lowDescription:Prototype:Inputs:Returns:This function tests to see if the specified pin is configured as an output and is asserted low.short PIOTestAssertClear (short pin);pin is the pin number to test.Returns nonzero if the pin is set low, and zero if the pin is set high or is not an I/O output.PIOTestAssertSet -- Return true if I/O pin is currently an output asserting highDescription:Prototype:Inputs:Returns:Return TRUE if I/O pin is currently an output asserting highshort PIOTestAssertSet (short pin);pin is the pin number to test.Returns nonzero if the pin is set high, and zero if the pin is set low or is not an I/O output.PIOToggle -- Configure I/O pin as output and toggle current levelDescription:Prototype:Inputs:Returns:Configures an individual bit of an I/O port as an output driving at the opposite of the currentlevel. The pin argument can be specified as numerical value between 1 and 50 corresponding tothe <strong>CF2</strong> pin out on connector C.short PIOToggle(short pin);pin is the pin number to act onReturns the current level (after toggling) or -1 if there's an errorPIOWrite -- Configure I/O pin as output and write levelDescription:Prototype:Inputs:Returns:Configures an individual bit of an I/O port as an output driving at the specified level. The pinargument can be specified as numerical value between 1 and 50 corresponding to the <strong>CF2</strong> pinout on connector C.short PIOWrite(short pin, short value);pin is the pin number to act onvalue is the value (0 or 1) that you wish to write to the pin.Returns the current level (after setting) or -1 if there's an errorPERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.34 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005