S32 SDK
pdb_driver.c File Reference
#include "pdb_driver.h"
#include "interrupt_manager.h"
#include <stddef.h>

Go to the source code of this file.

Functions

void PDB_DRV_Init (const uint32_t instance, const pdb_timer_config_t *const userConfigPtr)
 Initializes the PDB counter and triggers input. More...
 
void PDB_DRV_Deinit (const uint32_t instance)
 De-initializes the PDB module. More...
 
void PDB_DRV_SoftTriggerCmd (const uint32_t instance)
 Triggers the PDB with a software trigger. More...
 
uint32_t PDB_DRV_GetTimerValue (const uint32_t instance)
 Gets the current counter value in the PDB module. More...
 
bool PDB_DRV_GetTimerIntFlag (const uint32_t instance)
 Gets the PDB interrupt flag. More...
 
void PDB_DRV_ClearTimerIntFlag (const uint32_t instance)
 Clears the interrupt flag. More...
 
void PDB_DRV_LoadValuesCmd (const uint32_t instance)
 Executes the command of loading values. More...
 
void PDB_DRV_SetTimerModulusValue (const uint32_t instance, const uint32_t value)
 Sets the value of timer modulus. More...
 
void PDB_DRV_SetValueForTimerInterrupt (const uint32_t instance, const uint32_t value)
 Sets the value for the timer interrupt. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

Variables

static PDB_Type *const s_pdbBase [PDB_INSTANCE_COUNT] = PDB_BASE_PTRS
 
static const IRQn_Type s_pdbIrqId [PDB_INSTANCE_COUNT] = PDB_IRQS
 

Variable Documentation

PDB_Type* const s_pdbBase[PDB_INSTANCE_COUNT] = PDB_BASE_PTRS
static

Definition at line 47 of file pdb_driver.c.

const IRQn_Type s_pdbIrqId[PDB_INSTANCE_COUNT] = PDB_IRQS
static

Definition at line 50 of file pdb_driver.c.