sr: Fix/document probe names.
This commit is contained in:
parent
6c39d99a28
commit
d261dbbfcc
|
@ -48,6 +48,7 @@ static int hwcaps[] = {
|
||||||
SR_HWCAP_CONTINUOUS,
|
SR_HWCAP_CONTINUOUS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* TODO: Which probe names/numbers to use? */
|
||||||
static const char *probe_names[NUM_PROBES + 1] = {
|
static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
|
|
|
@ -57,8 +57,12 @@ static uint64_t supported_samplerates[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Probe numbers seem to go from 1-16, according to this image:
|
||||||
|
* http://tools.asix.net/img/sigma_sigmacab_pins_720.jpg
|
||||||
|
* (the cable has two additional GND pins, and a TI and TO pin)
|
||||||
|
*/
|
||||||
static const char *probe_names[NUM_PROBES + 1] = {
|
static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"0",
|
|
||||||
"1",
|
"1",
|
||||||
"2",
|
"2",
|
||||||
"3",
|
"3",
|
||||||
|
@ -74,6 +78,7 @@ static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"13",
|
"13",
|
||||||
"14",
|
"14",
|
||||||
"15",
|
"15",
|
||||||
|
"16",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
|
|
||||||
static GSList *dev_insts = NULL;
|
static GSList *dev_insts = NULL;
|
||||||
|
|
||||||
|
/* Probes are numbered 0-7. */
|
||||||
static const char *probe_names[NUM_PROBES + 1] = {
|
static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
|
|
|
@ -102,6 +102,7 @@ static const char *pattern_strings[] = {
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* We name the probes 0-7 on our demo driver. */
|
||||||
static const char *probe_names[NUM_PROBES + 1] = {
|
static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
|
|
|
@ -48,6 +48,11 @@ static int hwcaps[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Probes are numbered 0 to 7.
|
||||||
|
*
|
||||||
|
* See also: http://www.linkinstruments.com/images/mso19_1113.gif
|
||||||
|
*/
|
||||||
static const char *probe_names[NUM_PROBES + 1] = {
|
static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
|
|
|
@ -55,6 +55,7 @@ static int hwcaps[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Probes are numbered 0-31 (on the PCB silkscreen). */
|
||||||
static const char *probe_names[NUM_PROBES + 1] = {
|
static const char *probe_names[NUM_PROBES + 1] = {
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
|
|
|
@ -46,6 +46,12 @@ static int hwcaps[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Probes are numbered 1-8.
|
||||||
|
*
|
||||||
|
* TODO: FX2 eval boards with the standard Cypress VID/PID can have 16 pins
|
||||||
|
* or probes in theory, which is not supported by the Saleae Logic firmware.
|
||||||
|
*/
|
||||||
static const char *probe_names[] = {
|
static const char *probe_names[] = {
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
|
|
|
@ -74,39 +74,27 @@ static int hwcaps[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ZEROPLUS LAP-C (16032) numbers the 16 probes A0-A7 and B0-B7.
|
||||||
|
* We currently ignore other untested/unsupported devices here.
|
||||||
|
*/
|
||||||
static const char *probe_names[] = {
|
static const char *probe_names[] = {
|
||||||
"0",
|
"A0",
|
||||||
"1",
|
"A1",
|
||||||
"2",
|
"A2",
|
||||||
"3",
|
"A3",
|
||||||
"4",
|
"A4",
|
||||||
"5",
|
"A5",
|
||||||
"6",
|
"A6",
|
||||||
"7",
|
"A7",
|
||||||
"8",
|
"B0",
|
||||||
"9",
|
"B1",
|
||||||
"10",
|
"B2",
|
||||||
"11",
|
"B3",
|
||||||
"12",
|
"B4",
|
||||||
"13",
|
"B5",
|
||||||
"14",
|
"B6",
|
||||||
"15",
|
"B7",
|
||||||
"16",
|
|
||||||
"17",
|
|
||||||
"18",
|
|
||||||
"19",
|
|
||||||
"20",
|
|
||||||
"21",
|
|
||||||
"22",
|
|
||||||
"23",
|
|
||||||
"24",
|
|
||||||
"25",
|
|
||||||
"26",
|
|
||||||
"27",
|
|
||||||
"28",
|
|
||||||
"29",
|
|
||||||
"30",
|
|
||||||
"31",
|
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue