iLLD_TC29x  1.0
IfxGtm_Tom.c File Reference

GTM basic functionality. More...

#include "IfxGtm_Tom.h"
#include "IfxGtm_bf.h"
#include "IfxGtm_Cmu.h"

Go to the source code of this file.

Macros

#define IFXGTM_TOM_NUM_TGC_CHANNELS   (8)
 Number of channels per TOM TGC. More...
 

Functions

void IfxGtm_Tom_Ch_clearOneNotification (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Clears the channel One notification. More...
 
void IfxGtm_Tom_Ch_clearZeroNotification (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Clears the channel Zero notification. More...
 
float32 IfxGtm_Tom_Ch_getClockFrequency (Ifx_GTM *gtm, Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the TOM channel input clock frequency in Hz. More...
 
IfxGtm_Tom_Ch_ClkSrc IfxGtm_Tom_Ch_getClockSource (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the channel clock source. More...
 
uint32 IfxGtm_Tom_Ch_getCompareOne (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the compare one value. More...
 
volatile uint32IfxGtm_Tom_Ch_getCompareOnePointer (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the compare one pointer. More...
 
uint32 IfxGtm_Tom_Ch_getCompareZero (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the compare zero value. More...
 
volatile uint32IfxGtm_Tom_Ch_getCompareZeroPointer (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the compare zero pointer. More...
 
boolean IfxGtm_Tom_Ch_getOutputLevel (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Gets the TOM output level. More...
 
volatile Ifx_SRC_SRCR * IfxGtm_Tom_Ch_getSrcPointer (Ifx_GTM *gtm, IfxGtm_Tom tom, IfxGtm_Tom_Ch channel)
 Returns a pointer to the TOM channel SRC. More...
 
Ifx_GTM_TOM_TGCIfxGtm_Tom_Ch_getTgcPointer (Ifx_GTM_TOM *tom, uint32 tgcIndex)
 Returns the TGC pointer. More...
 
volatile uint32IfxGtm_Tom_Ch_getTimerPointer (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the Timer pointer. More...
 
boolean IfxGtm_Tom_Ch_isOneNotification (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the status of channel One notification. More...
 
boolean IfxGtm_Tom_Ch_isZeroNotification (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Returns the status of channel Zero notification. More...
 
void IfxGtm_Tom_Ch_raiseInterruptOne (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Raises the interrupt for Compare 1. More...
 
void IfxGtm_Tom_Ch_raiseInterruptZero (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel)
 Raises the interrupt for Compare 0. More...
 
void IfxGtm_Tom_Ch_setClockSource (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, IfxGtm_Tom_Ch_ClkSrc clock)
 Sets the channel clock source. More...
 
void IfxGtm_Tom_Ch_setCompare (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 compareZero, uint32 compareOne)
 Sets the compare 0 and 1 values. More...
 
void IfxGtm_Tom_Ch_setCompareOne (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 compareOne)
 Sets the compare 1 value. More...
 
void IfxGtm_Tom_Ch_setCompareOneShadow (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 shadowOne)
 Sets the compare 1 shadow value. More...
 
void IfxGtm_Tom_Ch_setCompareShadow (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 shadowZero, uint32 shadowOne)
 Sets the compare 0 and 1 shadow values. More...
 
void IfxGtm_Tom_Ch_setCompareZero (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 compareZero)
 Sets the compare 0 value. More...
 
void IfxGtm_Tom_Ch_setCompareZeroShadow (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 shadowZero)
 Sets the compare 0 shadow value. More...
 
void IfxGtm_Tom_Ch_setCounterValue (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, uint32 value)
 Sets the counter value. More...
 
void IfxGtm_Tom_Ch_setGatedCounter (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, boolean enabled)
 Enable/disable the gated counter mode (channel 0 to 7 only) More...
 
void IfxGtm_Tom_Ch_setNotification (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, IfxGtm_IrqMode mode, boolean interruptOnCompareZero, boolean interruptOnCompareOne)
 Sets the channel notification. More...
 
void IfxGtm_Tom_Ch_setOneShotMode (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, boolean enabled)
 Enable/disable the one shot mode. More...
 
void IfxGtm_Tom_Ch_setPcm (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, boolean enabled)
 Enable/disable the PCM mode (channel 15 only) More...
 
void IfxGtm_Tom_Ch_setResetSource (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, IfxGtm_Tom_Ch_ResetEvent event)
 Sets the channel clock source either from local or from previous channel. More...
 
void IfxGtm_Tom_Ch_setSignalLevel (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, Ifx_ActiveState activeState)
 Sets the signal level. More...
 
void IfxGtm_Tom_Ch_setSpe (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, boolean enabled)
 Enable/disable the SPE mode (channel 0 to 7 only) More...
 
void IfxGtm_Tom_Ch_setTriggerOutput (Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, IfxGtm_Tom_Ch_OutputTrigger trigger)
 Sets the channel trigger output. More...
 
uint32 IfxGtm_Tom_Tgc_buildFeature (uint16 enableMask, uint16 disableMask, uint8 bitfieldOffset)
 Builds the register value for the feature enable/disable. More...
 
uint32 IfxGtm_Tom_Tgc_buildFeatureForChannel (IfxGtm_Tom_Ch channel, boolean enabled, uint8 bitfieldOffset)
 Builds the register value for the feature enable/disable for a single channel. More...
 
void IfxGtm_Tom_Tgc_enableChannel (Ifx_GTM_TOM_TGC *tgc, IfxGtm_Tom_Ch channel, boolean enabled, boolean immediate)
 Enable/disable one channel (ENDIS) More...
 
void IfxGtm_Tom_Tgc_enableChannelOutput (Ifx_GTM_TOM_TGC *tgc, IfxGtm_Tom_Ch channel, boolean enabled, boolean immediate)
 Enable/disable one channel output (OUTEN) More...
 
void IfxGtm_Tom_Tgc_enableChannelUpdate (Ifx_GTM_TOM_TGC *tgc, IfxGtm_Tom_Ch channel, boolean enabled)
 Enable/disable one channel for update (UPEN) More...
 
void IfxGtm_Tom_Tgc_enableChannels (Ifx_GTM_TOM_TGC *tgc, uint16 enableMask, uint16 disableMask, boolean immediate)
 Enable/disable one or more channels (ENDIS) More...
 
void IfxGtm_Tom_Tgc_enableChannelsOutput (Ifx_GTM_TOM_TGC *tgc, uint16 enableMask, uint16 disableMask, boolean immediate)
 Enable/disable one or more channels output (OUTEN) More...
 
void IfxGtm_Tom_Tgc_enableChannelsTrigger (Ifx_GTM_TOM_TGC *tgc, uint16 enableMask, uint16 disableMask)
 Enable/disable the TGC channels trigger. More...
 
void IfxGtm_Tom_Tgc_enableChannelsUpdate (Ifx_GTM_TOM_TGC *tgc, uint16 enableMask, uint16 disableMask)
 Enable/disable one or more channels for update (UPEN) More...
 
void IfxGtm_Tom_Tgc_enableTimeTrigger (Ifx_GTM_TOM_TGC *tgc, boolean enabled)
 Enable/disable the time base trigger. More...
 
void IfxGtm_Tom_Tgc_resetChannels (Ifx_GTM_TOM_TGC *tgc, uint32 resetMask)
 Reset one or more channels. More...
 
void IfxGtm_Tom_Tgc_setChannelForceUpdate (Ifx_GTM_TOM_TGC *tgc, IfxGtm_Tom_Ch channel, boolean enabled, boolean resetEnabled)
 Enable/disable one channel for update (FUPD) More...
 
void IfxGtm_Tom_Tgc_setChannelsForceUpdate (Ifx_GTM_TOM_TGC *tgc, uint16 enableMask, uint16 disableMask, uint16 resetEnableMask, uint16 resetDisableMask)
 Enable/disable one or more channels for the force update feature (FUPD) More...
 
void IfxGtm_Tom_Tgc_setTimeTrigger (Ifx_GTM_TOM_TGC *tgc, IfxGtm_Tbu_Ts base, uint32 value)
 Sets the trigger time base and time base value. More...
 
void IfxGtm_Tom_Tgc_trigger (Ifx_GTM_TOM_TGC *tgc)
 Raise the trigger for the channel enable/disable settings, output enable settings, and force update event (CTRL_TRIG) More...
 

Detailed Description

GTM basic functionality.

Version
iLLD_1_0_0_11_0
                            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_Tom.c.

Macro Definition Documentation

#define IFXGTM_TOM_NUM_TGC_CHANNELS   (8)

Number of channels per TOM TGC.

Definition at line 39 of file IfxGtm_Tom.c.

Referenced by IfxGtm_Tom_Tgc_buildFeature(), and IfxGtm_Tom_Tgc_resetChannels().