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 {
*/
shared_ptr<pv::data::Logic> 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.
*/
ChannelType channel_type_;
shared_ptr<pv::data::SignalData> data_;
shared_ptr<pv::data::SignalData> converted_data_;
- int conversion_type_;
+ ConversionType conversion_type_;
std::thread conversion_thread_;
atomic<bool> conversion_interrupt_;