S32 SDK
pmc_hal.h File Reference
#include "device_registers.h"
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  pmc_lpo_clock_config_t
 PMC LPO configuration. More...
 
struct  pmc_config_t
 PMC configure structure. More...
 

Enumerations

enum  pmc_int_select_t { PMC_INT_LOW_VOLT_DETECT, PMC_INT_LOW_VOLT_WARN }
 Power management control interrupts Implements pmc_int_select_t_Class. More...
 

Functions

Power Management Controller Control APIs
void PMC_HAL_SetLowVoltIntCmd (PMC_Type *const baseAddr, const pmc_int_select_t intSelect, const bool enable)
 Enables/Disables the low voltage-related interrupts. More...
 
void PMC_HAL_SetLowVoltIntAckCmd (PMC_Type *const baseAddr, const pmc_int_select_t intSelect)
 Acknowledges the low voltage-related interrupts. More...
 
bool PMC_HAL_GetLowVoltIntFlag (const PMC_Type *const baseAddr, const pmc_int_select_t intSelect)
 Gets the flag for the low voltage-related interrupts. More...
 
static void PMC_HAL_SetLowVoltDetectResetCmd (PMC_Type *const baseAddr, const bool enable)
 Low-Voltage Detect Hardware Reset Enable/Disable (write once) More...
 
static void PMC_HAL_SetBiasMode (PMC_Type *const baseAddr, const bool enable)
 Enables/Disables the Bias. More...
 
static void PMC_HAL_SetLpoMode (PMC_Type *const baseAddr, const bool enable)
 Enables/Disables the Low Power Oscillator. More...
 
static bool PMC_HAL_GetLpoMode (const PMC_Type *const baseAddr)
 Gets the Low Power Oscillator status. More...
 
static uint8_t PMC_HAL_GetRegulatorStatus (const PMC_Type *const baseAddr)
 Gets the Regulator regulation status. More...
 
static uint8_t PMC_HAL_GetLpoStatus (const PMC_Type *const baseAddr)
 Gets the Low Power Oscillator status. More...
 
static void PMC_HAL_SetLpoTrimValue (PMC_Type *const baseAddr, const int8_t decimalValue)
 Low Power Oscillator Trimming Value. More...