]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/QuantityFlag_methods.hpp
SR_DF_ANALOG_OLD and sr_datafeed_analog_old renames.
[libsigrok.git] / bindings / cxx / QuantityFlag_methods.hpp
index 4bbe48db11397c3302865e71249cd0229850f8b6..d07c37a1b325d9a5bb6285d407de6a3391958e4c 100644 (file)
@@ -1,2 +1,7 @@
+       /** Get flags corresponding to a bitmask. */
        static vector<const QuantityFlag *>
                flags_from_mask(unsigned int mask);
+
+       /** Get bitmask corresponding to a set of flags. */
+       static unsigned int mask_from_flags(
+               vector<const QuantityFlag *> flags);