TDC Driver.
More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
TDC Driver.
Definition in file tdc.h.
Returns which TDC channels are enabled/disabled.
- Returns
- A bitmask containing, per bit position, whether or not the channel is enalbed.
Definition at line 49 of file tdc.c.
static void tdcChEnable |
( |
int |
ch, |
|
|
bool |
enable |
|
) |
| |
|
inlinestatic |
Enables or disables a single channel.
- Parameters
-
enable | true - enable this channel, false - disable this channel. |
ch | Channel to enable. |
Definition at line 76 of file tdc.h.
static bool tdcChEnabled |
( |
int |
ch | ) |
|
|
inlinestatic |
Returns whether or not a specific TDC channel is enabled or not.
- Parameters
-
- Return values
-
true | The channel is enabled |
false | The channel is not enabled. |
Definition at line 89 of file tdc.h.
uint32_t tdcHrvEnabled |
( |
| ) |
|
Returns on which channels the high-rate veto is applied.
- Returns
- A bitmask containing, per bit position, whether or not the HRV is enabled
Definition at line 55 of file tdc.c.
Returns the HR-veto rate per time-slice.
- Returns
- The HR-veto rate.
Definition at line 38 of file tdc.c.
void tdcSetChannels |
( |
uint32_t |
channels, |
|
|
uint32_t |
mask |
|
) |
| |
Set the enable/disable channels.
- Parameters
-
Definition at line 44 of file tdc.c.
void tdcSetHrvEnabled |
( |
uint32_t |
channels | ) |
|
Sets on which channels the high-rate veto must be applied.
- Parameters
-
channels | A bitmask containing, per bit position, whether or not the HRV is enalbed. |
Definition at line 60 of file tdc.c.
void tdcSetHRVeto |
( |
uint32_t |
thrs | ) |
|
Sets the Minimun ToT width allowed.
- Parameters
-
m_tot | ToTs lower will be discarded |
Definition at line 33 of file tdc.c.
void tdcSetMinTot |
( |
uint32_t |
m_tot | ) |
|
Sets the HR veto rate per time-slice.
- Parameters
-
thrs | Threshold, beyond which the TDCs will stop producing data for this frame. |
Definition at line 29 of file tdc.c.
void tdcSetMultiHitEnabled |
( |
uint32_t |
channels | ) |
|
Sets on which channels the mutli-hit veto must be enabled.
- Parameters
-
channels | A bitmask containing, per bit position, whether or not the multi-hit is enabled |
Definition at line 70 of file tdc.c.