107 {
FALSE, IfxCcu6_PwmHl_updateCenterAligned},
108 {
TRUE, IfxCcu6_PwmHl_updateCenterAligned},
109 {
FALSE, IfxCcu6_PwmHl_updateEdgeAligned },
110 {
TRUE, IfxCcu6_PwmHl_updateEdgeAligned },
111 {
FALSE, IfxCcu6_PwmHl_updateOff }
131 Ifx_CCU6 *module = timer->
ccu6;
132 Ifx_CCU6_CMPSTAT cmpstat;
147 module->CMPSTAT.U = cmpstat.U;
162 Ifx_CCU6 *module = timer->
ccu6;
164 Ifx_CCU6_CMPSTAT cmpstat;
171 cmpstat.B.COUT60PS = 1;
172 cmpstat.B.COUT61PS = 1;
173 cmpstat.B.COUT62PS = 1;
174 module->CMPSTAT.U = cmpstat.U;
204 boolean result =
TRUE;
207 Ifx_CCU6 *module = timer->
ccu6;
210 driver->
timer = timer;
224 unsigned int passiveState;
226 Ifx_CCU6_MODCTR modctr;
227 Ifx_CCU6_MCMOUTS mcmouts;
228 Ifx_CCU6_MCMCTR mcmctr;
237 modctr.U = module->MODCTR.U;
239 modctr.B.T12MODEN = 0x3FU;
240 module->MODCTR.U = modctr.U;
246 mcmctr.U = module->MCMCTR.U;
247 mcmctr.B.STE12D =
FALSE;
248 mcmctr.B.STE12U =
FALSE;
249 mcmctr.B.STE13U =
FALSE;
250 module->MCMCTR.U = mcmctr.U;
259 pslr.B.PSL |= (passiveState << 0);
260 pslr.B.PSL |= (passiveState << 2);
261 pslr.B.PSL |= (passiveState << 4);
264 pslr.B.PSL |= (passiveState << 1);
265 pslr.B.PSL |= (passiveState << 3);
266 pslr.B.PSL |= (passiveState << 5);
268 module->PSLR.B.PSL = pslr.B.PSL;
273 IfxCcu6_PwmHl_updateOff(driver, tOn);
275 mcmouts.U = module->MCMOUTS.U;
276 mcmouts.B.MCMPS = 0x3F;
277 mcmouts.B.STRMCM = 1;
278 module->MCMOUTS.U = mcmouts.U;
280 IfxCcu6_PwmHl_setOutputPins(module, config);
329 boolean result =
TRUE;
332 if (base->
mode != mode)
345 IfxCcu6_PwmHl_disable(driver);
349 IfxCcu6_PwmHl_enable(driver);
377 Ifx_CCU6 *module = timer->
ccu6;
382 for (i = 0; i < channels; i++)
387 if (tOnX < driver->base.minPulse)
398 cmp = (period - tOnX);
442 Ifx_CCU6 *module = timer->
ccu6;
447 pattern |= ((activeCh[0] !=
FALSE) ? 1 : 0) << 0;
448 pattern |= ((activeCh[1] !=
FALSE) ? 1 : 0) << 1;
449 pattern |= ((activeCh[2] !=
FALSE) ? 1 : 0) << 2;
450 pattern |= ((activeCh[3] !=
FALSE) ? 1 : 0) << 3;
451 pattern |= ((activeCh[4] !=
FALSE) ? 1 : 0) << 4;
452 pattern |= ((activeCh[5] !=
FALSE) ? 1 : 0) << 5;
458 pslr.U = module->PSLR.U;
462 pslr.B.PSL |= ((activeCh[0] ==
FALSE) ? ((stuckSt[0] ==
FALSE) ? 0 : 1) : 0) << 0;
463 pslr.B.PSL |= ((activeCh[2] ==
FALSE) ? ((stuckSt[2] ==
FALSE) ? 0 : 1) : 0) << 2;
464 pslr.B.PSL |= ((activeCh[4] ==
FALSE) ? ((stuckSt[4] ==
FALSE) ? 0 : 1) : 0) << 4;
467 pslr.B.PSL |= ((activeCh[1] ==
FALSE) ? ((stuckSt[1] ==
FALSE) ? 0 : 1) : 0) << 1;
468 pslr.B.PSL |= ((activeCh[3] ==
FALSE) ? ((stuckSt[3] ==
FALSE) ? 0 : 1) : 0) << 3;
469 pslr.B.PSL |= ((activeCh[5] ==
FALSE) ? ((stuckSt[5] ==
FALSE) ? 0 : 1) : 0) << 5;
470 module->PSLR.U = pslr.U;