iLLD_TC27xC  1.0
Comparator Functions
Collaboration diagram for Comparator Functions:

Functions

IFX_INLINE uint32 IfxStm_getCompare (Ifx_STM *stm, IfxStm_Comparator comparator)
 Returns the updated compare register value. More...
 
IFX_INLINE void IfxStm_increaseCompare (Ifx_STM *stm, IfxStm_Comparator comparator, uint32 ticks)
 Update the compare register value increased with given ticks. More...
 
IFX_INLINE void IfxStm_updateCompare (Ifx_STM *stm, IfxStm_Comparator comparator, uint32 ticks)
 Update the compare register value. More...
 
IFX_EXTERN void IfxStm_clearCompareFlag (Ifx_STM *stm, IfxStm_Comparator comparator)
 Clear the compare interrupt flag. More...
 
IFX_EXTERN boolean IfxStm_initCompare (Ifx_STM *stm, IfxStm_CompareConfig *config)
 Initialise stm compare register. More...
 
IFX_EXTERN void IfxStm_initCompareConfig (IfxStm_CompareConfig *config)
 Initialise compare configuration with default values. More...
 

Detailed Description

Function Documentation

IFX_EXTERN void IfxStm_clearCompareFlag ( Ifx_STM *  stm,
IfxStm_Comparator  comparator 
)

Clear the compare interrupt flag.

Parameters
stmpointer to System timer module registers.
comparatorcomparator selection comparator.
Returns
None

Definition at line 35 of file IfxStm.c.

IFX_INLINE uint32 IfxStm_getCompare ( Ifx_STM *  stm,
IfxStm_Comparator  comparator 
)

Returns the updated compare register value.

Parameters
stmpointer to System timer module registers.
comparatorcomparator selection comparator.
Returns
The compare value

Definition at line 490 of file IfxStm.h.

IFX_INLINE void IfxStm_increaseCompare ( Ifx_STM *  stm,
IfxStm_Comparator  comparator,
uint32  ticks 
)

Update the compare register value increased with given ticks.

Parameters
stmpointer to System timer module registers.
comparatorcomparator selection comparator.
tickscount for next comparison from current timer count.
Returns
None

Definition at line 496 of file IfxStm.h.

IFX_EXTERN boolean IfxStm_initCompare ( Ifx_STM *  stm,
IfxStm_CompareConfig config 
)

Initialise stm compare register.

Parameters
stmpointer to System timer module registers.
configpointer to configuration structure.
Returns
TRUE if Comparator successful otherwise FLASE.

Definition at line 79 of file IfxStm.c.

IFX_EXTERN void IfxStm_initCompareConfig ( IfxStm_CompareConfig config)

Initialise compare configuration with default values.

Parameters
configpointer to configuration structure.
Returns
None

Definition at line 137 of file IfxStm.c.

IFX_INLINE void IfxStm_updateCompare ( Ifx_STM *  stm,
IfxStm_Comparator  comparator,
uint32  ticks 
)

Update the compare register value.

Parameters
stmpointer to System timer module registers.
comparatorcomparator selection comparator.
tickscount for next comparison.
Returns
None

Definition at line 502 of file IfxStm.h.