]> sigrok.org Git - pulseview.git/blobdiff - pv/data/logic.cpp
Rename 'probe' to 'channel' everywhere.
[pulseview.git] / pv / data / logic.cpp
index 2737bcb58238870b63066231778ca674c6231e25..e23283ac2952e23c3f87f0945e7fc91c5ce6b970 100644 (file)
@@ -18,6 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <cassert>
+
 #include "logic.h"
 #include "logicsnapshot.h"
 
@@ -28,16 +30,16 @@ using std::shared_ptr;
 namespace pv {
 namespace data {
 
-Logic::Logic(unsigned int num_probes) :
+Logic::Logic(unsigned int num_channels) :
        SignalData(),
-       _num_probes(num_probes)
+       _num_channels(num_channels)
 {
-       assert(_num_probes > 0);
+       assert(_num_channels > 0);
 }
 
-int Logic::get_num_probes() const
+int Logic::get_num_channels() const
 {
-       return _num_probes;
+       return _num_channels;
 }
 
 void Logic::push_snapshot(