Exactly, see
https://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/hardware/demo/api.c;h=3b77d40cdd36bf3f127c6bd90ef132f56204b050;hb=HEAD#l452
for an example of what Fabian is refering to.
Regards
-Soeren
On Thu, 2020-02-27 at 19:12 +0100, Fabian Schwartau wrote:
> Hi,
> back then I wrote this:
> My device supports that, but I have to implement the config_*
> functions
> to let pulseview know that it can do it.
>
> If I remember correctly, there is some sort of script to generate a
> default driver. That was ver helpful.
>
> Best regards,
> Fabian
>
> Am 27.02.20 um 18:52 schrieb Inessa Kavalenka:
> > 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 <
> > [email protected]
> > <mailto:[email protected]>>:
> >
> > 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 <
> > [email protected]
> > <mailto:[email protected]>>:
> >
> > 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
> > > [email protected]
> > <mailto:[email protected]>
> > > https://lists.sourceforge.net/lists/listinfo/sigrok-devel
> > >
> >
> >
> >
> > _______________________________________________
> > sigrok-devel mailing list
> > [email protected]
> > <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/sigrok-devel
> >
> >
> >
> > --
> > С уважением,
> > Инесса
> >
> >
> >
> > --
> > С уважением,
> > Инесса
> >
> >
> > _______________________________________________
> > sigrok-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/sigrok-devel
> >
>
>
> _______________________________________________
> sigrok-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel