class::hal::Usb

class hal::Usb
  : public hal::Periph< usb_info_t, usb_attr_t, UsbAttributes, 'u'>

This class implements a USB transceiver.

Summary

Usb(

port_t port
)

int attach() const

int configure() const

int detach() const

int disable_endpoint(

int ep
) const

int enable_endpoint(

int ep
) const

bool is_connected() const

int reset() const

int reset_endpoint(

int ep
) const

int set_addr(

int addr
) const

int stall_endpoint(

int ep
) const

int unstall_endpoint(

int ep
) const

enum usb_flags

Members

Usb(

port_t port
)


int attach() const

int configure() const

int detach() const

int disable_endpoint(

int ep
) const


int enable_endpoint(

int ep
) const


bool is_connected() const

int reset() const

int reset_endpoint(

int ep
) const


int set_addr(

int addr
) const


int stall_endpoint(

int ep
) const


int unstall_endpoint(

int ep
) const


enum usb_flags
  • SET_UNCONFIGURED
  • SET_DEVICE
  • SET_HOST
  • SET_OTG
  • RESET
  • ATTACH
  • DETACH
  • CONFIGURE
  • UNCONFIGURE
  • SET_ADDRESS
  • RESET_ENDPOINT
  • ENABLE_ENDPOINT
  • DISABLE_ENDPOINT
  • STALL_ENDPOINT
  • UNSTALL_ENDPOINT
  • CONFIGURE_ENDPOINT

X

Thanks for Coming!

Subscribe to news and updates