X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..7b1c7e44123b9b2626205a89e27b2a4712ea30c6:/BlockParameter.h?ds=inline diff --git a/BlockParameter.h b/BlockParameter.h index e0c4af2..e8068d4 100644 --- a/BlockParameter.h +++ b/BlockParameter.h @@ -19,6 +19,15 @@ public : enum ParamType { Expression = 1, Character, String, Bit, BitVector, Boolean, Integer, Natural, Positive, Real, Time}; // a bit ugly to put that here but more practical for using them + /*! + * \brief The ParamWBAccess enum + * Read means that the block setup the value of this parameter and it is possible to + * to read that value from outside the FPGA (via the wrapper of the wishbone). Thus, + * from the block point of view, the parameter corresponds to an output port. + * Write means that it is possible to setup the value of this paramter from outside the FPGA (via + * the wrapper of the wishbone) so that the block can read that value. Thus, + * from the block point of view, the parameter corresponds to an input port. + */ enum ParamWBAccess { Read = 1, Write = 2}; enum ParamWBDuration { Permanent = 1, Trigger = 2 }; enum ParamVHDLContext { Entity = 1, Component = 2, Architecture = 3 }; // NB : 3 is when creating an instance of the block that owns this iface @@ -35,6 +44,10 @@ public : inline int getType() { return type; } QString getTypeString(); virtual QVariant getValue(); // may be overriden + int getIntValue(bool* ok); + double getDoubleValue(bool* ok); + bool getBooleanValue(bool* ok); + QString getStringValue(); virtual QString getContext() = 0; // setters