![]() |
Infineon MOTIX™ MCU TLE985x Device Family SDK
|
Go to the source code of this file.
High-Side Switch low level access library.
Macros | |
#define | HS_IRQ_BITS 0x000000E0 |
HS Interrupt Mask. More... | |
#define | HS_CONF_MASK 0x0000000F |
HS Interrupt Mask. More... | |
Enumerations | |
enum | THs_HS1_Cfg { Ch_HS_Off = 0u , Ch_HS_En = 1u , Ch_HS_PWM = 3u , Ch_HS_On = 5u , Ch_HS_Ol = 9u } |
This enum lists the High Side channel configuration. More... | |
enum | THs_Sts { HS_OT_ISC = 0x00000020u , HS_OL_ISC = 0x00000040u , HS_OC_ISC = 0x00000080u , HS_OT_SC = 0x00002000u , HS_OL_SC = 0x00004000u } |
This enum lists the High Side channel configuration Mask Status. More... | |
enum | THs_Int { HS_Int_Off = 0U , HS_Int_OT = 1U , HS_Int_OL = 2U , HS_Int_OC = 4U } |
This enum lists the High Side channel Interrupt configuration. More... | |
Functions | |
void | HS_Init (void) |
Initializes the HS module. More... | |
INLINE void | HS_Clr_Sts (THs_Sts Sts_Bit) |
Clears High-Side Switch individual status flags. More... | |
INLINE void | HS_Set_Int_Channel (THs_Int HS1_Int) |
Sets High-Side Switch Interrupt Enable. More... | |
INLINE void | HS_Set_Conf (THs_HS1_Cfg HS1_Cfg) |
Sets the High-Side Switch in the desired state. More... | |
INLINE void | HS_HS1_OT_Int_Clr (void) |
Clears HS1 Overtemperature interrupt flag. More... | |
INLINE void | HS_HS1_OL_Int_Clr (void) |
Clears HS1 Open Load interrupt flag. More... | |
INLINE void | HS_HS1_OC_Int_Clr (void) |
Clears HS1 Overcurrent interrupt flag. More... | |
INLINE void | HS_HS1_OT_SC_Clr (void) |
Clears HS1 Overtemperature Status. More... | |
INLINE void | HS_HS1_OL_SC_Clr (void) |
Clears HS1 Open Load Status. More... | |
INLINE void | HS_HS1_OT_Int_En (void) |
Enables HS1 Overtemperature interrupt. More... | |
INLINE void | HS_HS1_OT_Int_Dis (void) |
Disables HS1 Overtemperature interrupt. More... | |
INLINE void | HS_HS1_OL_Int_En (void) |
Enables HS1 Open Load interrupt. More... | |
INLINE void | HS_HS1_OL_Int_Dis (void) |
Disables HS1 Open Load interrupt. More... | |
INLINE void | HS_HS1_OC_Int_En (void) |
Enables HS1 Overcurrent interrupt. More... | |
INLINE void | HS_HS1_OC_Int_Dis (void) |
Disables HS1 Overcurrent interrupt. More... | |
#define HS_CONF_MASK 0x0000000F |
HS Interrupt Mask.
#define HS_IRQ_BITS 0x000000E0 |
HS Interrupt Mask.
enum THs_HS1_Cfg |
enum THs_Int |
enum THs_Sts |
Clears High-Side Switch individual status flags.
Sts_Bit | status bit to be cleared, see THs_Sts |
Example
This example treats the HS1 Open Load Status.
INLINE void HS_HS1_OC_Int_Clr | ( | void | ) |
Clears HS1 Overcurrent interrupt flag.
Example
This example treats the HS1 Overcurrent interrupt.
INLINE void HS_HS1_OC_Int_Dis | ( | void | ) |
Disables HS1 Overcurrent interrupt.
Example
This example treats the HS1 Overcurrent interrupt.
INLINE void HS_HS1_OC_Int_En | ( | void | ) |
Enables HS1 Overcurrent interrupt.
Example
This example treats the HS1 Overcurrent interrupt.
INLINE void HS_HS1_OL_Int_Clr | ( | void | ) |
Clears HS1 Open Load interrupt flag.
Example
This example treats the HS1 Open Load interrupt.
INLINE void HS_HS1_OL_Int_Dis | ( | void | ) |
Disables HS1 Open Load interrupt.
Example
This example treats the HS1 Open Load interrupt.
INLINE void HS_HS1_OL_Int_En | ( | void | ) |
Enables HS1 Open Load interrupt.
Example
This example treats the HS1 Open Load interrupt.
INLINE void HS_HS1_OL_SC_Clr | ( | void | ) |
Clears HS1 Open Load Status.
Example
This example clears HS1 Open Load Status.
INLINE void HS_HS1_OT_Int_Clr | ( | void | ) |
Clears HS1 Overtemperature interrupt flag.
Example
This example clears HS1 Overtemperature interrupt.
INLINE void HS_HS1_OT_Int_Dis | ( | void | ) |
Disables HS1 Overtemperature interrupt.
Example
This example treats the HS1 Overtemperature interrupt.
INLINE void HS_HS1_OT_Int_En | ( | void | ) |
Enables HS1 Overtemperature interrupt.
Example
This example treats the HS1 Overtemperature interrupt.
INLINE void HS_HS1_OT_SC_Clr | ( | void | ) |
Clears HS1 Overtemperature Status.
Example
This example clears HS1 Overtemperature Status.
void HS_Init | ( | void | ) |
Initializes the HS module.
INLINE void HS_Set_Conf | ( | THs_HS1_Cfg | HS1_Cfg | ) |
Sets the High-Side Switch in the desired state.
HS1_Cfg | HS1 Configuration, see THs_HS1_Cfg |
Example
This example enables and configures the HS1 with PWM.
Sets High-Side Switch Interrupt Enable.
HS1_Int | Interrupt selection, see THs_Int |
Example
This example treats the HS1 Overcurrent interrupt.