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>Time Processing Unit <strong>API</strong>See also:C:\Program Files\<strong>Persistor</strong>\MotoCross Support\CFX\Headers_cfx_tpu.hC:\Program Files\<strong>Persistor</strong>\MotoCross Support\CFX\Docs\pdf\TPU\...TPURefManual_tpurmad.pdf plus function description docs.Summary of TPU Drivers and FunctionsTPUInitTPURunInitialize the counter/timer moduleStart or stop the TPU module from runningTPUChannelSetup Setup a TPU channel and register its setup [ NOT IMPLEMENTED ]TPUChannelFunctionSelectTPUChannelPrioritySelectTPUHostServiceSessionTPUHostSequenceSelectSet the TPU channel functionSet the TPU channel priorityInitiate a TPU channel host service request sessionSet the TPU channel host sequence bitsTPUHostServiceCheckComplete Check the TPU channel host service status and optionally waitTPUGetTCR1ClockGet the TCR1 clock rate in HzTPUDisableInterrupt Disable interrupts for the specified TPU channel [ INLINE ]TPUEnableInterruptTPUClearInterruptTPUCheckInterruptTPUCheckPriorityEnable interrupts for the specified TPU channel [INLINE]Clear the interrupt flag for the specified TPU channel [INLINE]Return non-zero if the specified TPU channel’s interrupt flag is set [INLINE]Return the specified TPU channel’s priority setting [INLINE]TPUChanFromPin Translate <strong>CF2</strong> pin number to TPU channel number (1-15) [ MACRO ]TPUPinFromChan Translate TPU channel number (1-15) to <strong>CF2</strong> pin number [ MACRO ]TPUInit – Initialize the counter/timer moduleDescription:Prototype:Notes:Called by PicoDOS to initialize the TPU module after reset, before and after running anapplication, and on completion of a suspend operation.void TPUInit(void);On exit all TPU channels are DIO inputs.TPURun– Start or stop the TPU module from runningDescription:Prototype:Inputs:Notes:The TPU runs unless you explicitly stop it or enter the LPStop or Suspend modes.void TPURun(bool run);run true to start, false to stopIt is recommended that you keep the TPU running to enable the TPU digital I/O functions andthe TLC: the fast-access, local real-time clock function in reserved TPU channel 0.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.65 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!