jboone / webusb-libusb-shim

experimental libusb->WebUSB shim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webusb-libusb-shim

Experimental libusb-WebUSB shim to enable compiling libusb-based C-programs to Wasm, and have the USB logic "just work".

This is experimental and incomplete, but is sufficiently functional to build unmodified libhackrf and hackrf_transfer to Wasm, run it in a browser, receive IQ to MEMFS, and download the resulting IQ file.

build and run

$ git clone https://github.com/marcnewlin/webusb-libusb-shim.git

$ cd webusb-libusb-shim

$ git submodule init && git submodule update

$ make

$ cd build

$ python3 -m http.server

Navigate to http://127.0.0.1:8000/ in Chrome (or another compatible browser), and press Start.

About

experimental libusb->WebUSB shim

License:BSD 2-Clause "Simplified" License


Languages

Language:C 57.5%Language:JavaScript 34.6%Language:Makefile 4.4%Language:HTML 2.9%Language:CSS 0.6%