iLLD_TC29x
1.0
|
GTM basic functionality. More...
#include "_Impl/IfxGtm_cfg.h"
#include "IfxGtm.h"
#include "IfxGtm_Tbu.h"
#include "Src/Std/IfxSrc.h"
#include "IfxGtm_Cmu.h"
Go to the source code of this file.
Enumerations | |
enum | IfxGtm_Atom_Ch_OutputTrigger { IfxGtm_Atom_Ch_OutputTrigger_forward = 0, IfxGtm_Atom_Ch_OutputTrigger_generate = 1 } |
Reset source for channel counter CN0. More... | |
enum | IfxGtm_Atom_Ch_ResetEvent { IfxGtm_Atom_Ch_ResetEvent_onCm0 = 0, IfxGtm_Atom_Ch_ResetEvent_onTrigger = 1 } |
Reset event for channel counter CN0. More... | |
enum | IfxGtm_Atom_Mode { IfxGtm_Atom_Mode_outputImmediate, IfxGtm_Atom_Mode_outputCompare, IfxGtm_Atom_Mode_outputPwm, IfxGtm_Atom_Mode_outputSerial } |
Enum for ATOM mode. More... | |
Functions | |
IFX_INLINE Ifx_GTM_ATOM_CH * | IfxGtm_Atom_Ch_getChannelPointer (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the base addredd of selected Atom channel. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_clearOneNotification (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Clears the channel One notification. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_clearZeroNotification (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Clears the channel Zero notification. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_configurePwmMode (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, IfxGtm_Cmu_Clk clock, Ifx_ActiveState activeState, IfxGtm_Atom_Ch_ResetEvent resetEvent, IfxGtm_Atom_Ch_OutputTrigger trigger) |
IFX_EXTERN float32 | IfxGtm_Atom_Ch_getClockFrequency (Ifx_GTM *gtm, Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the ATOM channel input clock frequency in Hz. More... | |
IFX_EXTERN IfxGtm_Cmu_Clk | IfxGtm_Atom_Ch_getClockSource (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the channel clock source. More... | |
IFX_EXTERN uint32 | IfxGtm_Atom_Ch_getCompareOne (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the compare one value. More... | |
IFX_EXTERN volatile uint32 * | IfxGtm_Atom_Ch_getCompareOnePointer (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the compare one pointer. More... | |
IFX_EXTERN uint32 | IfxGtm_Atom_Ch_getCompareZero (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the compare zero value. More... | |
IFX_EXTERN volatile uint32 * | IfxGtm_Atom_Ch_getCompareZeroPointer (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the compare zero pointer. More... | |
IFX_EXTERN boolean | IfxGtm_Atom_Ch_getOutputLevel (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Gets the ATOM output level. More... | |
IFX_EXTERN volatile Ifx_SRC_SRCR * | IfxGtm_Atom_Ch_getSrcPointer (Ifx_GTM *gtm, IfxGtm_Atom atom, IfxGtm_Atom_Ch channel) |
Returns a pointer to the ATOM channel SRC. More... | |
IFX_EXTERN volatile uint32 * | IfxGtm_Atom_Ch_getTimerPointer (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the Timer pointer. More... | |
IFX_EXTERN boolean | IfxGtm_Atom_Ch_isOneNotification (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the status of channel One notification. More... | |
IFX_EXTERN boolean | IfxGtm_Atom_Ch_isZeroNotification (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Returns the status of channel Zero notification. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_raiseInterruptOne (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Raises the interrupt for Compare 1. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_raiseInterruptZero (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel) |
Raises the interrupt for Compare 0. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setClockSource (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, IfxGtm_Cmu_Clk clock) |
Sets the channel clock source. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCompare (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 compareZero, uint32 compareOne) |
Sets the compare 0 and 1 values. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCompareOne (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 compareOne) |
Sets the compare 1 value. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCompareOneShadow (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 shadowOne) |
Sets the compare 1 shadow value. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCompareShadow (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 shadowZero, uint32 shadowOne) |
Sets the compare 0 and 1 shadow values. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCompareZero (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 compareZero) |
Sets the compare 0 value. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCompareZeroShadow (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 shadowZero) |
Sets the compare 0 shadow value. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setCounterValue (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, uint32 value) |
Sets the counter value. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setMode (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, IfxGtm_Atom_Mode mode) |
set the Atom operating mode More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setNotification (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, IfxGtm_IrqMode mode, boolean interruptOnCompareZero, boolean interruptOnCompareOne) |
Sets the channel notification. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setOneShotMode (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, boolean enabled) |
Enable/disable the one shot mode. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setResetSource (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, IfxGtm_Atom_Ch_ResetEvent event) |
Sets the channel clock source either from local or from previous channel. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setSignalLevel (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, Ifx_ActiveState activeState) |
Sets the signal level. More... | |
IFX_EXTERN void | IfxGtm_Atom_Ch_setTriggerOutput (Ifx_GTM_ATOM *atom, IfxGtm_Atom_Ch channel, IfxGtm_Atom_Ch_OutputTrigger trigger) |
Sets the channel trigger output. More... | |
IFX_EXTERN uint32 | IfxGtm_Atom_Agc_buildFeatureForChannel (IfxGtm_Atom_Ch channel, boolean enabled, uint8 bitfieldOffset) |
Builds the register value for the feature enable/disable for a single channel. More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannel (Ifx_GTM_ATOM_AGC *agc, IfxGtm_Atom_Ch channel, boolean enabled, boolean immediate) |
Enable/disable one channel (ENDIS) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannelOutput (Ifx_GTM_ATOM_AGC *agc, IfxGtm_Atom_Ch channel, boolean enabled, boolean immediate) |
Enable/disable one channel output (OUTEN) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannelUpdate (Ifx_GTM_ATOM_AGC *agc, IfxGtm_Atom_Ch channel, boolean enabled) |
Enable/disable one channel for update (UPEN) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannels (Ifx_GTM_ATOM_AGC *agc, uint16 enableMask, uint16 disableMask, boolean immediate) |
Enable/disable one or more channels (ENDIS) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannelsOutput (Ifx_GTM_ATOM_AGC *agc, uint16 enableMask, uint16 disableMask, boolean immediate) |
Enable/disable one or more channels output (OUTEN) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannelsTrigger (Ifx_GTM_ATOM_AGC *agc, uint16 enableMask, uint16 disableMask) |
Enable/disable the TGC channels trigger. More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableChannelsUpdate (Ifx_GTM_ATOM_AGC *agc, uint16 enableMask, uint16 disableMask) |
Enable/disable one or more channels for update (UPEN) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_enableTimeTrigger (Ifx_GTM_ATOM_AGC *agc, boolean enabled) |
Enable/disable the time base trigger. More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_resetChannels (Ifx_GTM_ATOM_AGC *agc, uint32 resetMask) |
Reset one or more channels. More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_setChannelForceUpdate (Ifx_GTM_ATOM_AGC *agc, IfxGtm_Atom_Ch channel, boolean enabled, boolean resetEnabled) |
Enable/disable one channel for update (FUPD) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_setChannelsForceUpdate (Ifx_GTM_ATOM_AGC *agc, uint16 enableMask, uint16 disableMask, uint16 resetEnableMask, uint16 resetDisableMask) |
Enable/disable one or more channels for the force update feature (FUPD) More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_setTimeTrigger (Ifx_GTM_ATOM_AGC *agc, IfxGtm_Tbu_Ts base, uint32 value) |
Sets the trigger time base and time base value. More... | |
IFX_EXTERN void | IfxGtm_Atom_Agc_trigger (Ifx_GTM_ATOM_AGC *agc) |
Raise the trigger for the channel enable/disable settings, output enable settings, and force update event (CTRL_TRIG) More... | |
GTM 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 IfxGtm_Atom.h.