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