]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic/saleae-logic.c
Move the probe naming to the creator of the device, and let each driver name its...
[libsigrok.git] / hardware / saleae-logic / saleae-logic.c
index c8b3dfa3ec017a104b54cd3219aa39e1cbc1539f..c346b3d16b63d43be10931f78cb01c5adf2cc3d5 100644 (file)
@@ -46,6 +46,26 @@ static int capabilities[] = {
        0,
 };
 
+static const char* probe_names[] = {
+       "0",
+       "1",
+       "2",
+       "3",
+       "4",
+       "5",
+       "6",
+       "7",
+       "8",
+       "9",
+       "10",
+       "11",
+       "12",
+       "13",
+       "14",
+       "15",
+       NULL,
+};
+
 static uint64_t supported_samplerates[] = {
        SR_KHZ(200),
        SR_KHZ(250),
@@ -458,6 +478,9 @@ static void *hw_get_device_info(int device_index, int device_info_id)
        case SR_DI_NUM_PROBES:
                info = GINT_TO_POINTER(fx2->profile->num_probes);
                break;
+       case SR_DI_PROBE_NAMES:
+               info = probe_names;
+               break;
        case SR_DI_SAMPLERATES:
                info = &samplerates;
                break;