iLLD_TC27xC  1.0
How to use the GTM ATOM PWM Driver
Collaboration diagram for How to use the GTM ATOM PWM Driver:

This driver implements the PWM functionalities as defined by Standard interface: Multi-channels, dual-complementary PWM interface. The user is free to use either the driver specific APIs below or to used the standard interface APIs.

Specific implementation

Implementation is similar to TOM PWM Interface Driver

For a detailed configuration of the microcontroller, see IfxGtm_Atom_PwmHl_init().

Usage example

Initialisation is done by, e.g:

IfxGtm_Atom_PwmHl driverData;
IfxGtm_Atom_PwmHl_initConfig(&driverConfig, &MODULE_GTM);
IfxGtm_Atom_PwmHl_init(&driverData, &driverConfig);

During run-time, the interface functions shall be used, e.g.:

Ifx_TimerValue onTime[3]; // assume configured for three HL channels
onTime[0] = 10;
onTime[1] = 20;
onTime[2] = 30;
IfxStdIf_Timer_setPeriod(timer, period);
IfxStdIf_PwmHl_setOnTime(pwmhl, onTime);