iLLD_TC27xC  1.0
Modultion Control Functions
Collaboration diagram for Modultion Control Functions:

Functions

IFX_EXTERN void IfxCcu6_TPwm_initModule (IfxCcu6_TPwm *tPwm, const IfxCcu6_TPwm_Config *config)
 Initialises the module with default configuration. More...
 
IFX_EXTERN void IfxCcu6_TPwm_pause (IfxCcu6_TPwm *tPwm)
 Pauses the triggered PWM. More...
 
IFX_EXTERN void IfxCcu6_TPwm_resume (IfxCcu6_TPwm *tPwm)
 Resumes the triggered PWM. More...
 
IFX_EXTERN void IfxCcu6_TPwm_start (IfxCcu6_TPwm *tPwm)
 Starts the triggered PWM. More...
 
IFX_EXTERN void IfxCcu6_TPwm_stop (IfxCcu6_TPwm *tPwm)
 Stops the triggered PWM. More...
 

Detailed Description

Function Documentation

IFX_EXTERN void IfxCcu6_TPwm_initModule ( IfxCcu6_TPwm tPwm,
const IfxCcu6_TPwm_Config config 
)

Initialises the module with default configuration.

Parameters
tPwmModule handle
configConfiguration structure of the module
Returns
None
// create configuration
IfxCcu6_TPwm_initModuleConfig(&tPwmConfig, &MODULE_CCU60);
// configure the frequency of the timer in case of internal start
// this frequency will be set for the timer block selected later
tPwmConfig.base.frequency = 400000;
// configure the period of the timer
tPwmConfig.base.period = 100;
// configure the waiting time in case of delayed T13 start in sync with T12
tPwmConfig.base.waitingTime = 20;
// select the active state of the output
// select the timer through which PWM is to be generated
// configure the clock for internal mode
// configure the selcted timer block
tPwmConfig.timer13.counterValue = 0;
tPwmConfig.timer13.compareValue = 100;
// configure the syncronisation, in case of sync start with T12
//select the channel out for modulation
// pin configuration
const IfxCcu6_TPwm_Pins pins = {
NULL, // CC60Out pin not used
NULL, // CC61Out pin not used
NULL, // CC62Out pin not used
NULL, // COUT60 pin not used
NULL, // COUT61 pin not used
NULL, // COUT62 pin not used
};
tPwmConfig.pins = &pins;
// configure the interrupts
tPwmConfig.interrupt.priority = IFX_INTRPRIO_CCU6;
// configure input and output triggers
// initialize the module
IfxCcu6_TPwm_initModule(&tPwm, &tPwmConfig);

Definition at line 36 of file IfxCcu6_TPwm.c.

IFX_EXTERN void IfxCcu6_TPwm_pause ( IfxCcu6_TPwm tPwm)

Pauses the triggered PWM.

Parameters
tPwmModule handle
Returns
None

Definition at line 361 of file IfxCcu6_TPwm.c.

Referenced by IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_TPwm_resume ( IfxCcu6_TPwm tPwm)

Resumes the triggered PWM.

Parameters
tPwmModule handle
Returns
None

Definition at line 367 of file IfxCcu6_TPwm.c.

Referenced by IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_TPwm_start ( IfxCcu6_TPwm tPwm)

Starts the triggered PWM.

Parameters
tPwmModule handle
Returns
None

Definition at line 373 of file IfxCcu6_TPwm.c.

Referenced by IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_TPwm_stop ( IfxCcu6_TPwm tPwm)

Stops the triggered PWM.

Parameters
tPwmModule handle
Returns
None

Definition at line 428 of file IfxCcu6_TPwm.c.

Referenced by IfxCcu6_TPwm_initModule().