157 #if defined(__cplusplus)
252 volatile uint32_t dummy_read;
488 #if defined(__cplusplus)
#define REG_BIT_SET32(address, mask)
32 bits bits setting macro.
void PDB_HAL_ClearAdcPreTriggerFlags(PDB_Type *const base, uint32_t chn, uint32_t preChnMask)
Clears the flag which indicates that the PDB counter has reached the pre-trigger delay value...
#define REG_READ32(address)
32 bits memory read macro.
static void PDB_HAL_Disable(PDB_Type *const base)
Switches to disable the PDB module.
void PDB_HAL_ClearAdcPreTriggerSeqErrFlags(PDB_Type *const base, uint32_t chn, uint32_t preChnMask)
Clears the flag which indicates that a sequence error has been detected.
#define PDB_CNT_CNT_SHIFT
union PDB_Type::@17 POnDLY[PDB_POnDLY_COUNT]
#define REG_RMW32(address, mask, value)
32 bit clear bits and set with new value
#define PDB_SC_SWTRIG_MASK
#define PDB_SC_PDBIF_MASK
Defines the type of structure for basic timer in PDB.
static uint32_t PDB_HAL_GetTimerValue(PDB_Type const *const base)
Gets the PDB counter value of PDB timer.
static uint32_t PDB_HAL_GetAdcPreTriggerSeqErrFlags(PDB_Type const *const base, uint32_t chn, uint32_t preChnMask)
Gets the flag which indicates whether a sequence error is detected.
#define FEATURE_PDB_ADC_CHANNEL_COUNT
#define PDB_IDLY_IDLY_MASK
struct PDB_Type::@16 CH[PDB_CH_COUNT]
void PDB_HAL_Init(PDB_Type *const base)
Resets the PDB registers to a known state.
#define PDB_POnDLY_ACCESS16BIT_DLY1_DLY1(x)
struct PDB_Type::@17::@18 ACCESS16BIT
pdb_load_value_mode_t
Defines the type of value load mode for the PDB module.
pdb_clk_prescaler_div_t
Defines the type of prescaler divider for the PDB counter clock. Implements : pdb_clk_prescaler_div_t...
static void PDB_HAL_SetTimerModulusValue(PDB_Type *const base, uint32_t value)
Sets the modulus value for the PDB module.
pdb_trigger_src_t
Defines the type of trigger source mode for the PDB.
static void PDB_HAL_ClearTimerIntFlag(PDB_Type *const base)
Clears the PDB delay interrupt flag.
pdb_clk_prescaler_mult_factor_t clkPreMultFactor
pdb_load_value_mode_t loadValueMode
#define REG_BIT_CLEAR32(address, mask)
32 bits bits clearing macro.
#define FEATURE_PDB_PODLY_COUNT
#define PDB_POnDLY_ACCESS16BIT_DLY2_DLY2(x)
void PDB_HAL_SetAdcPreTriggerDelayValue(PDB_Type *const base, uint32_t chn, uint32_t preChn, uint32_t value)
Sets the pre-trigger delay value.
void PDB_HAL_SetAdcPreTriggerOutputEnable(PDB_Type *const base, uint32_t chn, uint32_t preChnMask, bool enable)
Switches to enable the pre-trigger output.
#define PDB_SC_PDBIF_SHIFT
void PDB_HAL_ConfigTimer(PDB_Type *const base, const pdb_timer_config_t *const configPtr)
Configure the PDB timer.
pdb_clk_prescaler_div_t clkPreDiv
pdb_clk_prescaler_mult_factor_t
Defines the type of the multiplication source mode for PDB.
static void PDB_HAL_SetCmpPulseOutDelayForLow(PDB_Type *const base, uint32_t pulseChn, uint32_t value)
Sets the counter delay value for the pulse-out goes low.
void PDB_HAL_SetCmpPulseOutEnable(PDB_Type *const base, uint32_t pulseChnMask, bool enable)
Switches to enable the pulse-out trigger.
pdb_trigger_src_t triggerInput
static void PDB_HAL_SetLoadValuesCmd(PDB_Type *const base)
Loads the delay registers value for the PDB module.
static uint32_t PDB_HAL_GetAdcPreTriggerFlags(PDB_Type const *const base, uint32_t chn, uint32_t preChnMask)
Gets the flag which indicates whether the PDB counter has reached the pre-trigger delay value...
static void PDB_HAL_SetCmpPulseOutDelayForHigh(PDB_Type *const base, uint32_t pulseChn, uint32_t value)
Sets the counter delay value for the pulse-out goes high.
void PDB_HAL_SetAdcPreTriggerBackToBackEnable(PDB_Type *const base, uint32_t chn, uint32_t preChnMask, bool enable)
Switches to enable the pre-trigger back-to-back mode.
static bool PDB_HAL_GetTimerIntFlag(PDB_Type const *const base)
Gets the PDB delay interrupt flag.
void PDB_HAL_SetAdcPreTriggerEnable(PDB_Type *const base, uint32_t chn, uint32_t preChnMask, bool enable)
Switches to enable the pre-trigger.
#define PDB_SC_PDBEN_MASK
static void PDB_HAL_Enable(PDB_Type *const base)
Switches on to enable the PDB module.
static void PDB_HAL_SetSoftTriggerCmd(PDB_Type *const base)
Triggers the PDB by software if enabled.
bool continuousModeEnable
static void PDB_HAL_SetValueForTimerInterrupt(PDB_Type *const base, uint32_t value)
Sets the interrupt delay milestone of the PDB counter.