USB::HostInterface Class Reference

Common base class to support Host USB access. More...

#include <HostInterface.h>

Inheritance diagram for USB::HostInterface:
Collaboration diagram for USB::HostInterface:

Classes

struct  Instance
 Identifies a TinyUSB host interface. More...
 

Public Member Functions

void begin (const Instance &inst)
 Descendant classes should override this method to peform initialisation. More...
 
virtual void end ()
 Called when device is disconnected. Override as required. More...
 
const char * getName () const
 
uint8_t getAddress () const
 
bool operator== (const HostInterface &other) const
 
bool operator== (const Instance &other) const
 

Protected Attributes

Instance inst
 

Detailed Description

Common base class to support Host USB access.

Member Function Documentation

◆ begin()

void USB::HostInterface::begin ( const Instance inst)
inline

Descendant classes should override this method to peform initialisation.

◆ end()

virtual void USB::HostInterface::end ( )
inlinevirtual

Called when device is disconnected. Override as required.

Reimplemented in USB::VENDOR::HostDevice, and USB::MSC::HostDevice.

◆ getAddress()

uint8_t USB::HostInterface::getAddress ( ) const
inline

◆ getName()

const char* USB::HostInterface::getName ( ) const
inline

◆ operator==() [1/2]

bool USB::HostInterface::operator== ( const HostInterface other) const
inline

◆ operator==() [2/2]

bool USB::HostInterface::operator== ( const Instance other) const
inline

Member Data Documentation

◆ inst

Instance USB::HostInterface::inst
protected

The documentation for this class was generated from the following file: