MCPcopy Create free account
hub / github.com/kiibohd/controller / teensy_open

Function teensy_open

LoadFile/teensy_loader_cli.c:264–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262static struct libusb_device_handle *libusb_teensy_handle = NULL;
263
264int teensy_open()
265{
266 teensy_close();
267
268 libusb_teensy_handle = open_usb_device( 0x16C0, 0x0478 );
269
270 if ( libusb_teensy_handle )
271 return 1;
272
273 return 0;
274}
275
276int teensy_write( void *buf, int len, double timeout )
277{

Callers 1

mainFunction · 0.85

Calls 2

teensy_closeFunction · 0.85
open_usb_deviceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…