Infineon MOTIX™ MCU TLE987x Device Family SDK
Macros | Functions
mon.h File Reference

Go to the source code of this file.

Detailed Description

High Voltage Monitor Input low level access library.

Version
V0.1.7
Date
28. Feb 2022

Include Graph

Include dependency graph for mon.h:

Macros

#define MON_STATUS_LOW   (0U)
 MON Status Flag mask, MON LOW STATUS. More...
 
#define MON_STATUS_HIGH   (1U)
 MON Status Flag mask, MON HIGH STATUS. More...
 

Functions

INLINE void MON_Rising_Edge_Int_Clr (void)
 clears MON on rising edge interrupt flag. More...
 
INLINE void MON_Falling_Edge_Int_Clr (void)
 clears MON on falling edge interrupt flag. More...
 
INLINE void MON_Rising_Edge_Int_En (void)
 enables MON on rising edge interrupt. More...
 
INLINE void MON_Rising_Edge_Int_Dis (void)
 disables MON on rising edge interrupt. More...
 
INLINE void MON_Falling_Edge_Int_En (void)
 enables MON on falling edge interrupt. More...
 
INLINE void MON_Falling_Edge_Int_Dis (void)
 disables MON on falling edge interrupt. More...
 
INLINE uint8 MON_Sts (void)
 reads MON Status. More...
 
INLINE void MON_PullUp_En (void)
 enables PullUp for MON. More...
 
INLINE void MON_PullUp_Dis (void)
 disables PullUp for MON. More...
 
INLINE void MON_PullDown_En (void)
 enables PullDown for MON. More...
 
INLINE void MON_PullDown_Dis (void)
 disables PullDown for MON. More...
 
INLINE void MON_CycSense_En (void)
 enables Cycle Sense for MON. More...
 
INLINE void MON_CycSense_Dis (void)
 disables Cycle Sense for MON. More...
 
INLINE void MON_WakeOnRise_En (void)
 enables Wake-up on Rising Edge for MON. More...
 
INLINE void MON_WakeOnRise_Dis (void)
 disables Wake-up on Rising Edge for MON. More...
 
INLINE void MON_WakeOnFall_En (void)
 enables Wake-up on Falling Edge for MON. More...
 
INLINE void MON_WakeOnFall_Dis (void)
 disables Wake-up on Falling Edge for MON. More...
 
INLINE void MON_En (void)
 enables MON. More...
 
INLINE void MON_Dis (void)
 disables MON. More...
 
INLINE uint8 MON_Get_Status (void)
 Reads out the MON Status. More...
 
void MON_Init (void)
 Initializes the MON module based on the Config Wizard for MOTIX MCU configuration. More...
 
uint8 MON_Debounce (uint8 MonActiveState)
 Debounces the MON input and reads the logical input value. More...
 

Macro Definition Documentation

◆ MON_STATUS_HIGH

#define MON_STATUS_HIGH   (1U)

MON Status Flag mask, MON HIGH STATUS.

◆ MON_STATUS_LOW

#define MON_STATUS_LOW   (0U)

MON Status Flag mask, MON LOW STATUS.

Function Documentation

◆ MON_CycSense_Dis()

INLINE void MON_CycSense_Dis ( void  )

disables Cycle Sense for MON.

Example

This example disables Cycle Sense for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_En(void)
enables MON.
Definition: mon.h:459
INLINE void MON_CycSense_Dis(void)
disables Cycle Sense for MON.
Definition: mon.h:369

◆ MON_CycSense_En()

INLINE void MON_CycSense_En ( void  )

enables Cycle Sense for MON.

Example

This example enables Cycle Sense for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_CycSense_En(void)
enables Cycle Sense for MON.
Definition: mon.h:351

◆ MON_Debounce()

uint8 MON_Debounce ( uint8  MonActiveState)

Debounces the MON input and reads the logical input value.

Parameters
MonActiveStateexpected active state of the MON input

Example

This example Debounces the MON input to Low Level and reads the logical input value.

void Example_Function(void)
{
uint8 status;
MON_En();
status = MON_Debounce(0u);
}
uint8 MON_Debounce(uint8 MonActiveState)
Debounces the MON input and reads the logical input value.
uint8_t uint8
8 bit unsigned value
Definition: types.h:153

◆ MON_Dis()

INLINE void MON_Dis ( void  )

disables MON.

Example

This example disables MON.

void Example_Function(void)
{
}
INLINE void MON_Dis(void)
disables MON.
Definition: mon.h:476

◆ MON_En()

INLINE void MON_En ( void  )

enables MON.

Example

This example enables Wake-up on Falling Edge for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_WakeOnFall_En(void)
enables Wake-up on Falling Edge for MON.
Definition: mon.h:423

◆ MON_Falling_Edge_Int_Clr()

INLINE void MON_Falling_Edge_Int_Clr ( void  )

clears MON on falling edge interrupt flag.

Example

This example treats the MON on falling edge interrupt.

void Example_Function(void)
{
if ((uint8)SCU->MODIEN3.bit.MONIE == (uint8)1)
{
if ((uint8)SCU->IRCON0.bit.MONF == (uint8)1)
{
MON_FALLING_CALLBACK();
}
}
}
#define SCU
Definition: tle987x.h:6097
INLINE void MON_Falling_Edge_Int_En(void)
enables MON on falling edge interrupt.
Definition: mon.h:214
INLINE void MON_Falling_Edge_Int_Clr(void)
clears MON on falling edge interrupt flag.
Definition: mon.h:138

◆ MON_Falling_Edge_Int_Dis()

INLINE void MON_Falling_Edge_Int_Dis ( void  )

disables MON on falling edge interrupt.

Example

This example treats the MON on falling edge interrupt.

void Example_Function(void)
{
if ((uint8)SCU->MODIEN3.bit.MONIE == (uint8)1)
{
if ((uint8)SCU->IRCON0.bit.MONF == (uint8)1)
{
MON_FALLING_CALLBACK();
}
}
}
INLINE void MON_Falling_Edge_Int_Dis(void)
disables MON on falling edge interrupt.
Definition: mon.h:240

◆ MON_Falling_Edge_Int_En()

INLINE void MON_Falling_Edge_Int_En ( void  )

enables MON on falling edge interrupt.

Example

This example treats the MON on falling edge interrupt.

void Example_Function(void)
{
if ((uint8)SCU->MODIEN3.bit.MONIE == (uint8)1)
{
if ((uint8)SCU->IRCON0.bit.MONF == (uint8)1)
{
MON_FALLING_CALLBACK();
}
}
}

◆ MON_Get_Status()

INLINE uint8 MON_Get_Status ( void  )

Reads out the MON Status.

Returns
MON status flag

Example

This example reads MON Status.

void Example_Function(void)
{
uint8 status;
MON_En();
status = MON_Get_Status();
}
INLINE uint8 MON_Get_Status(void)
Reads out the MON Status.
Definition: mon.h:531

◆ MON_Init()

void MON_Init ( void  )

Initializes the MON module based on the Config Wizard for MOTIX MCU configuration.

◆ MON_PullDown_Dis()

INLINE void MON_PullDown_Dis ( void  )

disables PullDown for MON.

Example

This example disables PullDown for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_PullDown_Dis(void)
disables PullDown for MON.
Definition: mon.h:333

◆ MON_PullDown_En()

INLINE void MON_PullDown_En ( void  )

enables PullDown for MON.

Example

This example enables PullDown for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_PullDown_En(void)
enables PullDown for MON.
Definition: mon.h:315

◆ MON_PullUp_Dis()

INLINE void MON_PullUp_Dis ( void  )

disables PullUp for MON.

Example

This example disables PullUp for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_PullUp_Dis(void)
disables PullUp for MON.
Definition: mon.h:297

◆ MON_PullUp_En()

INLINE void MON_PullUp_En ( void  )

enables PullUp for MON.

Example

This example enables PullUp for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_PullUp_En(void)
enables PullUp for MON.
Definition: mon.h:279

◆ MON_Rising_Edge_Int_Clr()

INLINE void MON_Rising_Edge_Int_Clr ( void  )

clears MON on rising edge interrupt flag.

Example

This example treats the MON on rising edge interrupt.

void Example_Function(void)
{
if ((uint8)SCU->MODIEN3.bit.MONIE == (uint8)1)
{
if ((uint8)SCU->IRCON0.bit.MONR == (uint8)1)
{
MON_RISING_CALLBACK();
}
}
}
INLINE void MON_Rising_Edge_Int_Clr(void)
clears MON on rising edge interrupt flag.
Definition: mon.h:113
INLINE void MON_Rising_Edge_Int_En(void)
enables MON on rising edge interrupt.
Definition: mon.h:163

◆ MON_Rising_Edge_Int_Dis()

INLINE void MON_Rising_Edge_Int_Dis ( void  )

disables MON on rising edge interrupt.

Example

This example treats the MON on rising edge interrupt.

void Example_Function(void)
{
if ((uint8)SCU->MODIEN3.bit.MONIE == (uint8)1)
{
if ((uint8)SCU->IRCON0.bit.MONR == (uint8)1)
{
MON_RISING_CALLBACK();
}
}
}
INLINE void MON_Rising_Edge_Int_Dis(void)
disables MON on rising edge interrupt.
Definition: mon.h:189

◆ MON_Rising_Edge_Int_En()

INLINE void MON_Rising_Edge_Int_En ( void  )

enables MON on rising edge interrupt.

Example

This example treats the MON on rising edge interrupt.

void Example_Function(void)
{
if ((uint8)SCU->MODIEN3.bit.MONIE == (uint8)1)
{
if ((uint8)SCU->IRCON0.bit.MONR == (uint8)1)
{
MON_RISING_CALLBACK();
}
}
}

◆ MON_Sts()

INLINE uint8 MON_Sts ( void  )

reads MON Status.

Returns
MON Status

Example

This example reads MON Status.

void Example_Function(void)
{
uint8 status;
status = MON_Sts();
}
INLINE uint8 MON_Sts(void)
reads MON Status.
Definition: mon.h:261

◆ MON_WakeOnFall_Dis()

INLINE void MON_WakeOnFall_Dis ( void  )

disables Wake-up on Falling Edge for MON.

Example

This example disables Wake-up on Falling Edge for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_WakeOnFall_Dis(void)
disables Wake-up on Falling Edge for MON.
Definition: mon.h:441

◆ MON_WakeOnFall_En()

INLINE void MON_WakeOnFall_En ( void  )

enables Wake-up on Falling Edge for MON.

Example

This example enables Wake-up on Falling Edge for MON.

void Example_Function(void)
{
MON_En();
}

◆ MON_WakeOnRise_Dis()

INLINE void MON_WakeOnRise_Dis ( void  )

disables Wake-up on Rising Edge for MON.

Example

This example disables Wake-up on Rising Edge for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_WakeOnRise_Dis(void)
disables Wake-up on Rising Edge for MON.
Definition: mon.h:405

◆ MON_WakeOnRise_En()

INLINE void MON_WakeOnRise_En ( void  )

enables Wake-up on Rising Edge for MON.

Example

This example enables Wake-up on Rising Edge for MON.

void Example_Function(void)
{
MON_En();
}
INLINE void MON_WakeOnRise_En(void)
enables Wake-up on Rising Edge for MON.
Definition: mon.h:387