KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dev_tdc.h
Go to the documentation of this file.
1 /*
2  * KM3NeT CLB v2 Firmware
3  * ----------------------
4  *
5  * Copyright 2013 KM3NeT Collaboration
6  *
7  * All Rights Reserved.
8  *
9  *
10  * File : dev_tdc.h
11  * Created : 25 Nov 2013
12  * Author : David Calvo
13  */
14 
15 
16 #ifndef DEV_TDC_H_
17 #define DEV_TDC_H_
18 
19 #include "dev_defs.h"
20 
21 
22 /**
23  * @file
24  *
25  * @ingroup devices
26  *
27  * This provides a device mapping for a wishbone bus mapped TDCs device.
28  */
29 
30 #define SDB_ID_TDC 0x56A03c9A //!< SDB ID TDC
31 
32 #define TDC_HR_VETO_DEFAULT 0x000007D0 //! 2000 ticks per frame
33 #define TDC_MIN_TOT_DEFAULT 0x00000004 //! 2000 ticks per frame
34 
35 /**
36  * Structure defines TDC device.
37  */
38 typedef struct
39 {
40  reg_io __reserved0; ///< Reserved
41  reg_io EN_CH; ///< Enable channels output register
42  reg_io HR_VETO; ///< High-rate veto
43  reg_io HR_VETO_EN; ///< Enable high-rate veto, bit per channel
44  reg_io MULHIT_EN; ///< Multi-hit enable, bit per channel
45  reg_io BLAST_FULL; ///< Blast fifo full
46  reg_io MIN_TOT; ///< Define minimun ToT
47 } TDC_Device;
48 
49 #endif /* DEV_TDC_H_ */
50 
volatile unsigned int HR_VETO_EN
Enable high-rate veto, bit per channel.
Definition: dev_tdc.h:43
volatile unsigned int __reserved0
Reserved.
Definition: dev_tdc.h:40
volatile unsigned int MULHIT_EN
Multi-hit enable, bit per channel.
Definition: dev_tdc.h:44
Structure defines TDC device.
Definition: dev_tdc.h:38
volatile unsigned int EN_CH
Enable channels output register.
Definition: dev_tdc.h:41
volatile unsigned int BLAST_FULL
Blast fifo full.
Definition: dev_tdc.h:45
#define reg_io
Input/Output register.
Definition: dev_defs.h:33
volatile unsigned int MIN_TOT
Define minimun ToT.
Definition: dev_tdc.h:46
volatile unsigned int HR_VETO
High-rate veto.
Definition: dev_tdc.h:42
This module contains some very basic type definitions used for hardware mappings. ...