KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dev_daterev.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_daterev.h
11  * Created : 5 mrt. 2013
12  * Author : Vincent van Beveren
13  */
14 
15 
16 #ifndef DEV_DATEREV_H_
17 #define DEV_DATEREV_H_
18 
19 #include "dev_defs.h"
20 
21 /**
22  * @file
23  *
24  * @ingroup devices
25  *
26  * This provides some defines for reading the date and revision.
27  *
28  * Date and revision are encoded as a single 32 bit word.
29  *
30  * It has the following structure, hex encoded (e.g. Month 12 = 0x12)
31  * Bits 31-24: Year
32  * Bits 23-16: Month
33  * Bits 15-8 : Day
34  * Bits 7 -0 : Revision
35  */
36 
37 #define SDB_ID_DATEREV 0x25E41A93 //!< SDB ID Date/Rev
38 
39 #define DATEREV_DATE_SHIFT 8 ///< Shift required for date
40 #define DATEREV_DATE_MASK 0xFFFFFF00 ///< Mask required for date
41 #define DATEREV_REV_SHIFT 0 ///< Shift required for revision
42 #define DATEREV_REV_MASK 0x000000FF ///< Mask required for revision
43 
44 #endif /* DEV_DATEREV_H_ */
This module contains some very basic type definitions used for hardware mappings. ...