KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sub_sys.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 : sub_sys.h
11  * Created : 24 okt. 2014
12  * Author : Vincent van Beveren
13  */
14 
15 #ifndef SUB_SYS_H_
16 #define SUB_SYS_H_
17 
18 /**
19  * @file
20  *
21  * @ingroup subsys
22  *
23  * System subsystem. Controls basic CLB functions.
24  */
25 
26 /**
27  * Reset the CLB
28  */
29 typedef enum {
30  resetTypeNone = 0, //!< Don't reset.
31  resetTypeSoft = 1, //!< Soft reset (Software only)
32  resetTypeHard = 2, //!< Hard reset, but only if idle, select image, 0 - golden
33  resetTypeHardForce = 3 //!< Force, reset at any point, select image, 0 - golden
34 } ResetType;
35 
36 
37 /**
38  * Resets the CLB. Note that this only arms the reset. The actual reset will happen later during
39  * an update period.
40  */
41 void sysArmReset(ResetType rTyp, int imgNo);
42 
43 
44 
45 #endif /* SUB_SYS_H_ */
Soft reset (Software only)
Definition: sub_sys.h:31
void sysArmReset(ResetType rTyp, int imgNo)
Resets the CLB.
Definition: sub_sys.c:370
Force, reset at any point, select image, 0 - golden.
Definition: sub_sys.h:33
Hard reset, but only if idle, select image, 0 - golden.
Definition: sub_sys.h:32
ResetType
Reset the CLB.
Definition: sub_sys.h:29
Don&#39;t reset.
Definition: sub_sys.h:30