iLLD_TC27xD  1.0
StdIf Functions
Collaboration diagram for StdIf Functions:

Functions

IFX_INLINE Ifx_ActiveState IfxCcu6_PwmHl_invertActiveState (Ifx_ActiveState activeState)
 Inverts the active state. More...
 
IFX_EXTERN float32 IfxCcu6_PwmHl_getDeadtime (IfxCcu6_PwmHl *driver)
 Returns the dead time. More...
 
IFX_EXTERN float32 IfxCcu6_PwmHl_getMinPulse (IfxCcu6_PwmHl *driver)
 Returns the minimum pulse. More...
 
IFX_EXTERN Ifx_Pwm_Mode IfxCcu6_PwmHl_getMode (IfxCcu6_PwmHl *driver)
 Returns Pwm mode. More...
 
IFX_EXTERN boolean IfxCcu6_PwmHl_setDeadtime (IfxCcu6_PwmHl *driver, float32 deadtime)
 Sets the dead time. More...
 
IFX_EXTERN boolean IfxCcu6_PwmHl_setMinPulse (IfxCcu6_PwmHl *driver, float32 minPulse)
 Sets the minimum pulse. More...
 
IFX_EXTERN boolean IfxCcu6_PwmHl_setMode (IfxCcu6_PwmHl *driver, Ifx_Pwm_Mode mode)
 Sets the PWM mode, the mode is only applied after setOnTime() + applyUpdate() More...
 
IFX_EXTERN void IfxCcu6_PwmHl_setOnTime (IfxCcu6_PwmHl *driver, Ifx_TimerValue *tOn)
 Sets the ON time Assign the ON time to the TOP channels. The ON time of the BOTTOM channels are complementary. More...
 
IFX_EXTERN void IfxCcu6_PwmHl_setupChannels (IfxCcu6_PwmHl *driver, boolean *activeCh, boolean *stuckSt)
 Set channels which are generating PWM or in "stuck-at" state. More...
 
IFX_EXTERN boolean IfxCcu6_PwmHl_stdIfPwmHlInit (IfxStdIf_PwmHl *stdif, IfxCcu6_PwmHl *driver)
 Initialises the statndard interface Pwm. More...
 

Detailed Description

Function Documentation

IFX_EXTERN float32 IfxCcu6_PwmHl_getDeadtime ( IfxCcu6_PwmHl driver)

Returns the dead time.

Parameters
driverCCU6 PWM driver
Returns
Dead Time
See Also
IfxStdIf_PwmHl_GetDeadtime

Definition at line 184 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN float32 IfxCcu6_PwmHl_getMinPulse ( IfxCcu6_PwmHl driver)

Returns the minimum pulse.

Parameters
driverCCU6 PWM driver
Returns
Min Pulse
See Also
IfxStdIf_PwmHl_GetMinPulse

Definition at line 190 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN Ifx_Pwm_Mode IfxCcu6_PwmHl_getMode ( IfxCcu6_PwmHl driver)

Returns Pwm mode.

Parameters
driverCCU6 PWM driver
Returns
Pwm mode
See Also
IfxStdIf_PwmHl_GetMode

Definition at line 196 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_INLINE Ifx_ActiveState IfxCcu6_PwmHl_invertActiveState ( Ifx_ActiveState  activeState)

Inverts the active state.

Parameters
activeStateActive state
Returns
State

Definition at line 118 of file IfxCcu6_PwmHl.c.

IFX_EXTERN boolean IfxCcu6_PwmHl_setDeadtime ( IfxCcu6_PwmHl driver,
float32  deadtime 
)

Sets the dead time.

Note
The changes are not applied until Timer->applyUpdate() is called.
Parameters
driverCCU6 PWM driver
deadtimeDead time value
Returns
TRUE on success else FALSE
See Also
IfxStdIf_PwmHl_SetDeadtime

Definition at line 304 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_init(), and IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN boolean IfxCcu6_PwmHl_setMinPulse ( IfxCcu6_PwmHl driver,
float32  minPulse 
)

Sets the minimum pulse.

Parameters
driverCCU6 PWM driver
minPulseMinimum pulse
Returns
TRUE on success else FALSE
See Also
IfxStdIf_PwmHl_SetMinPulse

Definition at line 316 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_init(), and IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN boolean IfxCcu6_PwmHl_setMode ( IfxCcu6_PwmHl driver,
Ifx_Pwm_Mode  mode 
)

Sets the PWM mode, the mode is only applied after setOnTime() + applyUpdate()

Parameters
driverCCU6 PWM driver
modePwm mode
Returns
TRUE on success else FALSE
See Also
IfxStdIf_PwmHl_SetMode

Definition at line 327 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_init(), and IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN void IfxCcu6_PwmHl_setOnTime ( IfxCcu6_PwmHl driver,
Ifx_TimerValue tOn 
)

Sets the ON time Assign the ON time to the TOP channels. The ON time of the BOTTOM channels are complementary.

Note
The changes are not applied until Timer->applyUpdate() is called.
Parameters
driverCCU6 PWM driver
tOnON time
Returns
None
See Also
IfxStdIf_PwmHl_SetOnTime

Definition at line 357 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN void IfxCcu6_PwmHl_setupChannels ( IfxCcu6_PwmHl driver,
boolean activeCh,
boolean stuckSt 
)

Set channels which are generating PWM or in "stuck-at" state.

Note
The values for the parameters are arranged as follows: index = 0 –> phase 0 top index = 1 –> phase 0 bottom index = 2 –> phase 1 top index = 3 –> phase 1 bottom index = 4 –> phase 2 top index = 5 –> phase 2 bottom
Parameters
driverCCU6 PWM driver
activeChPointer to boolean array containing values for PWM channels. If FALSE, the channel will be in stuck-at state, else the channel will generate PWM.
stuckStPointer to boolean array containing values for active channels. If FALSE, the stuck-at state is passive level, else the stuck-at state is active level.
Returns
None
See Also
IfxStdIf_PwmHl_SetupChannels

Definition at line 439 of file IfxCcu6_PwmHl.c.

Referenced by IfxCcu6_PwmHl_stdIfPwmHlInit().

IFX_EXTERN boolean IfxCcu6_PwmHl_stdIfPwmHlInit ( IfxStdIf_PwmHl stdif,
IfxCcu6_PwmHl driver 
)

Initialises the statndard interface Pwm.

Parameters
stdifStandard interface object, will be initialized by the function
driverInterface driver to be used by the standard interface. must be initialised separately
Returns
TRUE on success else FALSE

Definition at line 475 of file IfxCcu6_PwmHl.c.