Prusa MINI Firmware overview
USBDeviceConfig Class Reference

#include <UsbCore.h>

Inheritance diagram for USBDeviceConfig:

Public Member Functions

virtual uint8_t Init (uint8_t parent __attribute__((unused)), uint8_t port __attribute__((unused)), bool lowspeed __attribute__((unused)))
 
virtual uint8_t ConfigureDevice (uint8_t parent __attribute__((unused)), uint8_t port __attribute__((unused)), bool lowspeed __attribute__((unused)))
 
virtual uint8_t Release ()
 
virtual uint8_t Poll ()
 
virtual uint8_t GetAddress ()
 
virtual void ResetHubPort (uint8_t port __attribute__((unused)))
 
virtual bool VIDPIDOK (uint16_t vid __attribute__((unused)), uint16_t pid __attribute__((unused)))
 
virtual bool DEVCLASSOK (uint8_t klass __attribute__((unused)))
 
virtual bool DEVSUBCLASSOK (uint8_t subklass __attribute__((unused)))
 

Member Function Documentation

◆ Init()

virtual uint8_t USBDeviceConfig::Init ( uint8_t parent   __attribute__(unused),
uint8_t port   __attribute__(unused),
bool lowspeed   __attribute__(unused) 
)
virtual
140  {
141  return 0;
142  }

◆ ConfigureDevice()

virtual uint8_t USBDeviceConfig::ConfigureDevice ( uint8_t parent   __attribute__(unused),
uint8_t port   __attribute__(unused),
bool lowspeed   __attribute__(unused) 
)
virtual
144  {
145  return 0;
146  }

◆ Release()

virtual uint8_t USBDeviceConfig::Release ( )
virtual

Reimplemented in BulkOnly.

148  {
149  return 0;
150  }

◆ Poll()

virtual uint8_t USBDeviceConfig::Poll ( )
virtual

Reimplemented in BulkOnly.

152  {
153  return 0;
154  }

◆ GetAddress()

virtual uint8_t USBDeviceConfig::GetAddress ( )
virtual

Reimplemented in BulkOnly.

156  {
157  return 0;
158  }

◆ ResetHubPort()

virtual void USBDeviceConfig::ResetHubPort ( uint8_t port   __attribute__(unused))
virtual
160  {
161  return;
162  } // Note used for hubs only!

◆ VIDPIDOK()

virtual bool USBDeviceConfig::VIDPIDOK ( uint16_t vid   __attribute__(unused),
uint16_t pid   __attribute__(unused) 
)
virtual
164  {
165  return false;
166  }

◆ DEVCLASSOK()

virtual bool USBDeviceConfig::DEVCLASSOK ( uint8_t klass   __attribute__(unused))
virtual
168  {
169  return false;
170  }

◆ DEVSUBCLASSOK()

virtual bool USBDeviceConfig::DEVSUBCLASSOK ( uint8_t subklass   __attribute__(unused))
virtual
172  {
173  return true;
174  }