iLLD_TC29x
1.0
|
GPT12 basic functionality. More...
#include "_Impl/IfxGpt12_cfg.h"
#include "Src/Std/IfxSrc.h"
#include "_Utilities/Ifx_Assert.h"
#include "Scu/Std/IfxScuCcu.h"
#include "IfxGpt12_reg.h"
#include "_PinMap/IfxGpt12_PinMap.h"
Go to the source code of this file.
Functions | |
IFX_INLINE volatile Ifx_SRC_SRCR * | IfxGpt12_T2_getSrc (Ifx_GPT12 *gpt12) |
Returns the address of Timer 2 service request. More... | |
IFX_INLINE volatile Ifx_SRC_SRCR * | IfxGpt12_T3_getSrc (Ifx_GPT12 *gpt12) |
Returns the address of Timer 3 service request. More... | |
IFX_INLINE volatile Ifx_SRC_SRCR * | IfxGpt12_T4_getSrc (Ifx_GPT12 *gpt12) |
Returns the address of Timer 4 service request. More... | |
IFX_INLINE volatile Ifx_SRC_SRCR * | IfxGpt12_T5_getSrc (Ifx_GPT12 *gpt12) |
Returns the address of Timer 5 service request. More... | |
IFX_INLINE volatile Ifx_SRC_SRCR * | IfxGpt12_T6_getSrc (Ifx_GPT12 *gpt12) |
Returns the address of Timer 6 service request. More... | |
IFX_INLINE volatile Ifx_SRC_SRCR * | IfxGpt12_getCaptureSrc (Ifx_GPT12 *gpt12) |
Returns the address of capture service request. More... | |
IFX_INLINE void | IfxGpt12_T2_setCaptureInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CaptureInputMode inputMode) |
Sets the input edge selection for the capture mode of the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setCounterInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CounterInputMode inputMode) |
Sets the input edge selection for the counter mode of the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setDirectionSource (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirectionSource source) |
Sets the T2 timer count direction source internal / external. More... | |
IFX_INLINE void | IfxGpt12_T2_setEudInput (Ifx_GPT12 *gpt12, IfxGpt12_EudInput input) |
Sets the EUD input for the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setIncrementalInterfaceInputMode (Ifx_GPT12 *gpt12, IfxGpt12_IncrementalInterfaceInputMode inputMode) |
Sets the input edge selection for the incremental interface mode of the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setInput (Ifx_GPT12 *gpt12, IfxGpt12_Input input) |
Sets the input for the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setInterruptEnable (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the interrupt generation of the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setMode (Ifx_GPT12 *gpt12, IfxGpt12_Mode mode) |
Sets the mode of operation od T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setReloadInputMode (Ifx_GPT12 *gpt12, IfxGpt12_ReloadInputMode inputMode) |
Sets the input edge selection for the reload mode of the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setRemoteControl (Ifx_GPT12 *gpt12, IfxGpt12_TimerRemoteControl control) |
Sets the remote control of the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setTimerDirection (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirection direction) |
Sets the T2 timer count direction. More... | |
IFX_INLINE void | IfxGpt12_T2_setTimerPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_TimerInputPrescaler inputPrescaler) |
Sets the input prescaler for the Timer mode and Gated timer mode of T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_enableOutput (Ifx_GPT12 *gpt12, boolean enable) |
Enable / Disable the T3 Output on pin T3OUT. More... | |
IFX_INLINE void | IfxGpt12_T3_setCounterInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CounterInputMode inputMode) |
Sets the input edge selection for the counter mode of the T3 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_setDirectionSource (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirectionSource source) |
Sets the T3 timer count direction source internal / external. More... | |
IFX_INLINE void | IfxGpt12_T3_setEudInput (Ifx_GPT12 *gpt12, IfxGpt12_EudInput input) |
Sets the EUD input for the T3 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_setIncrementalInterfaceInputMode (Ifx_GPT12 *gpt12, IfxGpt12_IncrementalInterfaceInputMode inputMode) |
Sets the input edge selection for the incremental interface mode of the T3 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_setInput (Ifx_GPT12 *gpt12, IfxGpt12_Input input) |
Sets the input for the T3 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_setMode (Ifx_GPT12 *gpt12, IfxGpt12_Mode mode) |
Sets the mode of operation od T3 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_setTimerDirection (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirection direction) |
Sets the T3 timer count direction. More... | |
IFX_INLINE void | IfxGpt12_T3_setTimerPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_TimerInputPrescaler inputPrescaler) |
Sets the input prescaler for the Timer mode and Gated timer mode of T3 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_enableClearTimerT2 (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the clear timer T2 bit of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_enableClearTimerT3 (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the clear timer T3 bit of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setCaptureInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CaptureInputMode inputMode) |
Sets the input edge selection for the capture mode of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setCounterInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CounterInputMode inputMode) |
Sets the input edge selection for the counter mode of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setDirectionSource (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirectionSource source) |
Sets the T4 timer count direction source internal / external. More... | |
IFX_INLINE void | IfxGpt12_T4_setEudInput (Ifx_GPT12 *gpt12, IfxGpt12_EudInput input) |
Sets the EUD input for the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setIncrementalInterfaceInputMode (Ifx_GPT12 *gpt12, IfxGpt12_IncrementalInterfaceInputMode inputMode) |
Sets the input edge selection for the incremental interface mode of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setInput (Ifx_GPT12 *gpt12, IfxGpt12_Input input) |
Sets the input for the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setInterruptEnable (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the interrupt generation of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setMode (Ifx_GPT12 *gpt12, IfxGpt12_Mode mode) |
Sets the mode of operation od T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setReloadInputMode (Ifx_GPT12 *gpt12, IfxGpt12_ReloadInputMode inputMode) |
Sets the input edge selection for the reload mode of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setRemoteControl (Ifx_GPT12 *gpt12, IfxGpt12_TimerRemoteControl control) |
Sets the remote control of the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setTimerDirection (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirection direction) |
Sets the T4 timer count direction. More... | |
IFX_INLINE void | IfxGpt12_T4_setTimerPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_TimerInputPrescaler inputPrescaler) |
Sets the input prescaler for the Timer mode and Gated timer mode of T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_enableClearTimer (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the clear timer bit of the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setCaptureTrigger (Ifx_GPT12 *gpt12, IfxGpt12_CaptureTrigger trigger) |
Sets the capture trigger of teh T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setCaptureTriggerEnable (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the capture trigger of the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setCaptureTriggerMode (Ifx_GPT12 *gpt12, IfxGpt12_CaptureTriggerMode mode) |
Sets the capture trigger mode of the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setCounterInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CounterInputMode inputMode) |
Sets the input edge selection for the counter mode of the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setDirectionSource (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirectionSource source) |
Sets the T5 timer count direction source internal / external. More... | |
IFX_INLINE void | IfxGpt12_T5_setEudInput (Ifx_GPT12 *gpt12, IfxGpt12_EudInput input) |
Sets the EUD input for the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setInput (Ifx_GPT12 *gpt12, IfxGpt12_Input input) |
Sets the input for the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setMode (Ifx_GPT12 *gpt12, IfxGpt12_Mode mode) |
Sets the mode of operation od T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setRemoteControl (Ifx_GPT12 *gpt12, IfxGpt12_TimerRemoteControl control) |
Sets the remote control of the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setTimerDirection (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirection direction) |
Sets the T5 timer count direction. More... | |
IFX_INLINE void | IfxGpt12_T5_setTimerPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_TimerInputPrescaler inputPrescaler) |
Sets the input prescaler for the Timer mode and Gated timer mode of T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_enableClearTimer (Ifx_GPT12 *gpt12, boolean enabled) |
Enables / Disables the clear timer bit of the T6 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_setCounterInputMode (Ifx_GPT12 *gpt12, IfxGpt12_CounterInputMode inputMode) |
Sets the input edge selection for the counter mode of the T6 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_setDirectionSource (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirectionSource source) |
sets the T6 timer count direction source internal / external More... | |
IFX_INLINE void | IfxGpt12_T6_setEudInput (Ifx_GPT12 *gpt12, IfxGpt12_EudInput input) |
Sets the EUD input for the T6 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_setInput (Ifx_GPT12 *gpt12, IfxGpt12_Input input) |
Sets the input for the T6 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_setMode (Ifx_GPT12 *gpt12, IfxGpt12_Mode mode) |
Sets the mode of operation od T6 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_setTimerDirection (Ifx_GPT12 *gpt12, IfxGpt12_TimerDirection direction) |
sets the T6 timer count direction More... | |
IFX_INLINE void | IfxGpt12_T6_setTimerPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_TimerInputPrescaler inputPrescaler) |
Sets the input prescaler for the Timer mode and Gated timer mode of T6 timer. More... | |
IFX_INLINE void | IfxGpt12_initCapInPin (const IfxGpt12_TxIn_In *capIn, IfxPort_InputMode inputMode) |
Initializes a Capin_In input. More... | |
IFX_INLINE void | IfxGpt12_initTxOutPin (const IfxGpt12_TxOut_Out *txOut, IfxPort_OutputMode outputMode, IfxPort_PadDriver padDriver) |
Initializes a SLSO output. More... | |
IFX_INLINE void | IfxGpt12_setCaptureInput (Ifx_GPT12 *gpt12, IfxGpt12_CaptureInput input) |
Sets the capture input. More... | |
IFX_INLINE void | IfxGpt12_setGpt1BlockPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_Gpt1BlockPrescaler bps1) |
Sets the GPT1 block prescaler. More... | |
IFX_INLINE void | IfxGpt12_setGpt2BlockPrescaler (Ifx_GPT12 *gpt12, IfxGpt12_Gpt2BlockPrescaler bps2) |
Sets the GPT2 block prescaler. More... | |
IFX_EXTERN void | IfxGpt12_enableModule (Ifx_GPT12 *gpt12) |
Enables the module. More... | |
IFX_EXTERN void | IfxGpt12_initTxEudInPin (const IfxGpt12_TxEud_In *txEudIn, IfxPort_InputMode inputMode) |
Initializes a TxEUDIn_IN input. More... | |
IFX_EXTERN void | IfxGpt12_initTxInPin (const IfxGpt12_TxIn_In *txIn, IfxPort_InputMode inputMode) |
Initializes a TxIn input. More... | |
IFX_INLINE IfxGpt12_Mode | IfxGpt12_T2_getMode (Ifx_GPT12 *gpt12) |
Returns the operating mode of the T2 timer. More... | |
IFX_INLINE uint16 | IfxGpt12_T2_getTimerValue (Ifx_GPT12 *gpt12) |
Returns the timer value of the T2 timer. More... | |
IFX_INLINE IfxGpt12_Mode | IfxGpt12_T3_getMode (Ifx_GPT12 *gpt12) |
Returns the operating mode of the T3 timer. More... | |
IFX_INLINE uint16 | IfxGpt12_T3_getTimerValue (Ifx_GPT12 *gpt12) |
Returns the timer value of the T3 timer. More... | |
IFX_INLINE IfxGpt12_Mode | IfxGpt12_T4_getMode (Ifx_GPT12 *gpt12) |
Returns the operating mode of the T4 timer. More... | |
IFX_INLINE uint16 | IfxGpt12_T4_getTimerValue (Ifx_GPT12 *gpt12) |
Returns the timer value of the T4 timer. More... | |
IFX_INLINE IfxGpt12_Mode | IfxGpt12_T5_getMode (Ifx_GPT12 *gpt12) |
Returns the operating mode of the T5 timer. More... | |
IFX_INLINE uint16 | IfxGpt12_T5_getTimerValue (Ifx_GPT12 *gpt12) |
Returns the timer value of the T5 timer. More... | |
IFX_INLINE IfxGpt12_Mode | IfxGpt12_T6_getMode (Ifx_GPT12 *gpt12) |
Returns the operating mode of the T6 timer. More... | |
IFX_INLINE uint16 | IfxGpt12_T6_getTimerValue (Ifx_GPT12 *gpt12) |
Returns the timer value of the T6 timer. More... | |
IFX_INLINE float32 | IfxGpt12_getModuleFrequency (Ifx_GPT12 *gpt12) |
Returns the gpt12 module frequency. More... | |
IFX_EXTERN float32 | IfxGpt12_T2_getFrequency (Ifx_GPT12 *gpt12) |
Returns the frequency of the T2 timer. More... | |
IFX_EXTERN float32 | IfxGpt12_T3_getFrequency (Ifx_GPT12 *gpt12) |
Returns the frequency of the T3 timer. More... | |
IFX_EXTERN float32 | IfxGpt12_T4_getFrequency (Ifx_GPT12 *gpt12) |
Returns the frequency of the T4 timer. More... | |
IFX_EXTERN float32 | IfxGpt12_T5_getFrequency (Ifx_GPT12 *gpt12) |
Returns the frequency of the T5 timer. More... | |
IFX_EXTERN float32 | IfxGpt12_T6_getFrequency (Ifx_GPT12 *gpt12) |
Returns the frequency of the T6 timer. More... | |
IFX_INLINE void | IfxGpt12_T2_run (Ifx_GPT12 *gpt12, IfxGpt12_TimerRun runTimer) |
Starts / stops the T2 Timer. More... | |
IFX_INLINE void | IfxGpt12_T2_setTimerValue (Ifx_GPT12 *gpt12, uint16 value) |
Sets value for the T2 timer. More... | |
IFX_INLINE void | IfxGpt12_T3_run (Ifx_GPT12 *gpt12, IfxGpt12_TimerRun runTimer) |
Starts / stops the T3 Timer. More... | |
IFX_INLINE void | IfxGpt12_T3_setTimerValue (Ifx_GPT12 *gpt12, uint16 value) |
Sets value for the T3 Timer. More... | |
IFX_INLINE void | IfxGpt12_T4_run (Ifx_GPT12 *gpt12, IfxGpt12_TimerRun runTimer) |
Starts / stops the T4 Timer. More... | |
IFX_INLINE void | IfxGpt12_T4_setTimerValue (Ifx_GPT12 *gpt12, uint16 value) |
Sets value for the T4 timer. More... | |
IFX_INLINE void | IfxGpt12_T5_run (Ifx_GPT12 *gpt12, IfxGpt12_TimerRun runTimer) |
Starts / stops the T5 Timer. More... | |
IFX_INLINE void | IfxGpt12_T5_setTimerValue (Ifx_GPT12 *gpt12, uint16 value) |
Sets value for the T5 timer. More... | |
IFX_INLINE void | IfxGpt12_T6_run (Ifx_GPT12 *gpt12, IfxGpt12_TimerRun runTimer) |
Starts / stops the T6 Timer. More... | |
IFX_INLINE void | IfxGpt12_T6_setTimerValue (Ifx_GPT12 *gpt12, uint16 value) |
Sets value for the T6 timer. More... | |
IFX_INLINE void | IfxGpt12_setSleepMode (Ifx_GPT12 *gpt12, IfxGpt12_SleepMode mode) |
Sets the sensitivity of the module to sleep signal. More... | |
IFX_EXTERN void | IfxGpt12_resetModule (Ifx_GPT12 *gpt12) |
resets GPT12 kernel More... | |
GPT12 basic functionality.
IMPORTANT NOTICE
Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.
THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
Definition in file IfxGpt12.h.