00001 #ifndef RocFeetWidget_H 00002 #define RocFeetWidget_H 00003 00004 #include "subwidget.h" 00005 00006 #include "ui_rocfeetwidget.h" 00007 00008 #include "roc/Board.h" 00009 00010 class RocFeetWidget : public SubWidget , public Ui::RocFeetWidget { 00011 Q_OBJECT 00012 00013 protected: 00014 roc::Board* fBoard; 00015 00016 uint32_t fHwVers; 00017 bool fRadTol; 00018 00019 public: 00020 RocFeetWidget(QWidget* parent, roc::Board* brd); 00021 00022 bool isSupportGpio() const { return fHwVers >= 0x0200000C; } 00023 00024 virtual bool getSubConfig(); 00025 virtual bool setSubConfig(); 00026 virtual bool setSubToDefault(); 00027 virtual bool fillCmdFile(FILE* f); 00028 00029 00030 00031 public slots: 00032 00033 void initFeet(); 00034 void resetFifo(); 00035 void resetFrontend(); 00036 void enableDatagen(); 00037 void sendCmdToFeet(); 00038 // void setFallingEdge(); 00039 void setEpoch250En(); 00040 }; 00041 00042 #endif