Skip to content

xofc/MinimalBulkRead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MinimalBulkRead

Minimalist code to bulk-read with libusb from a Saleae clone running the sigrok firmware

Of course, all return values should be tested and error handled... This is just the shortest functional code I wrote to log data from a Saleae (logic analyser) clone running the Sigrok 'fx2lafw' firmware.

The firmware should be pre-loaded with something like :

$ cycfx2prog -d=001.003 prg:fx2lafw-saleae-logic.ihx run (lsusb --> Lakeview -> device address) (0925:3881 Lakeview Research Saleae Logic)

The program just needs libusb (1.x) to compile, it connects to the device, prepares asynchronous bulk read operation and send a control command to start the acquisition at full speed (24 Mega-samples/second) (this can be changed by modifying cmd_start[] which contains a divisor)

The incoming data are written on stdout within the callback function. -C is used to stop the program (which doesn't stop gracefully but who cares?)

Note:

See also:

About

Minimalist code to bulk-read with libusb from a Saleae clone running the sigrok firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors