CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc CF2 API Reference (PDF) - Persistor Instruments Inc

persistor.com
from persistor.com More from this publisher
10.07.2015 Views

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

<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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!