iLLD_TC27xD  1.0
Operative Functions
Collaboration diagram for Operative Functions:

Functions

IFX_INLINE void IfxCcu6_clearCounter (Ifx_CCU6 *ccu6, boolean t12, boolean t13)
 Clears the counters of the Timers (T12, T13 individually or together based on the selection) More...
 
IFX_INLINE void IfxCcu6_clearDeadTimeCounters (Ifx_CCU6 *ccu6)
 Clears all the three dead-time counter channels to zero. More...
 
IFX_INLINE void IfxCcu6_clearInterruptStatusFlag (Ifx_CCU6 *ccu6, IfxCcu6_InterruptSource source)
 Clears the selected interrupt flag. More...
 
IFX_INLINE void IfxCcu6_clearT12OneNotification (Ifx_CCU6 *ccu6)
 Clears the T12 One notification. More...
 
IFX_INLINE void IfxCcu6_clearT12PeriodNotification (Ifx_CCU6 *ccu6)
 Clears the T12 period notification. More...
 
IFX_INLINE void IfxCcu6_clearT13CompareNotification (Ifx_CCU6 *ccu6)
 Clears the T13 compare notification. More...
 
IFX_INLINE volatile uint32IfxCcu6_getT12TimerPointer (Ifx_CCU6 *ccu6)
 Returns the Timer pointer. More...
 
IFX_INLINE boolean IfxCcu6_isModuleEnabled (Ifx_CCU6 *ccu6)
 Returns the status of module enabled or disabled. More...
 
IFX_INLINE boolean IfxCcu6_isT12OneNotification (Ifx_CCU6 *ccu6)
 Returns the status of T12 one notification. More...
 
IFX_INLINE boolean IfxCcu6_isT12PeriodNotification (Ifx_CCU6 *ccu6)
 Returns the status of T12 period notification. More...
 
IFX_INLINE boolean IfxCcu6_isT13CompareNotification (Ifx_CCU6 *ccu6)
 Returns the status of T13 compare notification. More...
 
IFX_INLINE void IfxCcu6_setCountingInputMode (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer, IfxCcu6_CountingInputMode mode)
 Sets the input event leading to a counting action of Timers (T12 / T13). More...
 
IFX_INLINE void IfxCcu6_setCurrentHallPattern (Ifx_CCU6 *ccu6, uint8 pattern)
 Sets the current hall pattern for the multichannel mode (writes into shadow register) More...
 
IFX_INLINE void IfxCcu6_setDeadTimeValue (Ifx_CCU6 *ccu6, uint8 value)
 Sets the delay between switching from the passive state to the active state of the selected outputs (dead time) More...
 
IFX_INLINE void IfxCcu6_setExpectedHallPattern (Ifx_CCU6 *ccu6, uint8 pattern)
 Sets the expected hall pattern for the multichannel mode (writes into shadow register) More...
 
IFX_INLINE void IfxCcu6_setExternalRunMode (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer, IfxCcu6_ExternalTriggerMode mode)
 Sets the event of signal T1xHR that can set the run bit T1xR by HW. More...
 
IFX_INLINE void IfxCcu6_setHallSensorTriggerMode (Ifx_CCU6 *ccu6, IfxCcu6_HallSensorTriggerMode mode)
 Sets source for the sampling of the Hall input pattern and the comparison to the current and the expected Hall pattern bit fields. More...
 
IFX_INLINE void IfxCcu6_setInputClockFrequency (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer, IfxCcu6_TimerInputClock frequency)
 Sets the input clock for timers (T12 or T13) More...
 
IFX_INLINE void IfxCcu6_setInterruptStatusFlag (Ifx_CCU6 *ccu6, IfxCcu6_InterruptSource source)
 Sets the selected interrupt flag. More...
 
IFX_INLINE void IfxCcu6_setMultiChannelPwmPattern (Ifx_CCU6 *ccu6, uint8 pattern)
 Sets the output pattern for the multichannel mode (writes into shadow register) More...
 
IFX_INLINE void IfxCcu6_setMultiChannelSwitchingMode (Ifx_CCU6 *ccu6, IfxCcu6_MultiChannelSwitchingSelect mode)
 Sets the trigger request source (next multi-channel event) for the shadow transfer MCM_ST from MCMPS to MCMP. More...
 
IFX_INLINE void IfxCcu6_setMultiChannelSwitchingSync (Ifx_CCU6 *ccu6, IfxCcu6_MultiChannelSwitchingSync sync)
 Sets the synchronization mechanism of the shadow transfer event MCM_ST
if it has been requested before (flag R set by an event selected by SWSEL) and if MCMEN = 1. More...
 
IFX_INLINE void IfxCcu6_setOutputPassiveState (Ifx_CCU6 *ccu6, IfxCcu6_ChannelOut channelOut, boolean state)
 Sets the state of the corresponding compare channel, that is considered to be the passive state. More...
 
IFX_INLINE void IfxCcu6_setSingleShotModeEnable (Ifx_CCU6 *ccu6, boolean t12, boolean t13)
 Enables / Disables the single shot mode of Timers (T12, T13 individually or together based on the selection) More...
 
IFX_INLINE void IfxCcu6_setT12ChannelMode (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel, IfxCcu6_T12ChannelMode mode)
 Sets the operating mode of the Timer12 capture/compare channels. More...
 
IFX_INLINE void IfxCcu6_setT12CountMode (Ifx_CCU6 *ccu6, IfxCcu6_T12CountMode mode)
 
IFX_INLINE void IfxCcu6_setT12CounterValue (Ifx_CCU6 *ccu6, uint16 value)
 Sets the 16-bit counter value of Timer12. More...
 
IFX_INLINE void IfxCcu6_setT12PeriodValue (Ifx_CCU6 *ccu6, uint16 value)
 Sets the period value that leads Timer12 counter value to a period-match. More...
 
IFX_INLINE void IfxCcu6_setT13CompareValue (Ifx_CCU6 *ccu6, uint16 value)
 Sets the 16-bit compare value of Timer13 (writes into shadow register) More...
 
IFX_INLINE void IfxCcu6_setT13CounterValue (Ifx_CCU6 *ccu6, uint16 value)
 Sets the 16-bit counter value of Timer13. More...
 
IFX_INLINE void IfxCcu6_setT13PeriodValue (Ifx_CCU6 *ccu6, uint16 value)
 Sets the period value that leads Timer13 counter value to a period-match. More...
 
IFX_INLINE void IfxCcu6_setT13TriggerEventDirection (Ifx_CCU6 *ccu6, IfxCcu6_T13TriggerDirection direction)
 Sets the Timer13 trigger event direction. More...
 
IFX_INLINE void IfxCcu6_setT13TriggerEventMode (Ifx_CCU6 *ccu6, IfxCcu6_T13TriggerEvent mode)
 Sets the trigger event to start Timer13 (automatic set of T13R for synchronization to Timer12 compare signals) More...
 
IFX_INLINE void IfxCcu6_setTrapMode (Ifx_CCU6 *ccu6, IfxCcu6_TrapMode mode)
 Sets the mode of clearing the trap flag TRPF after the trap input condition is no longer valid. More...
 
IFX_INLINE void IfxCcu6_setTrapState (Ifx_CCU6 *ccu6, IfxCcu6_TrapState state)
 Sets behaviour of the selected outputs when leaving the trap state after the trap condition has become inactive again. More...
 
IFX_INLINE void IfxCcu6_startTimer (Ifx_CCU6 *ccu6, boolean t12, boolean t13)
 starts the timers (T12, T13 individually or together based on the selection) More...
 
IFX_INLINE void IfxCcu6_stopTimer (Ifx_CCU6 *ccu6, boolean t12, boolean t13)
 starts the timers (T12, T13 individually or together based on the selection) More...
 
IFX_INLINE void IfxCcu6_updateHallPattern (Ifx_CCU6 *ccu6, uint8 currentHall, uint8 expectedHall, uint8 output)
 Updates the hall pattern (current hall, expected hall, moduleation output), in a single write. More...
 
IFX_EXTERN void IfxCcu6_connectTrigger (Ifx_CCU6 *ccu6, IfxCcu6_TrigOut outputLine, IfxCcu6_TrigSel selectedTrigger)
 
IFX_EXTERN void IfxCcu6_routeInterruptNode (Ifx_CCU6 *ccu6, IfxCcu6_InterruptSource source, IfxCcu6_ServiceRequest serviceRequest)
 Routes the interrupt node pointer to the selected service requests. More...
 
IFX_EXTERN void IfxCcu6_setOutputPassiveLevel (Ifx_CCU6 *ccu6, IfxCcu6_ChannelOut channelOut, boolean state)
 Sets the passive state level of the PWM outputs of the module. More...
 
IFX_EXTERN void IfxCcu6_setT12CaptureCompareState (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel, IfxCcu6_CaptureCompareState state)
 Sets software-control (independent set and clear conditions) for the Timer12 channel state bits CC6xST (x=0,1,2) More...
 
IFX_EXTERN void IfxCcu6_setT12CompareValue (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel, uint16 value)
 Sets the 16-bit compare value of Timer12 (writes into shadow registers) More...
 
IFX_EXTERN float32 IfxCcu6_setT12Frequency (Ifx_CCU6 *ccu6, float32 frequency, Ifx_TimerValue resolution, IfxCcu6_T12CountMode countMode)
 Sets the frequency and clock input of the Timer 12. More...
 
IFX_EXTERN void IfxCcu6_setT12InputSignal (Ifx_CCU6 *ccu6, IfxCcu6_T12hr_In *extInput)
 selects the actual input signal for the timer inputs. More...
 
IFX_EXTERN void IfxCcu6_setT13CaptureCompareState (Ifx_CCU6 *ccu6, IfxCcu6_CaptureCompareState state)
 Sets software-control (independent set and clear conditions) for the Timer13 channel state bits CC63ST. More...
 
IFX_EXTERN float32 IfxCcu6_setT13Frequency (Ifx_CCU6 *ccu6, float32 frequency, Ifx_TimerValue resolution)
 Sets the frequency and clock input of the Timer 13. More...
 
IFX_EXTERN void IfxCcu6_setT13InputSignal (Ifx_CCU6 *ccu6, IfxCcu6_T13hr_In *extInput)
 selects the actual input signal for the timer inputs. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxCcu6_clearCounter ( Ifx_CCU6 *  ccu6,
boolean  t12,
boolean  t13 
)

Clears the counters of the Timers (T12, T13 individually or together based on the selection)

Parameters
ccu6Pointer to the base of CCU6 registers
t12Timer12 choice (enable / disable)
t13Timer13 choice (enable / disable)
Returns
None

Definition at line 1252 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_clearDeadTimeCounters ( Ifx_CCU6 *  ccu6)

Clears all the three dead-time counter channels to zero.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
None

Definition at line 1262 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_clearInterruptStatusFlag ( Ifx_CCU6 *  ccu6,
IfxCcu6_InterruptSource  source 
)

Clears the selected interrupt flag.

Parameters
ccu6Pointer to the base of CCU6 registers
sourceInterrupt source selection
Returns
None

Definition at line 1268 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_init().

IFX_INLINE void IfxCcu6_clearT12OneNotification ( Ifx_CCU6 *  ccu6)

Clears the T12 One notification.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
None

Definition at line 1275 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_acknowledgeTimerIrq().

IFX_INLINE void IfxCcu6_clearT12PeriodNotification ( Ifx_CCU6 *  ccu6)

Clears the T12 period notification.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
None

Definition at line 1281 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_clearT13CompareNotification ( Ifx_CCU6 *  ccu6)

Clears the T13 compare notification.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
None

Definition at line 1287 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_acknowledgeTriggerIrq().

IFX_EXTERN void IfxCcu6_connectTrigger ( Ifx_CCU6 *  ccu6,
IfxCcu6_TrigOut  outputLine,
IfxCcu6_TrigSel  selectedTrigger 
)
Parameters
ccu6Specifies Ccu6 module
outputLineOutput Line
selectedTriggerTrigger selection
Returns
None

Definition at line 36 of file IfxCcu6.c.

Referenced by IfxCcu6_PwmBc_initModule(), and IfxCcu6_TPwm_initModule().

IFX_INLINE volatile uint32 * IfxCcu6_getT12TimerPointer ( Ifx_CCU6 *  ccu6)

Returns the Timer pointer.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Timer pointer

Definition at line 1547 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_getPointer().

IFX_INLINE boolean IfxCcu6_isModuleEnabled ( Ifx_CCU6 *  ccu6)

Returns the status of module enabled or disabled.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Status (TRUE / FALSE)

Definition at line 1686 of file IfxCcu6.h.

Referenced by IfxCcu6_enableModule(), IfxCcu6_Icu_initModule(), IfxCcu6_PwmBc_initModule(), IfxCcu6_Timer_initModule(), IfxCcu6_TimerWithTrigger_init(), and IfxCcu6_TPwm_initModule().

IFX_INLINE boolean IfxCcu6_isT12OneNotification ( Ifx_CCU6 *  ccu6)

Returns the status of T12 one notification.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Status (TRUE / FALSE)

Definition at line 1692 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_acknowledgeTimerIrq().

IFX_INLINE boolean IfxCcu6_isT12PeriodNotification ( Ifx_CCU6 *  ccu6)

Returns the status of T12 period notification.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Status (TRUE / FALSE)

Definition at line 1698 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_isT13CompareNotification ( Ifx_CCU6 *  ccu6)

Returns the status of T13 compare notification.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Status (TRUE / FALSE)

Definition at line 1704 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_acknowledgeTriggerIrq().

IFX_EXTERN void IfxCcu6_routeInterruptNode ( Ifx_CCU6 *  ccu6,
IfxCcu6_InterruptSource  source,
IfxCcu6_ServiceRequest  serviceRequest 
)

Routes the interrupt node pointer to the selected service requests.

Parameters
ccu6Pointer to the base of CCU6 registers
sourceInterrupt source selection
serviceRequestSelection of service request outputs
Returns
None

Definition at line 244 of file IfxCcu6.c.

Referenced by IfxCcu6_Icu_initChannel(), IfxCcu6_PwmBc_initModule(), IfxCcu6_Timer_initModule(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setCountingInputMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer,
IfxCcu6_CountingInputMode  mode 
)

Sets the input event leading to a counting action of Timers (T12 / T13).

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
modeInput event leading to a counting action of the timer (T12 / T13)
Returns
None

Definition at line 1718 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_initModule(), IfxCcu6_Timer_countOneStep(), IfxCcu6_Timer_initModule(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setCurrentHallPattern ( Ifx_CCU6 *  ccu6,
uint8  pattern 
)

Sets the current hall pattern for the multichannel mode (writes into shadow register)

Parameters
ccu6Pointer to the base of CCU6 registers
patternCurrent hall pattern
Returns
None

Definition at line 1726 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_setDeadTimeValue ( Ifx_CCU6 *  ccu6,
uint8  value 
)

Sets the delay between switching from the passive state to the active state of the selected outputs (dead time)

Parameters
ccu6Pointer to the base of CCU6 registers
valueValue of the dead time to be induced
Returns
None

Definition at line 1732 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), IfxCcu6_PwmHl_setDeadtime(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setExpectedHallPattern ( Ifx_CCU6 *  ccu6,
uint8  pattern 
)

Sets the expected hall pattern for the multichannel mode (writes into shadow register)

Parameters
ccu6Pointer to the base of CCU6 registers
patternExpected hall pattern
Returns
None

Definition at line 1738 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_setExternalRunMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer,
IfxCcu6_ExternalTriggerMode  mode 
)

Sets the event of signal T1xHR that can set the run bit T1xR by HW.

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
modeExternal trigger mode
Returns
None

Definition at line 1744 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_startCapture(), IfxCcu6_Icu_stopCapture(), IfxCcu6_PwmBc_start(), IfxCcu6_PwmBc_stop(), IfxCcu6_Timer_start(), IfxCcu6_Timer_startSingleShotMode(), IfxCcu6_Timer_stop(), IfxCcu6_TPwm_start(), and IfxCcu6_TPwm_stop().

IFX_INLINE void IfxCcu6_setHallSensorTriggerMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_HallSensorTriggerMode  mode 
)

Sets source for the sampling of the Hall input pattern and the comparison to the current and the expected Hall pattern bit fields.

Parameters
ccu6Pointer to the base of CCU6 registers
modeHall sensor input trigger event
Returns
None

Definition at line 1752 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule().

IFX_INLINE void IfxCcu6_setInputClockFrequency ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer,
IfxCcu6_TimerInputClock  frequency 
)

Sets the input clock for timers (T12 or T13)

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
frequencyInput clock for timers (T12 or T13)
Returns
None

Definition at line 1760 of file IfxCcu6.h.

Referenced by IfxCcu6_setT12Frequency(), and IfxCcu6_setT13Frequency().

IFX_INLINE void IfxCcu6_setInterruptStatusFlag ( Ifx_CCU6 *  ccu6,
IfxCcu6_InterruptSource  source 
)

Sets the selected interrupt flag.

Parameters
ccu6Pointer to the base of CCU6 registers
sourceInterrupt source selection
Returns
None

Definition at line 1768 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_setMultiChannelPwmPattern ( Ifx_CCU6 *  ccu6,
uint8  pattern 
)

Sets the output pattern for the multichannel mode (writes into shadow register)

Parameters
ccu6Pointer to the base of CCU6 registers
patternOutput pattern for the multichannel mode.
Returns
None

Definition at line 1775 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmHl_setupChannels().

IFX_INLINE void IfxCcu6_setMultiChannelSwitchingMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_MultiChannelSwitchingSelect  mode 
)

Sets the trigger request source (next multi-channel event) for the shadow transfer MCM_ST from MCMPS to MCMP.

Parameters
ccu6Pointer to the base of CCU6 registers
modeTrigger request source (next multi-channel event) for the shadow transfer MCM_ST
Returns
None

Definition at line 1781 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), and IfxCcu6_PwmHl_init().

IFX_INLINE void IfxCcu6_setMultiChannelSwitchingSync ( Ifx_CCU6 *  ccu6,
IfxCcu6_MultiChannelSwitchingSync  sync 
)

Sets the synchronization mechanism of the shadow transfer event MCM_ST
if it has been requested before (flag R set by an event selected by SWSEL) and if MCMEN = 1.

Parameters
ccu6Pointer to the base of CCU6 registers
syncSynchronization mechanism of the shadow transfer event MCM_ST
Returns
None

Definition at line 1787 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), and IfxCcu6_PwmHl_init().

IFX_EXTERN void IfxCcu6_setOutputPassiveLevel ( Ifx_CCU6 *  ccu6,
IfxCcu6_ChannelOut  channelOut,
boolean  state 
)

Sets the passive state level of the PWM outputs of the module.

Parameters
ccu6Pointer to the base of CCU6 registers
channelOutCapture compare output selection
stateFALSE: The passive level is 0. TRUE : The passive level is 1.
Returns
None

Definition at line 281 of file IfxCcu6.c.

Referenced by IfxCcu6_TimerWithTrigger_init().

IFX_INLINE void IfxCcu6_setOutputPassiveState ( Ifx_CCU6 *  ccu6,
IfxCcu6_ChannelOut  channelOut,
boolean  state 
)

Sets the state of the corresponding compare channel, that is considered to be the passive state.

Parameters
ccu6Pointer to the base of CCU6 registers
channelOutCapture compare output selection
stateFALSE: passive state when CC6xST == 0
TRUE : passive state when CC6xST == 1
Returns
None

Definition at line 1793 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setSingleShotModeEnable ( Ifx_CCU6 *  ccu6,
boolean  t12,
boolean  t13 
)

Enables / Disables the single shot mode of Timers (T12, T13 individually or together based on the selection)

Parameters
ccu6Pointer to the base of CCU6 registers
t12Timer12 choice (enable / disable)
t13Timer13 choice (enable / disable)
Returns
None

Definition at line 1801 of file IfxCcu6.h.

Referenced by IfxCcu6_TimerWithTrigger_init().

IFX_EXTERN void IfxCcu6_setT12CaptureCompareState ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel,
IfxCcu6_CaptureCompareState  state 
)

Sets software-control (independent set and clear conditions) for the Timer12 channel state bits CC6xST (x=0,1,2)

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
statecapture/compare state selection (set / clear / toggle)
Returns
None

Definition at line 296 of file IfxCcu6.c.

IFX_INLINE void IfxCcu6_setT12ChannelMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel,
IfxCcu6_T12ChannelMode  mode 
)

Sets the operating mode of the Timer12 capture/compare channels.

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
modeThe operating mode for the T12 channels
Returns
None

Definition at line 1820 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_startCapture(), IfxCcu6_Icu_stopCapture(), IfxCcu6_PwmBc_initModule(), IfxCcu6_PwmHl_init(), and IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_setT12CompareValue ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel,
uint16  value 
)

Sets the 16-bit compare value of Timer12 (writes into shadow registers)

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
valueCompare value
Returns
None

Definition at line 321 of file IfxCcu6.c.

Referenced by IfxCcu6_PwmBc_initModule(), IfxCcu6_PwmHl_setOnTime(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setT12CounterValue ( Ifx_CCU6 *  ccu6,
uint16  value 
)

Sets the 16-bit counter value of Timer12.

Parameters
ccu6Pointer to the base of CCU6 registers
valueCounter value
Returns
None

Definition at line 1834 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_initModule(), IfxCcu6_PwmBc_initModule(), IfxCcu6_Timer_initModule(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setT12CountMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12CountMode  mode 
)
Parameters
ccu6Pointer to the base of CCU6 registers
modeOperating mode of Timer 12
Returns
None

Definition at line 1828 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_initModule(), IfxCcu6_setT12Frequency(), IfxCcu6_Timer_initModule(), IfxCcu6_TimerWithTrigger_init(), and IfxCcu6_TPwm_initModule().

IFX_EXTERN float32 IfxCcu6_setT12Frequency ( Ifx_CCU6 *  ccu6,
float32  frequency,
Ifx_TimerValue  resolution,
IfxCcu6_T12CountMode  countMode 
)

Sets the frequency and clock input of the Timer 12.

Parameters
ccu6Pointer to the base of CCU6 registers
frequencyRequested timer frequency in Hz
resolutionPointer to requested minimum timer resolution in ticks
countModeCounting mode of Timer12
Returns
Zero, if the function failed to fulfill requested frequency and resolution
Positive, if the function can find settings close to the requested frequency and resolution above the requested

Definition at line 338 of file IfxCcu6.c.

Referenced by IfxCcu6_Icu_initModule(), IfxCcu6_PwmBc_initModule(), IfxCcu6_Timer_initModule(), and IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_setT12InputSignal ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12hr_In extInput 
)

selects the actual input signal for the timer inputs.

Parameters
ccu6Pointer to the base of CCU6 registers
extInputExternal input signal for the Timer 12
Returns
None

Definition at line 391 of file IfxCcu6.c.

Referenced by IfxCcu6_Icu_initModule(), IfxCcu6_Icu_startCapture(), IfxCcu6_initT12hrPin(), IfxCcu6_PwmBc_start(), IfxCcu6_Timer_initModule(), IfxCcu6_Timer_start(), IfxCcu6_Timer_startSingleShotMode(), IfxCcu6_TPwm_initModule(), and IfxCcu6_TPwm_start().

IFX_INLINE void IfxCcu6_setT12PeriodValue ( Ifx_CCU6 *  ccu6,
uint16  value 
)

Sets the period value that leads Timer12 counter value to a period-match.

Parameters
ccu6Pointer to the base of CCU6 registers
valuePeriod value
Returns
None

Definition at line 1840 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_initModule(), IfxCcu6_setT12Frequency(), IfxCcu6_Timer_initModule(), IfxCcu6_TimerWithTrigger_setPeriod(), and IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_setT13CaptureCompareState ( Ifx_CCU6 *  ccu6,
IfxCcu6_CaptureCompareState  state 
)

Sets software-control (independent set and clear conditions) for the Timer13 channel state bits CC63ST.

Parameters
ccu6Pointer to the base of CCU6 registers
statecapture/compare state selection (set / clear / toggle)
Returns
None

Definition at line 400 of file IfxCcu6.c.

IFX_INLINE void IfxCcu6_setT13CompareValue ( Ifx_CCU6 *  ccu6,
uint16  value 
)

Sets the 16-bit compare value of Timer13 (writes into shadow register)

Parameters
ccu6Pointer to the base of CCU6 registers
valueCompare value
Returns
None

Definition at line 1846 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setT13CounterValue ( Ifx_CCU6 *  ccu6,
uint16  value 
)

Sets the 16-bit counter value of Timer13.

Parameters
ccu6Pointer to the base of CCU6 registers
valuecounter value
Returns
None

Definition at line 1852 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), IfxCcu6_Timer_initModule(), and IfxCcu6_TPwm_initModule().

IFX_EXTERN float32 IfxCcu6_setT13Frequency ( Ifx_CCU6 *  ccu6,
float32  frequency,
Ifx_TimerValue  resolution 
)

Sets the frequency and clock input of the Timer 13.

Parameters
ccu6Pointer to the base of CCU6 registers
frequencyRequested timer frequency in Hz
resolutionPointer to requested minimum timer resolution in ticks
Returns
Zero, if the function failed to fulfill requested frequency and resolution
Positive, if the function can find settings close to the requested frequency and resolution above the requested
Return values
IfxCcu6_Stat_wrongPwmFreqif the T12 prescaler can't fulfill the required frequency

Definition at line 426 of file IfxCcu6.c.

Referenced by IfxCcu6_PwmBc_initModule(), IfxCcu6_Timer_initModule(), and IfxCcu6_TPwm_initModule().

IFX_EXTERN void IfxCcu6_setT13InputSignal ( Ifx_CCU6 *  ccu6,
IfxCcu6_T13hr_In extInput 
)

selects the actual input signal for the timer inputs.

Parameters
ccu6Pointer to the base of CCU6 registers
extInputExternal input signal for the Timer 13
Returns
None

Definition at line 479 of file IfxCcu6.c.

Referenced by IfxCcu6_initT13hrPin(), IfxCcu6_PwmBc_start(), IfxCcu6_Timer_initModule(), IfxCcu6_Timer_start(), IfxCcu6_Timer_startSingleShotMode(), IfxCcu6_TPwm_initModule(), and IfxCcu6_TPwm_start().

IFX_INLINE void IfxCcu6_setT13PeriodValue ( Ifx_CCU6 *  ccu6,
uint16  value 
)

Sets the period value that leads Timer13 counter value to a period-match.

Parameters
ccu6Pointer to the base of CCU6 registers
valueperiod value
Returns
None

Definition at line 1858 of file IfxCcu6.h.

Referenced by IfxCcu6_setT13Frequency(), IfxCcu6_Timer_initModule(), IfxCcu6_TimerWithTrigger_init(), and IfxCcu6_TPwm_initModule().

IFX_INLINE void IfxCcu6_setT13TriggerEventDirection ( Ifx_CCU6 *  ccu6,
IfxCcu6_T13TriggerDirection  direction 
)

Sets the Timer13 trigger event direction.

Parameters
ccu6Pointer to the base of CCU6 registers
directionT13 trigger event direction
Returns
None

Definition at line 1864 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), IfxCcu6_PwmBc_stop(), IfxCcu6_Timer_initModule(), IfxCcu6_Timer_stop(), IfxCcu6_TimerWithTrigger_init(), IfxCcu6_TPwm_initModule(), and IfxCcu6_TPwm_stop().

IFX_INLINE void IfxCcu6_setT13TriggerEventMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_T13TriggerEvent  mode 
)

Sets the trigger event to start Timer13 (automatic set of T13R for synchronization to Timer12 compare signals)

Parameters
ccu6Pointer to the base of CCU6 registers
modeThe trigger event to start T13
Returns
None

Definition at line 1870 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_initModule(), IfxCcu6_PwmBc_stop(), IfxCcu6_Timer_initModule(), IfxCcu6_Timer_stop(), IfxCcu6_TimerWithTrigger_init(), IfxCcu6_TPwm_initModule(), and IfxCcu6_TPwm_stop().

IFX_INLINE void IfxCcu6_setTrapMode ( Ifx_CCU6 *  ccu6,
IfxCcu6_TrapMode  mode 
)

Sets the mode of clearing the trap flag TRPF after the trap input condition is no longer valid.

Parameters
ccu6Pointer to the base of CCU6 registers
modeTrap mode selection
Returns
None

Definition at line 1876 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_setTrapState ( Ifx_CCU6 *  ccu6,
IfxCcu6_TrapState  state 
)

Sets behaviour of the selected outputs when leaving the trap state after the trap condition has become inactive again.

Parameters
ccu6Pointer to the base of CCU6 registers
stateTrap state selection
Returns
None

Definition at line 1882 of file IfxCcu6.h.

IFX_INLINE void IfxCcu6_startTimer ( Ifx_CCU6 *  ccu6,
boolean  t12,
boolean  t13 
)

starts the timers (T12, T13 individually or together based on the selection)

Parameters
ccu6Pointer to the base of CCU6 registers
t12Timer12 start choice (enable / disable)
t13Timer13 start choice (enable / disable)
Returns
None

Definition at line 1889 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_startCapture(), IfxCcu6_PwmBc_start(), IfxCcu6_Timer_start(), IfxCcu6_Timer_startSingleShotMode(), IfxCcu6_Timer_synchronousStart(), IfxCcu6_TimerWithTrigger_run(), and IfxCcu6_TPwm_start().

IFX_INLINE void IfxCcu6_stopTimer ( Ifx_CCU6 *  ccu6,
boolean  t12,
boolean  t13 
)

starts the timers (T12, T13 individually or together based on the selection)

Parameters
ccu6Pointer to the base of CCU6 registers
t12Timer12 stop choice (enable / disable)
t13Timer13 stop choice (enable / disable)
Returns
None

Definition at line 1899 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_stopCapture(), IfxCcu6_PwmBc_stop(), IfxCcu6_Timer_stop(), IfxCcu6_Timer_synchronousStop(), IfxCcu6_TimerWithTrigger_stop(), and IfxCcu6_TPwm_stop().

IFX_INLINE void IfxCcu6_updateHallPattern ( Ifx_CCU6 *  ccu6,
uint8  currentHall,
uint8  expectedHall,
uint8  output 
)

Updates the hall pattern (current hall, expected hall, moduleation output), in a single write.

Parameters
ccu6Pointer to the base of CCU6 registers
currentHallCurrent hall pattern
expectedHallExpected hall pattern
outputOutput pattern for the multichannel mode.
Returns
None

Definition at line 1909 of file IfxCcu6.h.

Referenced by IfxCcu6_PwmBc_updateHallPattern().