iLLD_TC29x
1.0
|
The standard interface pwm high/low (PwmHl) abstract the hardware used for pwm feature. It provide, after proper initialization an hardware independant way to interact with the PWM functionallity like setting duty cycles, dead time,timer functionalities, ...
The figure below shows the standard Multi-channels, dual-complementary PWM interface.
This PWM interface provides multiple dual-complementary PWM channels. Each dual-complementary PWM channel is made of two PWM channels, a top channel CCx and a bottom channel COUTx. The interface implements the Standard interface: Timer.
This interface defines the following features:
Example of signal generation in center aligned mode:
IFX_INLINE float32 IfxStdIf_PwmHl_getDeadtime | ( | IfxStdIf_PwmHl * | stdIf) |
Return the dead time in s.
It returns the last dead time values set by IfxStdIf_PwmHl_SetDeadtime() or during initialisation
driver | Pointer to the interface driver object |
Definition at line 183 of file IfxStdIf_PwmHl.h.
IFX_INLINE float32 IfxStdIf_PwmHl_getMinPulse | ( | IfxStdIf_PwmHl * | stdIf) |
Return the minimum pulse time in s.
It returns the last minimum pulse time values set by IfxStdIf_PwmHl_SetMinPulse() or during initialisation
driver | Pointer to the interface driver object |
Definition at line 197 of file IfxStdIf_PwmHl.h.
IFX_INLINE Ifx_Pwm_Mode IfxStdIf_PwmHl_getMode | ( | IfxStdIf_PwmHl * | stdIf) |
Return the PWM mode.
It returns the last pwm mode set by IfxStdIf_PwmHl_SetMode() or during initialisation
driver | Pointer to the interface driver object |
Definition at line 204 of file IfxStdIf_PwmHl.h.
IFX_INLINE IfxStdIf_Timer* IfxStdIf_PwmHl_getTimer | ( | IfxStdIf_PwmHl * | stdIf) |
Return the timer standard interface used by the IfxStdIf_PwmHl standard interface.
stdIf | pointer to the IfxStdIf_PwmHl object |
Definition at line 232 of file IfxStdIf_PwmHl.h.
IFX_INLINE boolean IfxStdIf_PwmHl_setDeadtime | ( | IfxStdIf_PwmHl * | stdIf, |
float32 | deadtime | ||
) |
Set the dead time in s.
driver | Pointer to the interface driver object |
deadtime | deadtime in second |
TRUE | In case of success |
FALSE | In case of failure |
Definition at line 176 of file IfxStdIf_PwmHl.h.
IFX_INLINE boolean IfxStdIf_PwmHl_setMinPulse | ( | IfxStdIf_PwmHl * | stdIf, |
float32 | minPulse | ||
) |
Set the minimum pulse time in s.
driver | Pointer to the interface driver object |
minPulse | minimal pulse in second |
TRUE | In case of success |
FALSE | In case of failure |
Definition at line 190 of file IfxStdIf_PwmHl.h.
IFX_INLINE boolean IfxStdIf_PwmHl_setMode | ( | IfxStdIf_PwmHl * | stdIf, |
Ifx_Pwm_Mode | mode | ||
) |
Set the pwm mode.
driver | Pointer to the interface driver object |
mode | PWM mode |
TRUE | In case of success |
FALSE | In case of failure (feature not supported) |
Definition at line 211 of file IfxStdIf_PwmHl.h.
IFX_INLINE void IfxStdIf_PwmHl_setOnTime | ( | IfxStdIf_PwmHl * | stdIf, |
Ifx_TimerValue * | tOn | ||
) |
Set the pwm ON time.
driver | Pointer to the interface driver object |
tOn | Pointer to an array of ON times in ticks. The array size must be equal to the number of PWM channels |
Definition at line 218 of file IfxStdIf_PwmHl.h.
IFX_INLINE void IfxStdIf_PwmHl_setupChannels | ( | IfxStdIf_PwmHl * | driver, |
boolean * | activeCh, | ||
boolean * | stuckSt | ||
) |
Set channels which are generating PWM or in "stuck-at" state.
driver | Pointer to the interface driver object |
activeCh | Pointer to boolean array containing values for PWM channels. If FALSE, the channel will be in stuck-at state, else the channel will generate PWM. |
stuckSt | Pointer 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. |
Definition at line 225 of file IfxStdIf_PwmHl.h.