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>PIN macros vs. PIO functionsPIN functionsInline assembly macrosfasterrequire compile time literalargumentsdo not verify pin conditionsPIO functionsStandard C functionsslowercan pass variablesdo verify pin conditionsPinBus Make pin perform function PIOBusFunct Make pin perform functionPinTestIsItBus Is pin performing its function?PIOTestAssertClearPIOTestAssertSetReturn true if pin is a low outputReturn true if pin is a high outputPinIOMake pin perform I/O functionPinRead Configure as input and read PIORead Configure as input and readPinSet Configure as output and set high PIOSet Configure as output and set highPinWrite Configure as output low or high PIOWrite Configure as output as low or highPinClear Configure as output and set low PIOClear Configure as output and set lowPinMirror Read and output level read PIOMirrorPIOMirrorListRead and output level readRead a list of pins and output level readPinToggle Configure as output and toggle PIOToggle Configure as output and togglePinBus -- Make an I/O pin perform its bus function (varies)Description:Prototype:Inputs:Notes:Configures one of the I/O ports to act as its bus function instead of as an I/O pin.void PinBus(short pin);pin is the pin to act on.1) All arguments to the macro functions must be compile-time literals2) Pin must be in Pin I/O mode or the operation may fail.PinClear -- Configure I/O pin as output and set lowDescription:Prototype:Inputs:Notes:Directly clears one of the I/O ports.void PinClear(PinID pin);pin is the pin to clear1) All arguments to the macro functions must be compile-time literals2) Pin must be in Pin I/O mode or the operation may fail.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.30 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!