#i2c #linux #usb2642

usbsdmux

Program and library to control the USB-SD-Mux device

1 unstable release

0.1.0 Dec 23, 2020

#153 in #i2c

MIT license

7KB
122 lines

usbsdmux

API Crate

Program and library to control the USB-SD-Mux device

The program has the same interface as the original python control program by the manufacturer:

$ usbsdmux /dev/sg0 host
$ usbsdmux /dev/sg0 dut
$ usbsdmux /dev/sg0 off

If you want to run the program as normal user you can set the setuid flag:

$ sudo chown root /path/to/usbsdmux
$ sudo chmod u+s /path/to/usbsdmux

lib.rs:

Program and library to control the USB-SD-Mux device

The program has the same interface as the original python control program by the manufacturer:

$ usbsdmux /dev/sg0 host
$ usbsdmux /dev/sg0 dut
$ usbsdmux /dev/sg0 off

If you want to run the program as normal user you can set the setuid flag:

$ sudo chown root /path/to/usbsdmux
$ sudo chmod u+s /path/to/usbsdmux

Dependencies

~3.5MB
~82K SLoC