I think (based on my fuzzy memory from my raspberrypi-pico driver), that you can enforce a max limit by having a SR_CONF_LIMIT_SAMPLES key inside of the config_list. At least that seems to be what worked for me in libsigrok/src/hardware/raspberrypi-pico/api.c. What I also remember is that the driver always has the option to send fewer samples than what was requested by sending a complete (I forget the exact term) up the chain and that whatever samples you have sent are good enough.
That all being said, I would highly advise trying to get your device to "fit" into one of the many existing drivers. Look for something that has the same protocol (wifi/ethernet, USB, USB Serial etc. as a good starting point). If https://github.com/pico-coder/sigrok-pico looks even remotely interesting, contact me there or directly over email. On Mon, Sep 22, 2025 at 5:38 AM strom.mikael--- via sigrok-devel < [email protected]> wrote: > > On Sep 22, 2025, at 6:26 PM, ttnp--- via sigrok-devel < > [email protected]> wrote: > > > > Hi Mikael, > > > > did You find the description in HACKING? > > > > Hi Matthias, > > yes, but it was of limited help. The problem I face is finding out what is > the expected behavior of the driver. > > Regards, > Mike > > > > > _______________________________________________ > 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

