iLLD_TC27xD  1.0
Utility Functions
Collaboration diagram for Utility Functions:

Functions

IFX_INLINE boolean IfxCcu6_getDeadTimeStatus (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel)
 Indicate the status of the dead time generation for each compare channel (0, 1, 2) of timer T12. More...
 
IFX_INLINE boolean IfxCcu6_getHallPatternSampleState (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel)
 Returns the value of the input Hall pattern of the Timer12 capture/compare channels CC6POS6x (x = 0, 1, 2)
that has been compared to the current and expected value. More...
 
IFX_INLINE boolean IfxCcu6_getInterruptStatusFlag (Ifx_CCU6 *ccu6, IfxCcu6_InterruptSource source)
 Gets the status of the selected interrupt flag. More...
 
IFX_INLINE boolean IfxCcu6_getMultiChannelModeAvailabilityStatus (Ifx_CCU6 *ccu6)
 indicates if the multi-channel mode functionality is available More...
 
IFX_INLINE boolean IfxCcu6_getMultiChannelPWMPatternShadowTransferStatus (Ifx_CCU6 *ccu6)
 Gets the status of the shadow transfer request from MCMPS to MCMP. More...
 
IFX_INLINE boolean IfxCcu6_getShadowTransferStatus (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer)
 Returns the Timer (T12 / T13) shadow transfer enable status. More...
 
IFX_INLINE boolean IfxCcu6_getT12CaptureCompareState (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel)
 Returns the state of the Timer12 capture/compare channels CC6xST (x = 0, 1, 2) More...
 
IFX_INLINE
IfxCcu6_T12CountDirection 
IfxCcu6_getT12CountDirection (Ifx_CCU6 *ccu6)
 Returns the current counting direction of Timer12. More...
 
IFX_INLINE boolean IfxCcu6_getT13CaptureCompareState (Ifx_CCU6 *ccu6)
 Returns the state of the Timer13 capture/compare channel CC63ST. More...
 
IFX_INLINE boolean IfxCcu6_getTimerAvailabilityStatus (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer)
 indicates the Timer blocks (T12 / T13) availability More...
 
IFX_INLINE IfxCcu6_TimerRunStatus IfxCcu6_getTimerRunStatus (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer)
 Returns the Timer (T12 / T13) run status. More...
 
IFX_EXTERN uint32 IfxCcu6_getCaptureRegisterValue (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel)
 Returns the capture register value of the selected channel. More...
 
IFX_EXTERN uint32 IfxCcu6_getCaptureShadowRegisterValue (Ifx_CCU6 *ccu6, IfxCcu6_T12Channel channel)
 Returns the capture shadow register value of the selected channel. More...
 
IFX_EXTERN sint32 IfxCcu6_getIndex (Ifx_CCU6 *ccu6)
 Returns CCU6 index. More...
 
IFX_EXTERN volatile Ifx_SRC_SRCR * IfxCcu6_getSrcAddress (Ifx_CCU6 *ccu6, IfxCcu6_ServiceRequest serviceRequest)
 Returns the service request register. More...
 
IFX_EXTERN uint32 IfxCcu6_readTimer (Ifx_CCU6 *ccu6, IfxCcu6_TimerId timer)
 Returns the current value of the timer register. More...
 

Detailed Description

Function Documentation

IFX_EXTERN uint32 IfxCcu6_getCaptureRegisterValue ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel 
)

Returns the capture register value of the selected channel.

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
Returns
current value of the capture register of a selected channel

Definition at line 128 of file IfxCcu6.c.

Referenced by IfxCcu6_PwmBc_getMotorSpeed().

IFX_EXTERN uint32 IfxCcu6_getCaptureShadowRegisterValue ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel 
)

Returns the capture shadow register value of the selected channel.

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
Returns
current value of the capture shadow register of a selected channel

Definition at line 155 of file IfxCcu6.c.

Referenced by IfxCcu6_Icu_getTimeStamp(), and IfxCcu6_PwmBc_getMotorSpeed().

IFX_INLINE boolean IfxCcu6_getDeadTimeStatus ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel 
)

Indicate the status of the dead time generation for each compare channel (0, 1, 2) of timer T12.

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
Returns
Status TRUE or FALSE

Definition at line 1491 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_getHallPatternSampleState ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel 
)

Returns the value of the input Hall pattern of the Timer12 capture/compare channels CC6POS6x (x = 0, 1, 2)
that has been compared to the current and expected value.

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
Returns
Status
TRUE : The input CCPOSx has been sampled as 0
FALSE : The input CCPOSx has been sampled as 1

Definition at line 1499 of file IfxCcu6.h.

IFX_EXTERN sint32 IfxCcu6_getIndex ( Ifx_CCU6 *  ccu6)

Returns CCU6 index.

Parameters
ccu6Specifies Ccu6 module
Returns
Returns index. returns -1 in case of unknown index

Definition at line 182 of file IfxCcu6.c.

Referenced by IfxCcu6_getSrcAddress().

IFX_INLINE boolean IfxCcu6_getInterruptStatusFlag ( Ifx_CCU6 *  ccu6,
IfxCcu6_InterruptSource  source 
)

Gets the status of the selected interrupt flag.

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

Definition at line 1507 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_getMultiChannelModeAvailabilityStatus ( Ifx_CCU6 *  ccu6)

indicates if the multi-channel mode functionality is available

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

Definition at line 1514 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_getMultiChannelPWMPatternShadowTransferStatus ( Ifx_CCU6 *  ccu6)

Gets the status of the shadow transfer request from MCMPS to MCMP.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Status
FALSE: A shadow transfer MCM_ST is not requested
TRUE: A shadow transfer MCM_ST is requested, but has not yet been executed

Definition at line 1520 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_getShadowTransferStatus ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer 
)

Returns the Timer (T12 / T13) shadow transfer enable status.

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
Returns
Status (TRUE: enable / FALSE: disable)

Definition at line 1526 of file IfxCcu6.h.

IFX_EXTERN volatile Ifx_SRC_SRCR* IfxCcu6_getSrcAddress ( Ifx_CCU6 *  ccu6,
IfxCcu6_ServiceRequest  serviceRequest 
)

Returns the service request register.

Parameters
ccu6Specifies Ccu6 module
serviceRequestSelection of service request outputs
Returns
The service request register

Definition at line 199 of file IfxCcu6.c.

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

IFX_INLINE boolean IfxCcu6_getT12CaptureCompareState ( Ifx_CCU6 *  ccu6,
IfxCcu6_T12Channel  channel 
)

Returns the state of the Timer12 capture/compare channels CC6xST (x = 0, 1, 2)

Parameters
ccu6Pointer to the base of CCU6 registers
channelTimer12 Capture compare channel number
Returns
Status TRUE or FALSE

Definition at line 1534 of file IfxCcu6.h.

IFX_INLINE IfxCcu6_T12CountDirection IfxCcu6_getT12CountDirection ( Ifx_CCU6 *  ccu6)

Returns the current counting direction of Timer12.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
direction (up / down)

Definition at line 1541 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_getT13CaptureCompareState ( Ifx_CCU6 *  ccu6)

Returns the state of the Timer13 capture/compare channel CC63ST.

Parameters
ccu6Pointer to the base of CCU6 registers
Returns
Status TRUE or FALSE

Definition at line 1553 of file IfxCcu6.h.

IFX_INLINE boolean IfxCcu6_getTimerAvailabilityStatus ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer 
)

indicates the Timer blocks (T12 / T13) availability

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
Returns
Status (TRUE / FALSE)

Definition at line 1559 of file IfxCcu6.h.

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

IFX_INLINE IfxCcu6_TimerRunStatus IfxCcu6_getTimerRunStatus ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer 
)

Returns the Timer (T12 / T13) run status.

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
Returns
Status (stopped / running)

Definition at line 1566 of file IfxCcu6.h.

Referenced by IfxCcu6_Icu_startCapture().

IFX_EXTERN uint32 IfxCcu6_readTimer ( Ifx_CCU6 *  ccu6,
IfxCcu6_TimerId  timer 
)

Returns the current value of the timer register.

Parameters
ccu6Pointer to the base of CCU6 registers
timerTimer selection, ( Timer12 / Timer13 )
Returns
current value of the timer register

Definition at line 208 of file IfxCcu6.c.