source: trunk/FACT++/src/HeadersBIAS.h@ 19536

Last change on this file since 19536 was 17514, checked in by tbretz, 11 years ago
Decided to make kLocked the last state to keep numbers consistent.
File size: 1.1 KB
Line 
1#ifndef FACT_HeadersBIAS
2#define FACT_HeadersBIAS
3
4namespace BIAS
5{
6 enum
7 {
8 kNumBoards = 13,
9 kNumChannelsPerBoard = 32,
10 kNumChannels = kNumBoards*kNumChannelsPerBoard
11 };
12
13 enum Command_t
14 {
15 // Communication commands
16 kCmdReset = 0,
17 kCmdRead = 1,
18 kCmdGlobalSet = 2,
19 kCmdChannelSet = 3,
20
21 // Internal command names
22 kResetChannels = 0x10|kCmdChannelSet,
23 kUpdate = 0x10|kCmdRead,
24 kExpertChannelSet = 0x14|kCmdChannelSet,
25 kSynchronize = 0x1e,
26 };
27
28 enum
29 {
30 kMaxDac = 0xfff
31 };
32
33 namespace State
34 {
35 enum states_t
36 {
37 kDisconnected = 1,//StateMachineImp::kSM_UserMode,
38 kConnecting,
39 kInitializing,
40 kConnected,
41 kRamping,
42 kOverCurrent,
43 kVoltageOff,
44 kNotReferenced,
45 kVoltageOn,
46 kExpertMode, // 'forward' declaration to be used in StateMachineBias
47 kLocked,
48 };
49 }
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.