CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API Reference (PDF) - Persistor Instruments Inc CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API ReferencePower Management Drivers and FunctionsSummary of Power Management Drivers and FunctionsLPStopLPStopCSEQSMRunQSMStopPWRLPStopSetupPWRSuspendSecsPWRSuspendUntilPWRPreChgAddChorePWRPreChgRemoveChorePWRPostChgAddChoreExecute LPSTOP with options previously setup.Execute LPSTOP and set the passed bits to control powering down other modules.Start the Queued Serial Module.Stop the Queued Serial Module.Setup LPSTOP CLKOUT driven.Delay in suspend mode for a number of seconds.Delay in suspend mode until a future time.Add a power pre-change chore.Remove a power pre-change chore.Add a power post-change chore.PWRPostChgRemoveChore Remove a power post-change chore.LPStop – Executes LPSTOP with options previously setupDescription:Prototype:Inputs:Returns:Executes LPSTOP with options previously setupvoid LPStop(void);NoneNothingLPStopCSE – Execute LPSTOP and set the passed bits to control powering downDescription:Prototype:Inputs:Returns:Execute an LPSTOP and set the passed bits to control powering down other modules.void LPStopCSE(uchar csebits);LPStopCSE modifies SYNCR with bits specifying:bit 1 (0x02) = 1 is VCO running and driving SIMCLKbit 0 (0x01) = 1 is external clock driven as determined by STSIMYou will use one of the following:Lowest Power - FullStopFast IRQ Response – FastStopSubmodules Running – CPUStopNothingPERSISTORInstruments Inc.38 of 84CF2 API Reference7/19/2005
CF2 API ReferenceQSMRun – Start the Queued Serial ModuleDescription:Prototype:Inputs:Returns:Notes:Start the Queued Serial Modulevoid QSMRun(void);NoneNothingmacro inserts in-line code for fast operationQSMStop – Stop the Queued Serial ModuleDescription:Prototype:Inputs:Returns:Notes:Stop the Queued Serial Modulevoid QSMStop(void);NoneNothingmacro inserts in-line code for fast operationPWRLPStopSetup – Setup LPSTOP CLKOUT drivenDescription:Prototype:Inputs:Returns:Setup LPSTOP CLKOUT drivenvoid PWRLPStopSetup(bool stcpu, bool stsim, bool stext);stcpu TRUE stops just cpustsim TRUE clock stays VCOstext TRUE CLKOUT drivenNothingPWRSuspendSecs – Delay in suspend mode for a number of secondsDescription:Prototype:Inputs:Returns:Delay in suspend mode for a number of secondsWhatWokeSuspend PWRSuspendSecs(ulong delaysecs, bool resume, shortWhatWakesSuspend);delaysecs is the delay in seconds as a long valueresume is a Boolean value where TRUE means continue execution at the line following the calland FALSE will force a RESETWhatWakesSuspend is a flag to indicate what is allowed to wake up early (e.g. the wake pin)An unermerated value (WhatWakesSuspend) indicating what really woke us.PERSISTORInstruments Inc.39 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 and 34: CF2 API ReferencePIOClear -- Config
- Page 35 and 36: CF2 API ReferencePing-Pong Buffer F
- Page 37: CF2 API ReferencePPBPutWord -- Writ
- 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>QSMRun – Start the Queued Serial ModuleDescription:Prototype:Inputs:Returns:Notes:Start the Queued Serial Modulevoid QSMRun(void);NoneNothingmacro inserts in-line code for fast operationQSMStop – Stop the Queued Serial ModuleDescription:Prototype:Inputs:Returns:Notes:Stop the Queued Serial Modulevoid QSMStop(void);NoneNothingmacro inserts in-line code for fast operationPWRLPStopSetup – Setup LPSTOP CLKOUT drivenDescription:Prototype:Inputs:Returns:Setup LPSTOP CLKOUT drivenvoid PWRLPStopSetup(bool stcpu, bool stsim, bool stext);stcpu TRUE stops just cpustsim TRUE clock stays VCOstext TRUE CLKOUT drivenNothingPWRSuspendSecs – Delay in suspend mode for a number of secondsDescription:Prototype:Inputs:Returns:Delay in suspend mode for a number of secondsWhatWokeSuspend PWRSuspendSecs(ulong delaysecs, bool resume, shortWhatWakesSuspend);delaysecs is the delay in seconds as a long valueresume is a Boolean value where TRUE means continue execution at the line following the calland FALSE will force a RESETWhatWakesSuspend is a flag to indicate what is allowed to wake up early (e.g. the wake pin)An unermerated value (WhatWakesSuspend) indicating what really woke us.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.39 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005