iLLD_TC27xD
1.0
|
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 uint32 * | IfxCcu6_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... | |
IFX_INLINE void IfxCcu6_clearCounter | ( | Ifx_CCU6 * | ccu6, |
boolean | t12, | ||
boolean | t13 | ||
) |
IFX_INLINE void IfxCcu6_clearDeadTimeCounters | ( | Ifx_CCU6 * | ccu6) |
IFX_INLINE void IfxCcu6_clearInterruptStatusFlag | ( | Ifx_CCU6 * | ccu6, |
IfxCcu6_InterruptSource | source | ||
) |
Clears the selected interrupt flag.
ccu6 | Pointer to the base of CCU6 registers |
source | Interrupt source selection |
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.
ccu6 | Pointer to the base of CCU6 registers |
Definition at line 1275 of file IfxCcu6.h.
Referenced by IfxCcu6_TimerWithTrigger_acknowledgeTimerIrq().
IFX_INLINE void IfxCcu6_clearT12PeriodNotification | ( | Ifx_CCU6 * | ccu6) |
IFX_INLINE void IfxCcu6_clearT13CompareNotification | ( | Ifx_CCU6 * | ccu6) |
Clears the T13 compare notification.
ccu6 | Pointer to the base of CCU6 registers |
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 | ||
) |
ccu6 | Specifies Ccu6 module |
outputLine | Output Line |
selectedTrigger | Trigger selection |
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.
ccu6 | Pointer to the base of CCU6 registers |
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.
ccu6 | Pointer to the base of CCU6 registers |
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.
ccu6 | Pointer to the base of CCU6 registers |
Definition at line 1692 of file IfxCcu6.h.
Referenced by IfxCcu6_TimerWithTrigger_acknowledgeTimerIrq().
IFX_INLINE boolean IfxCcu6_isT12PeriodNotification | ( | Ifx_CCU6 * | ccu6) |
IFX_INLINE boolean IfxCcu6_isT13CompareNotification | ( | Ifx_CCU6 * | ccu6) |
Returns the status of T13 compare notification.
ccu6 | Pointer to the base of CCU6 registers |
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.
ccu6 | Pointer to the base of CCU6 registers |
source | Interrupt source selection |
serviceRequest | Selection of service request outputs |
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).
ccu6 | Pointer to the base of CCU6 registers |
timer | Timer selection, ( Timer12 / Timer13 ) |
mode | Input event leading to a counting action of the timer (T12 / T13) |
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 | ||
) |
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)
ccu6 | Pointer to the base of CCU6 registers |
value | Value of the dead time to be induced |
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 | ||
) |
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.
ccu6 | Pointer to the base of CCU6 registers |
timer | Timer selection, ( Timer12 / Timer13 ) |
mode | External trigger mode |
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.
ccu6 | Pointer to the base of CCU6 registers |
mode | Hall sensor input trigger event |
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)
ccu6 | Pointer to the base of CCU6 registers |
timer | Timer selection, ( Timer12 / Timer13 ) |
frequency | Input clock for timers (T12 or T13) |
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 | ||
) |
IFX_INLINE void IfxCcu6_setMultiChannelPwmPattern | ( | Ifx_CCU6 * | ccu6, |
uint8 | pattern | ||
) |
Sets the output pattern for the multichannel mode (writes into shadow register)
ccu6 | Pointer to the base of CCU6 registers |
pattern | Output pattern for the multichannel mode. |
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.
ccu6 | Pointer to the base of CCU6 registers |
mode | Trigger request source (next multi-channel event) for the shadow transfer MCM_ST |
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.
ccu6 | Pointer to the base of CCU6 registers |
sync | Synchronization mechanism of the shadow transfer event MCM_ST |
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.
ccu6 | Pointer to the base of CCU6 registers |
channelOut | Capture compare output selection |
state | FALSE: The passive level is 0. TRUE : The passive level is 1. |
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.
ccu6 | Pointer to the base of CCU6 registers |
channelOut | Capture compare output selection |
state | FALSE: passive state when CC6xST == 0 TRUE : passive state when CC6xST == 1 |
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)
ccu6 | Pointer to the base of CCU6 registers |
t12 | Timer12 choice (enable / disable) |
t13 | Timer13 choice (enable / disable) |
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)
ccu6 | Pointer to the base of CCU6 registers |
channel | Timer12 Capture compare channel number |
state | capture/compare state selection (set / clear / toggle) |
IFX_INLINE void IfxCcu6_setT12ChannelMode | ( | Ifx_CCU6 * | ccu6, |
IfxCcu6_T12Channel | channel, | ||
IfxCcu6_T12ChannelMode | mode | ||
) |
Sets the operating mode of the Timer12 capture/compare channels.
ccu6 | Pointer to the base of CCU6 registers |
channel | Timer12 Capture compare channel number |
mode | The operating mode for the T12 channels |
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)
ccu6 | Pointer to the base of CCU6 registers |
channel | Timer12 Capture compare channel number |
value | Compare value |
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.
ccu6 | Pointer to the base of CCU6 registers |
value | Counter value |
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 | ||
) |
ccu6 | Pointer to the base of CCU6 registers |
mode | Operating mode of Timer 12 |
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.
ccu6 | Pointer to the base of CCU6 registers |
frequency | Requested timer frequency in Hz |
resolution | Pointer to requested minimum timer resolution in ticks |
countMode | Counting mode of Timer12 |
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.
ccu6 | Pointer to the base of CCU6 registers |
extInput | External input signal for the Timer 12 |
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.
ccu6 | Pointer to the base of CCU6 registers |
value | Period value |
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 | ||
) |
IFX_INLINE void IfxCcu6_setT13CompareValue | ( | Ifx_CCU6 * | ccu6, |
uint16 | value | ||
) |
Sets the 16-bit compare value of Timer13 (writes into shadow register)
ccu6 | Pointer to the base of CCU6 registers |
value | Compare value |
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.
ccu6 | Pointer to the base of CCU6 registers |
value | counter value |
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.
ccu6 | Pointer to the base of CCU6 registers |
frequency | Requested timer frequency in Hz |
resolution | Pointer to requested minimum timer resolution in ticks |
IfxCcu6_Stat_wrongPwmFreq | if 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.
ccu6 | Pointer to the base of CCU6 registers |
extInput | External input signal for the Timer 13 |
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.
ccu6 | Pointer to the base of CCU6 registers |
value | period value |
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.
ccu6 | Pointer to the base of CCU6 registers |
direction | T13 trigger event direction |
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)
ccu6 | Pointer to the base of CCU6 registers |
mode | The trigger event to start T13 |
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 | ||
) |
IFX_INLINE void IfxCcu6_setTrapState | ( | Ifx_CCU6 * | ccu6, |
IfxCcu6_TrapState | state | ||
) |
IFX_INLINE void IfxCcu6_startTimer | ( | Ifx_CCU6 * | ccu6, |
boolean | t12, | ||
boolean | t13 | ||
) |
starts the timers (T12, T13 individually or together based on the selection)
ccu6 | Pointer to the base of CCU6 registers |
t12 | Timer12 start choice (enable / disable) |
t13 | Timer13 start choice (enable / disable) |
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)
ccu6 | Pointer to the base of CCU6 registers |
t12 | Timer12 stop choice (enable / disable) |
t13 | Timer13 stop choice (enable / disable) |
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.
ccu6 | Pointer to the base of CCU6 registers |
currentHall | Current hall pattern |
expectedHall | Expected hall pattern |
output | Output pattern for the multichannel mode. |
Definition at line 1909 of file IfxCcu6.h.
Referenced by IfxCcu6_PwmBc_updateHallPattern().