Last change
on this file since 12149 was 12108, checked in by tbretz, 13 years ago |
Added states for the status of the voltage.
|
File size:
988 bytes
|
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 | enum States_t
|
---|
33 | {
|
---|
34 | kDisconnected = 1,//StateMachineImp::kSM_UserMode,
|
---|
35 | kConnecting,
|
---|
36 | kInitializing,
|
---|
37 | kConnected,
|
---|
38 | kRamping,
|
---|
39 | kOverCurrent,
|
---|
40 | kVoltageOff,
|
---|
41 | kNotReferenced,
|
---|
42 | kVoltageOn,
|
---|
43 | kExpertMode // 'forward' declaration to be used in StateMachineBias
|
---|
44 | };
|
---|
45 | }
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.