iLLD_TC27xC  1.0
Module Initialize Functions
Collaboration diagram for Module Initialize Functions:

Functions

IFX_EXTERN void IfxCcu6_Timer_initModule (IfxCcu6_Timer *timer, const IfxCcu6_Timer_Config *config)
 Initialises the module with default configuration. More...
 
IFX_EXTERN void IfxCcu6_Timer_initModuleConfig (IfxCcu6_Timer_Config *config, Ifx_CCU6 *ccu6)
 Fills the config structure with default values. More...
 

Detailed Description

Function Documentation

IFX_EXTERN void IfxCcu6_Timer_initModule ( IfxCcu6_Timer timer,
const IfxCcu6_Timer_Config config 
)

Initialises the module with default configuration.

Parameters
timerModule handle
configConfiguration structure of the module
Returns
None
// create configuration
IfxCcu6_Timer_initModuleConfig(&timerConfig, &MODULE_CCU60);
// configure the frequency of the timer in case of internal start
// this frequency will be set for the timer block selected later
timerConfig.base.frequency = 400000;
// configure the period of the timer
timerConfig.base.period = 100;
// configure the waiting time in case of delayed T13 start in sync with T12
timerConfig.base.waitingTime = 0;
// select the timer that needs to be started
timerConfig.timer = IfxCcu6_TimerId_t12;
// select the synchronous operation if both timers need to be start at the same time
// previous selection of timer block can be ignored in this mode
timerConfig.synchronousOperation = TRUE;
// configure the clock for internal mode
// configure the selcted timer block
timerConfig.timer12.counterValue = 0;
// configure the interrupts
timerConfig.interrupt.priority = IFX_INTRPRIO_CCU6;
// configure input and output triggers
// initialize the module
IfxCcu6_Timer_initModule(&timer, &timerConfig);

Definition at line 59 of file IfxCcu6_Timer.c.

IFX_EXTERN void IfxCcu6_Timer_initModuleConfig ( IfxCcu6_Timer_Config config,
Ifx_CCU6 *  ccu6 
)

Fills the config structure with default values.

Parameters
configConfiguration structure of the module
ccu6Pointer to the base of CCU6 registers
Returns
None

A coding example can be found in IfxCcu6_Timer_initModule

Definition at line 230 of file IfxCcu6_Timer.c.