HPM SDK
HPMicro Software Development Kit
hpm_pmon_drv.h File Reference
#include "hpm_common.h"
#include "hpm_pmon_regs.h"

Go to the source code of this file.

Macros

#define PMON_EVENT_GLITCH0   (1U << 0)
 
#define PMON_EVENT_GLITCH1   (1U << 1)
 
#define PMON_EVENT_CLOCK0   (1U << 2)
 
#define PMON_EVENT_CLOCK1   (1U << 3)
 

Functions

static void pmon_enable (PMON_Type *ptr, uint8_t monitor_index, bool enable)
 
static void pmon_select_glitch_mode (PMON_Type *ptr, uint8_t monitor_index, bool active_mode)
 
static bool pmon_glich_detected (PMON_Type *ptr, uint8_t monitor_index)
 
static void pmon_test_mode_enable (PMON_Type *ptr, bool enable)
 
static void pmon_irq_enable (PMON_Type *ptr, uint32_t mask, bool enable)
 
static uint32_t pmon_irq_get_status (PMON_Type *ptr)
 

Macro Definition Documentation

◆ PMON_EVENT_CLOCK0

#define PMON_EVENT_CLOCK0   (1U << 2)

◆ PMON_EVENT_CLOCK1

#define PMON_EVENT_CLOCK1   (1U << 3)

◆ PMON_EVENT_GLITCH0

#define PMON_EVENT_GLITCH0   (1U << 0)

◆ PMON_EVENT_GLITCH1

#define PMON_EVENT_GLITCH1   (1U << 1)

Function Documentation

◆ pmon_enable()

static void pmon_enable ( PMON_Type ptr,
uint8_t  monitor_index,
bool  enable 
)
inlinestatic

◆ pmon_glich_detected()

static bool pmon_glich_detected ( PMON_Type ptr,
uint8_t  monitor_index 
)
inlinestatic

◆ pmon_irq_enable()

static void pmon_irq_enable ( PMON_Type ptr,
uint32_t  mask,
bool  enable 
)
inlinestatic

◆ pmon_irq_get_status()

static uint32_t pmon_irq_get_status ( PMON_Type ptr)
inlinestatic

◆ pmon_select_glitch_mode()

static void pmon_select_glitch_mode ( PMON_Type ptr,
uint8_t  monitor_index,
bool  active_mode 
)
inlinestatic

◆ pmon_test_mode_enable()

static void pmon_test_mode_enable ( PMON_Type ptr,
bool  enable 
)
inlinestatic