iLLD_TC27xD
1.0
|
Standard interface: Multi-channels, dual-complementary PWM interface. More...
Go to the source code of this file.
Data Structures | |
struct | IfxStdIf_PwmHl_ |
Standard interface object. More... | |
struct | IfxStdIf_PwmHl_Config |
Multi-channels PWM object configuration. More... | |
Standard interface: Multi-channels, dual-complementary PWM interface.
IMPORTANT NOTICE
Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.
THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
Definition in file IfxStdIf_PwmHl.h.
struct IfxStdIf_PwmHl_ |
Standard interface object.
Definition at line 139 of file IfxStdIf_PwmHl.h.
Data Fields | ||
---|---|---|
IfxStdIf_InterfaceDriver | driver | Interface driver object. |
IfxStdIf_PwmHl_GetDeadtime | getDeadtime | IfxStdIf_PwmHl_GetDeadtime. |
IfxStdIf_PwmHl_GetMinPulse | getMinPulse | IfxStdIf_PwmHl_GetMinPulse. |
IfxStdIf_PwmHl_GetMode | getMode | IfxStdIf_PwmHl_GetMode. |
IfxStdIf_PwmHl_SetDeadtime | setDeadtime | IfxStdIf_PwmHl_SetDeadtime. |
IfxStdIf_PwmHl_SetMinPulse | setMinPulse | IfxStdIf_PwmHl_SetMinPulse. |
IfxStdIf_PwmHl_SetMode | setMode | IfxStdIf_PwmHl_SetMode. |
IfxStdIf_PwmHl_SetOnTime | setOnTime | IfxStdIf_PwmHl_SetOnTime. |
IfxStdIf_PwmHl_SetupChannels | setupChannels | IfxStdIf_PwmHl_SetupChannels. |
IfxStdIf_Timer | timer | Timer related standard interface. |
struct IfxStdIf_PwmHl_Config |
Multi-channels PWM object configuration.
Definition at line 157 of file IfxStdIf_PwmHl.h.
Data Fields | ||
---|---|---|
Ifx_ActiveState | ccxActiveState | Top PWM active state. |
uint8 | channelCount | Number of PWM channels, one channel is made of a top and bottom channel. |
Ifx_ActiveState | coutxActiveState | Bottom PWM active state. |
float32 | deadtime | Dead time between the top and bottom channels in seconds. |
boolean | emergencyEnabled | Specifies if the emergency stop should be enabled or not. |
float32 | minPulse | Min pulse allowed as active state for the top and bottom PWM in seconds. |
IfxPort_PadDriver | outputDriver | Output pad driver of ccx and coutx pins. |
IfxPort_OutputMode | outputMode | Output mode of ccx and coutx pins. |
typedef struct IfxStdIf_PwmHl_ IfxStdIf_PwmHl |
Forward declaration.
Definition at line 61 of file IfxStdIf_PwmHl.h.
typedef float32(* IfxStdIf_PwmHl_GetDeadtime)(IfxStdIf_InterfaceDriver driver) |
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 77 of file IfxStdIf_PwmHl.h.
typedef float32(* IfxStdIf_PwmHl_GetMinPulse)(IfxStdIf_InterfaceDriver driver) |
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 93 of file IfxStdIf_PwmHl.h.
typedef Ifx_Pwm_Mode(* IfxStdIf_PwmHl_GetMode)(IfxStdIf_InterfaceDriver driver) |
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 101 of file IfxStdIf_PwmHl.h.
typedef boolean(* IfxStdIf_PwmHl_SetDeadtime)(IfxStdIf_InterfaceDriver driver, 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 69 of file IfxStdIf_PwmHl.h.
typedef boolean(* IfxStdIf_PwmHl_SetMinPulse)(IfxStdIf_InterfaceDriver driver, 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 85 of file IfxStdIf_PwmHl.h.
typedef boolean(* IfxStdIf_PwmHl_SetMode)(IfxStdIf_InterfaceDriver driver, 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 109 of file IfxStdIf_PwmHl.h.
typedef void(* IfxStdIf_PwmHl_SetOnTime)(IfxStdIf_InterfaceDriver driver, 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 116 of file IfxStdIf_PwmHl.h.
typedef void(* IfxStdIf_PwmHl_SetupChannels)(IfxStdIf_InterfaceDriver 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 135 of file IfxStdIf_PwmHl.h.
IFX_EXTERN void IfxStdIf_PwmHl_initConfig | ( | IfxStdIf_PwmHl_Config * | config) |
Initialize the configuration structure to default
config | Timer configuration. This parameter is initialised by the function |
Definition at line 28 of file IfxStdIf_PwmHl.c.
Referenced by IfxCcu6_PwmHl_initConfig(), IfxGtm_Atom_PwmHl_initConfig(), and IfxGtm_Tom_PwmHl_initConfig().