Android-cuttlefish cvd tool
Classes | Functions
usb.h File Reference
#include <sys/types.h>
#include "adb.h"
#include "transport.h"
Include dependency graph for usb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UsbConnection
 

Functions

void usb_init ()
 
void usb_cleanup ()
 
int usb_write (usb_handle *h, const void *data, int len)
 
int usb_read (usb_handle *h, void *data, int len)
 
int usb_close (usb_handle *h)
 
void usb_reset (usb_handle *h)
 
void usb_kick (usb_handle *h)
 
size_t usb_get_max_packet_size (usb_handle *)
 
bool is_adb_interface (int usb_class, int usb_subclass, int usb_protocol)
 
bool is_libusb_enabled ()
 

Function Documentation

◆ is_adb_interface()

bool is_adb_interface ( int  usb_class,
int  usb_subclass,
int  usb_protocol 
)

◆ is_libusb_enabled()

bool is_libusb_enabled ( )

◆ usb_cleanup()

void usb_cleanup ( )

◆ usb_close()

int usb_close ( usb_handle h)

◆ usb_get_max_packet_size()

size_t usb_get_max_packet_size ( usb_handle h)

◆ usb_init()

void usb_init ( )

◆ usb_kick()

void usb_kick ( usb_handle h)

◆ usb_read()

int usb_read ( usb_handle h,
void *  data,
int  len 
)

◆ usb_reset()

void usb_reset ( usb_handle h)

◆ usb_write()

int usb_write ( usb_handle h,
const void *  data,
int  len 
)