Hi Fabian! My device *is *a logic analyzer. I wrote in src/hardware/mydevice/api.c :
static const uint32_t scanopts[] = { SR_CONF_NUM_LOGIC_CHANNELS, }; static const uint32_t drvopts[] = { SR_CONF_LOGIC_ANALYZER, }; How can I make PV recognize it? Maybe I need to declare the LA capabilities somewhere else too? чт, 27 февр. 2020 г. в 20:47, Inessa Kavalenka <ines.kavale...@gmail.com>: > Hi Fabian! > > My device *is *a logic analyzer. I wrote in src/hardware/mydevice/api.c : > > static const uint32_t scanopts[] = { > SR_CONF_NUM_LOGIC_CHANNELS, > }; > > static const uint32_t drvopts[] = { > SR_CONF_LOGIC_ANALYZER, > }; > > How can I make PV recognize it? Maybe I need to declare the LA capabilities > somewhere else too? > > > чт, 27 февр. 2020 г. в 20:30, Fabian Schwartau <fab...@opencode.eu>: > >> I asked exactly the same question a few weeks back. I may cite Soeren: >> >> That's because PV only shows devices with a device capability of a >> logic analyzer or an oscilloscope as is the case with e.g. demo: >> >> >> https://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/hardware/demo/api.c;h=3b77d40cdd36bf3f127c6bd90ef132f56204b050;hb=HEAD#l56 >> >> I'm assuming this isn't the case for your device driver. >> >> All the best, >> -Soeren >> >> Am 27.02.20 um 17:33 schrieb Inessa Kavalenka: >> > Hi everyone! >> > >> > I am trying to use sigrok with my own device. I added corresponding >> > "api" and "protocol" code, and my device is recognized with sigrok-cli >> > (libsigrok$ sigrok-cli -d mydevice --scan -l 5). But when I run >> > PulseView -> "connect to device", my device is not listed in the driver >> > combobox. I also noticed that *sigrok-cli -L* lists a lot of drivers, >> > but only a few of them are available from PulseView GUI. Why is that? >> > How do I add my driver to PulseView ? >> > >> > Thank you! >> > >> > >> > >> > >> > >> > _______________________________________________ >> > sigrok-devel mailing list >> > sigrok-devel@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/sigrok-devel >> > >> >> >> >> _______________________________________________ >> sigrok-devel mailing list >> sigrok-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sigrok-devel >> > > > -- > С уважением, > Инесса > -- С уважением, Инесса
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel