TLE986x 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.5
Date
28. Feb 2020

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. 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();
}

◆ 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();
}

◆ 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);
}

◆ MON_Dis()

INLINE void MON_Dis ( void  )

disables MON.

Example

This example disables MON.

void Example_Function(void)
{
}

◆ 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();
}

◆ 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();
}
}
}

◆ 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();
}
}
}

◆ 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();
}

◆ MON_Init()

void MON_Init ( void  )

Initializes the MON module.

◆ 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();
}

◆ 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();
}

◆ 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();
}

◆ 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();
}

◆ 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();
}
}
}

◆ 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();
}
}
}

◆ 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();
}

◆ 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();
}

◆ 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();
}

◆ 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();
}
MON_WakeOnFall_En
INLINE void MON_WakeOnFall_En(void)
enables Wake-up on Falling Edge for MON.
Definition: mon.h:416
MON_PullDown_Dis
INLINE void MON_PullDown_Dis(void)
disables PullDown for MON.
Definition: mon.h:326
MON_CycSense_En
INLINE void MON_CycSense_En(void)
enables Cycle Sense for MON.
Definition: mon.h:344
MON_PullUp_En
INLINE void MON_PullUp_En(void)
enables PullUp for MON.
Definition: mon.h:272
MON_Falling_Edge_Int_Clr
INLINE void MON_Falling_Edge_Int_Clr(void)
clears MON on falling edge interrupt flag.
Definition: mon.h:131
MON_Sts
INLINE uint8 MON_Sts(void)
reads MON Status.
Definition: mon.h:254
MON_Rising_Edge_Int_En
INLINE void MON_Rising_Edge_Int_En(void)
enables MON on rising edge interrupt.
Definition: mon.h:156
MON_Rising_Edge_Int_Clr
INLINE void MON_Rising_Edge_Int_Clr(void)
clears MON on rising edge interrupt flag.
Definition: mon.h:106
MON_Rising_Edge_Int_Dis
INLINE void MON_Rising_Edge_Int_Dis(void)
disables MON on rising edge interrupt.
Definition: mon.h:182
MON_Falling_Edge_Int_Dis
INLINE void MON_Falling_Edge_Int_Dis(void)
disables MON on falling edge interrupt.
Definition: mon.h:233
MON_WakeOnFall_Dis
INLINE void MON_WakeOnFall_Dis(void)
disables Wake-up on Falling Edge for MON.
Definition: mon.h:434
uint8
unsigned char uint8
8 bit unsigned value
Definition: types.h:139
MON_Get_Status
INLINE uint8 MON_Get_Status(void)
Reads out the MON Status.
Definition: mon.h:522
MON_PullUp_Dis
INLINE void MON_PullUp_Dis(void)
disables PullUp for MON.
Definition: mon.h:290
MON_En
INLINE void MON_En(void)
enables MON.
Definition: mon.h:452
MON_CycSense_Dis
INLINE void MON_CycSense_Dis(void)
disables Cycle Sense for MON.
Definition: mon.h:362
MON_PullDown_En
INLINE void MON_PullDown_En(void)
enables PullDown for MON.
Definition: mon.h:308
MON_WakeOnRise_En
INLINE void MON_WakeOnRise_En(void)
enables Wake-up on Rising Edge for MON.
Definition: mon.h:380
SCU
#define SCU
Definition: tle986x.h:6004
MON_Debounce
uint8 MON_Debounce(uint8 MonActiveState)
Debounces the MON input and reads the logical input value.
MON_Falling_Edge_Int_En
INLINE void MON_Falling_Edge_Int_En(void)
enables MON on falling edge interrupt.
Definition: mon.h:207
MON_Dis
INLINE void MON_Dis(void)
disables MON.
Definition: mon.h:469
MON_WakeOnRise_Dis
INLINE void MON_WakeOnRise_Dis(void)
disables Wake-up on Rising Edge for MON.
Definition: mon.h:398