18 #if !defined(PMC_HAL_H)
83 #if defined(__cplusplus)
146 uint8_t regValue = baseAddr->
LVDSC1;
149 baseAddr->
LVDSC1 = regValue;
164 uint8_t regValue = baseAddr->
REGSC;
167 baseAddr->
REGSC = regValue;
181 uint8_t regValue = baseAddr->
REGSC;
184 baseAddr->
REGSC = regValue;
201 uint8_t regValue = baseAddr->
REGSC;
203 return (regValue == 0U) ?
true :
false;
221 uint8_t regValue = baseAddr->
REGSC;
240 uint8_t regValue = baseAddr->
REGSC;
256 int8_t decValue = decimalValue;
257 uint8_t lpotrim, trimval, regValue;
262 decValue = (int8_t)(decValue + (int8_t)(lpotrim));
264 trimval = (uint8_t)decValue;
276 #if defined(__cplusplus)
#define PMC_REGSC_BIASEN_MASK
#define PMC_REGSC_LPODIS_SHIFT
#define PMC_REGSC_REGFPM_MASK
#define PMC_LPOTRIM_LPOTRIM_MASK
#define PMC_REGSC_BIASEN(x)
pmc_int_select_t
Power management control interrupts Implements pmc_int_select_t_Class.
void PMC_HAL_SetLowVoltIntAckCmd(PMC_Type *const baseAddr, const pmc_int_select_t intSelect)
Acknowledges the low voltage-related interrupts.
#define PMC_LVDSC1_LVDRE(x)
#define PMC_LPOTRIM_LPOTRIM_WIDTH
static void PMC_HAL_SetLowVoltDetectResetCmd(PMC_Type *const baseAddr, const bool enable)
Low-Voltage Detect Hardware Reset Enable/Disable (write once)
#define PMC_LPOTRIM_LPOTRIM(x)
pmc_lpo_clock_config_t lpoClockConfig
static void PMC_HAL_SetBiasMode(PMC_Type *const baseAddr, const bool enable)
Enables/Disables the Bias.
static uint8_t PMC_HAL_GetRegulatorStatus(const PMC_Type *const baseAddr)
Gets the Regulator regulation status.
static void PMC_HAL_SetLpoTrimValue(PMC_Type *const baseAddr, const int8_t decimalValue)
Low Power Oscillator Trimming Value.
#define PMC_REGSC_LPODIS(x)
#define PMC_LVDSC1_LVDRE_MASK
#define PMC_REGSC_LPODIS_MASK
#define PMC_REGSC_LPOSTAT_SHIFT
#define PMC_REGSC_REGFPM_SHIFT
static uint8_t PMC_HAL_GetLpoStatus(const PMC_Type *const baseAddr)
Gets the Low Power Oscillator status.
void PMC_HAL_SetLowVoltIntCmd(PMC_Type *const baseAddr, const pmc_int_select_t intSelect, const bool enable)
Enables/Disables the low voltage-related interrupts.
#define PMC_REGSC_LPOSTAT_MASK
bool PMC_HAL_GetLowVoltIntFlag(const PMC_Type *const baseAddr, const pmc_int_select_t intSelect)
Gets the flag for the low voltage-related interrupts.
static bool PMC_HAL_GetLpoMode(const PMC_Type *const baseAddr)
Gets the Low Power Oscillator status.
static void PMC_HAL_SetLpoMode(PMC_Type *const baseAddr, const bool enable)
Enables/Disables the Low Power Oscillator.