Changeset 11296 for trunk


Ignore:
Timestamp:
07/08/11 15:42:43 (13 years ago)
Author:
tbretz
Message:
Moved state definitions here; added operator== to StaticData
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/HeadersFTM.h

    r11176 r11296  
    1010
    1111// ====================================================================
     12
    1213
    1314namespace FTM
     
    1516    enum States
    1617    {
    17         // State Machine states
    18         kDisconnected = 1,
    19         kConnected,
    20         kIdle,
    21         kTakingData,
     18        kFtmUndefined = 0,
    2219
    2320        // FTM internal states
     
    2623        kFtmRunning = 3, ///< Trigger output enabled, configuration ignored
    2724        kFtmCalib   = 4,
     25    };
     26
     27    enum StateMachine
     28    {
     29        kDisconnected = 1, //ConnectionFTM::kDisconnected,
     30        kConnected    ,//= ConnectionFTM::kConnected,
     31        kIdle         ,//= ConnectionFTM::kIdle,
     32        kTakingData   ,//= ConnectionFTM::kTakingData,
     33        kConfiguring1,
     34        kConfiguring2,
     35        kConfigured,
     36
     37        kConfigError1 = 0x101,
     38        kConfigError2 = 0x102,
     39
     40        kCmdTest
    2841    };
    2942
     
    218231            for (int i=0; i<8; i++)
    219232                Reverse(fClockConditioner+i);
     233        }
     234
     235        bool operator==(const StaticData &d) const
     236        {
     237            return memcmp(this, &d, sizeof(StaticData))==0;
    220238        }
    221239
Note: See TracChangeset for help on using the changeset viewer.