72 PDB_Type * base = s_pdbBase[instance];
111 PDB_Type * base = s_pdbBase[instance];
129 PDB_Type * base = s_pdbBase[instance];
144 PDB_Type const * base = s_pdbBase[instance];
160 PDB_Type const * base = s_pdbBase[instance];
175 PDB_Type * base = s_pdbBase[instance];
190 PDB_Type * base = s_pdbBase[instance];
205 PDB_Type * base = s_pdbBase[instance];
220 PDB_Type * base = s_pdbBase[instance];
237 PDB_Type * base = s_pdbBase[instance];
255 PDB_Type const * base = s_pdbBase[instance];
271 PDB_Type * base = s_pdbBase[instance];
287 PDB_Type const * base = s_pdbBase[instance];
303 PDB_Type * base = s_pdbBase[instance];
319 PDB_Type * base = s_pdbBase[instance];
334 PDB_Type * base = s_pdbBase[instance];
350 PDB_Type * base = s_pdbBase[instance];
366 PDB_Type * base = s_pdbBase[instance];
void PDB_DRV_ClearTimerIntFlag(const uint32_t instance)
Clears the interrupt flag.
void PDB_DRV_SetCmpPulseOutEnable(const uint32_t instance, const uint32_t pulseChnMask, const bool enable)
Switches on/off the CMP pulse out in the PDB module.
void PDB_DRV_SetAdcPreTriggerDelayValue(const uint32_t instance, const uint32_t chn, const uint32_t preChn, const uint32_t value)
Sets the ADC pre_trigger delay value in the PDB module.
void PDB_DRV_SetTimerModulusValue(const uint32_t instance, const uint32_t value)
Sets the value of timer modulus.
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...
uint32_t adcPreTriggerIdx
bool preTriggerOutputEnable
void PDB_DRV_ConfigAdcPreTrigger(const uint32_t instance, const uint32_t chn, const pdb_adc_pretrigger_config_t *configPtr)
Configures the ADC pre_trigger in the PDB module.
static void PDB_HAL_Disable(PDB_Type *const base)
Switches to disable the PDB module.
void PDB_DRV_SetValueForTimerInterrupt(const uint32_t instance, const uint32_t value)
Sets the value for the timer interrupt.
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.
uint32_t PDB_DRV_GetAdcPreTriggerSeqErrFlags(const uint32_t instance, const uint32_t chn, const uint32_t preChnMask)
Gets the ADC pre_trigger flag in the PDB module.
IRQn_Type
Defines the Interrupt Numbers definitions.
uint32_t PDB_DRV_GetAdcPreTriggerFlags(const uint32_t instance, const uint32_t chn, const uint32_t preChnMask)
Gets the ADC pre_trigger flag in the PDB module.
bool preTriggerBackToBackEnable
Defines the type of structure for basic timer in PDB.
bool PDB_DRV_GetTimerIntFlag(const uint32_t instance)
Gets the PDB interrupt flag.
static uint32_t PDB_HAL_GetTimerValue(PDB_Type const *const base)
Gets the PDB counter value of PDB timer.
void INT_SYS_DisableIRQ(IRQn_Type irqNumber)
Disables an interrupt for a given IRQ number.
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
uint32_t PDB_DRV_GetTimerValue(const uint32_t instance)
Gets the current counter value in the PDB module.
void PDB_DRV_SetCmpPulseOutDelayForLow(const uint32_t instance, const uint32_t pulseChn, const uint32_t value)
Sets the CMP pulse out delay value for low in the PDB module.
void PDB_HAL_Init(PDB_Type *const base)
Resets the PDB registers to a known state.
void PDB_DRV_ClearAdcPreTriggerSeqErrFlags(const uint32_t instance, const uint32_t chn, const uint32_t preChnMask)
Clears the ADC pre_trigger flag in the PDB module.
status_t CLOCK_SYS_GetFreq(clock_names_t clockName, uint32_t *frequency)
Gets the clock frequency for a specific clock name.
static void PDB_HAL_SetTimerModulusValue(PDB_Type *const base, uint32_t value)
Sets the modulus value for the PDB module.
void PDB_DRV_ClearAdcPreTriggerFlags(const uint32_t instance, const uint32_t chn, const uint32_t preChnMask)
Clears the ADC pre_trigger flag in the PDB module.
static void PDB_HAL_ClearTimerIntFlag(PDB_Type *const base)
Clears the PDB delay interrupt flag.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
void PDB_DRV_SoftTriggerCmd(const uint32_t instance)
Triggers the PDB with a software trigger.
void PDB_DRV_LoadValuesCmd(const uint32_t instance)
Executes the command of loading values.
void PDB_DRV_Deinit(const uint32_t instance)
De-initializes the PDB module.
#define FEATURE_PDB_PODLY_COUNT
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.
void PDB_HAL_ConfigTimer(PDB_Type *const base, const pdb_timer_config_t *const configPtr)
Configure the PDB timer.
static const IRQn_Type s_pdbIrqId[PDB_INSTANCE_COUNT]
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.
void PDB_DRV_SetCmpPulseOutDelayForHigh(const uint32_t instance, const uint32_t pulseChn, const uint32_t value)
Sets the CMP pulse out delay value for high in the PDB module.
clock_names_t
Clock names.
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 PDB_Type *const s_pdbBase[PDB_INSTANCE_COUNT]
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 INT_SYS_EnableIRQ(IRQn_Type irqNumber)
Enables an interrupt for a given IRQ number.
void PDB_HAL_SetAdcPreTriggerEnable(PDB_Type *const base, uint32_t chn, uint32_t preChnMask, bool enable)
Switches to enable the pre-trigger.
void PDB_DRV_Init(const uint32_t instance, const pdb_timer_config_t *const userConfigPtr)
Initializes the PDB counter and triggers input.
Defines the type of structure for configuring ADC's pre_trigger.
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.
#define PDB_INSTANCE_COUNT
static void PDB_HAL_SetValueForTimerInterrupt(PDB_Type *const base, uint32_t value)
Sets the interrupt delay milestone of the PDB counter.