• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

gui/gpiowidget.h (r4864/r4195)

Go to the documentation of this file.
00001 #ifndef GpioWidget_H
00002 #define GpioWidget_H
00003 
00004 #include "subwidget.h"
00005 #include <QGridLayout>
00006 #include <QLabel>
00007 #include <QComboBox>
00008 #include <QCheckBox>
00009 
00010 #include "ui_gpiowidget.h"
00011 
00012 #include "base/Gpio.h"
00013 
00014 class GpioWidget : public SubWidget , public Ui::GpioWidget {
00015    Q_OBJECT
00016 
00017    protected:
00018       base::Gpio    fGPIO;
00019 
00020       QComboBox*   fScaleDownCombo;
00021       QComboBox*   fSyncRateCombo[base::NumGpio];
00022       QCheckBox*   fRisingChk[base::NumGpio];
00023       QCheckBox*   fFallingChk[base::NumGpio];
00024       QCheckBox*   fThrottledChk[base::NumGpio];
00025       QCheckBox*   fAdditionalChk[base::NumGpio];
00026       QCheckBox*   fAlternateChk[base::NumGpio];
00027 
00028       uint32_t    getMaskValue();
00029 
00030    public:
00031       GpioWidget(QWidget* parent, base::Board* brd);
00032 
00033       void setSyncRate(int sync);
00034 
00035       virtual bool getSubConfig();
00036       virtual bool setSubConfig();
00037       virtual bool fillCmdFile(FILE* f);
00038 
00039 
00040    public slots:
00041       void setMask();
00042 
00043       void sync0scaleactivated(int);
00044       void sync0rateactivated(int);
00045       void sync1rateactivated(int);
00046       void sync2rateactivated(int);
00047 };
00048 
00049 #endif

Generated on Tue Dec 10 2013 04:52:22 for ROCsoft by  doxygen 1.7.1