X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fsignalbase.hpp;h=a2d23244f0e1d007aad79543f909fce796c8ab0c;hp=468a2032812cba3b7611f1d6cf5dcfa718fe0bc5;hb=06b6ce26694bdde31c7d5b703c4dda36f4a25938;hpb=ccccb91439b9de48a7bcc76c6fa45d1dc166a297 diff --git a/pv/data/signalbase.hpp b/pv/data/signalbase.hpp index 468a2032..a2d23244 100644 --- a/pv/data/signalbase.hpp +++ b/pv/data/signalbase.hpp @@ -55,11 +55,11 @@ class SignalBase : public QObject public: enum ChannelType { - AnalogChannel = 1, - LogicChannel, - DecodeChannel, - A2LChannel, // Analog converted to logic, joint representation - MathChannel + AnalogChannel = 1, ///< Analog data + LogicChannel, ///< Logic data + DecodeChannel, ///< Protocol Decoder channel using libsigrokdecode + A2LChannel, ///< Analog converted to logic, joint representation + MathChannel ///< Virtual channel generated by math operations }; enum ConversionType { @@ -157,6 +157,11 @@ public: */ shared_ptr logic_data() const; + /** + * Queries the kind of conversion performed on this channel. + */ + ConversionType get_conversion_type() const; + /** * Changes the kind of conversion performed on this channel. */ @@ -209,7 +214,7 @@ protected: ChannelType channel_type_; shared_ptr data_; shared_ptr converted_data_; - int conversion_type_; + ConversionType conversion_type_; std::thread conversion_thread_; atomic conversion_interrupt_;