pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
282 stars 120 forks source link

adding usb_control_in functionality #212

Open Zanobos opened 4 years ago

Zanobos commented 4 years ago

As discussed here: https://github.com/pyvisa/pyvisa/issues/466 the pyvisa-py backend is missing the implementation of usb_control_in. This patch applies the modification needed to have it working. Tested and working with a bk8600.

Disclaimer: Is implemented the feature of control_transfer, but not the one of optional data stage - I miss the specifications and the knowledge to do that part (I tried with a plain self.read(length), but it's not enough). If anyone can lead me to the right way, I can provide implementation for that part too.

MatthieuDartiailh commented 4 years ago

ping @Zanobos

Zanobos commented 4 years ago

Hi @MatthieuDartiailh , I'll try to work on this branch as soon as possible.