22 TDC->HR_VETO = TDC_HR_VETO_DEFAULT;
26 TDC->MIN_TOT = TDC_MIN_TOT_DEFAULT;
46 TDC->EN_CH = (
TDC->EN_CH & ~mask ) | ( channels & mask );
57 return TDC->HR_VETO_EN;
62 TDC->HR_VETO_EN = channels;
65 uint32_t tdcMultiHitEnabled()
67 return TDC->MULHIT_EN;
72 TDC->MULHIT_EN = channels;
77 TDC->BLAST_FULL = channels;
83 return TDC->BLAST_FULL;
void tdcReset()
Resets the TDC to defaults.
void tdcSetMultiHitEnabled(uint32_t channels)
Sets on which channels the mutli-hit veto must be enabled.
uint32_t tdcDbgBlastFull()
Return Blast full FIFOs bitmask for debugging.
uint32_t tdcChannels()
Returns which TDC channels are enabled/disabled.
void tdcSetMinTot(uint32_t m_tot)
Sets the HR veto rate per time-slice.
#define TDC
TDC base pointer.
void tdcDbgSetBlastFull(uint32_t channels)
Blast full FIFOs bitmask for debugging.
void tdcSetHRVeto(uint32_t thrs)
Sets the Minimun ToT width allowed.
uint32_t tdcHRVeto()
Returns the HR-veto rate per time-slice.
#define TDC_CH_ALL_MASK
All channels.
void tdcSetHrvEnabled(uint32_t channels)
Sets on which channels the high-rate veto must be applied.
This file assigns all device structures to memory mapped structures.
uint32_t tdcHrvEnabled()
Returns on which channels the high-rate veto is applied.
void tdcSetChannels(uint32_t channels, uint32_t mask)
Set the enable/disable channels.