Check the following links:

— https://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=HACKING;hb=HEAD
— https://sigrok.org/wiki/Developershttps://www.sigrok.org/api/libsigrok/unstable/files.html

For more code examples, I think it will be useful to find an existing driver 
for a device that shares one or more "traits" with yours (like they both
are logic analyzers, both use the same mode of FT232, both have SCPI,
etc.).

07.11.2017, 21:48, "Jakub Ladman" <ladm...@volny.cz>:
> Hello Vlad
>
> Thank you
>
> Now i have my own directory in src/hardware, but i'm still seeking for
> information how the driver structure is built up.
>
> The sigrok, while is talking to driver is doing (for example):
>
> 1) scanning for hw
>
> 2) opening hw
>
> 3) checking for available samplerates, channel number, memory depth ...
>
> 4) setting used channels, samplerate, trigger, pretrigger ...
>
> 5) aquisition start
>
> 6) trigger event detected, or trigger forced by sw
>
> 7) aquisition done
>
> 8) memory readout
>
> Is there some documentation of this workflow?
>
> Dne 7.11.2017 v 18:34 Vlad Ivanov napsal(a):
>>  Hello Jakub,
>>
>>  a good place to start:
>>
>>  
>> https://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=source/README.new-driver;hb=HEAD
>>
>>  07.11.2017, 20:30, "Jakub Ladman" <ladm...@volny.cz>:
>>>  Hi
>>>
>>>  I would like to try add new hardware driver to sigrok.
>>>
>>>  I have the miniLA, which is mentioned in hardware support as planned.
>>>
>>>  I am also developer of the usb driver in the WxMiniLA. MiniLA is
>>>  originally parport based, but we made then usb interface, to plug it
>>>  instead of parallel cable.
>>>
>>>  This interface is FT2232 based. The minila-mockup is based on this
>>>  hardware too.
>>>
>>>  WxMiniLA is a dead project, sigrok is way more advanced. Original MiniLA
>>>  is windows only delphi project and also almost dead.
>>>
>>>  No promises, but maybe i can do some work.
>>>
>>>  Unfortunately i can't find any documentation how the driver integration
>>>  works and how to start with a new one. There is ftdiLA driver, which
>>>  seems to be a good starting point, but looking into that code i still
>>>  have no clue how to continue, the api struct does not contain samplerate
>>>  and trigger setup data for example. Which part of documentation i should
>>>  start with?
>>>
>>>  Thank You
>>>
>>>  Jakub Ladman
>>>
>>>  
>>> ------------------------------------------------------------------------------
>>>  Check out the vibrant tech community on one of the world's most
>>>  engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>  _______________________________________________
>>>  sigrok-devel mailing list
>>>  sigrok-devel@lists.sourceforge.net
>>>  https://lists.sourceforge.net/lists/listinfo/sigrok-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to