Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Ion::USB::Device::Device Class Referenceabstract

#include <device.h>

Inheritance diagram for Ion::USB::Device::Device:
Ion::USB::Device::RequestRecipient Ion::USB::Device::Calculator

Public Member Functions

 Device (Interface *interface)
 
void poll ()
 
bool isSoftDisconnected () const
 
void detach ()
 
bool resetOnDisconnect ()
 
void setResetOnDisconnect (bool reset)
 
- Public Member Functions inherited from Ion::USB::Device::RequestRecipient
 RequestRecipient (Endpoint0 *ep0)
 
bool processSetupRequest (SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength, uint16_t transferBufferMaxLength)
 
virtual void wholeDataReceivedCallback (SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength)
 
virtual void wholeDataSentCallback (SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength)
 

Protected Member Functions

virtual Descriptordescriptor (uint8_t type, uint8_t index)=0
 
virtual void setActiveConfiguration (uint8_t configurationIndex)=0
 
virtual uint8_t getActiveConfiguration ()=0
 
bool processSetupInRequest (SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength, uint16_t transferBufferMaxLength) override
 

Protected Attributes

Endpoint0 m_ep0
 
- Protected Attributes inherited from Ion::USB::Device::RequestRecipient
Endpoint0m_ep0
 

Detailed Description

Definition at line 15 of file device.h.

Constructor & Destructor Documentation

◆ Device()

Ion::USB::Device::Device::Device ( Interface interface)
inline

Definition at line 17 of file device.h.

Member Function Documentation

◆ descriptor()

virtual Descriptor* Ion::USB::Device::Device::descriptor ( uint8_t  type,
uint8_t  index 
)
protectedpure virtual

◆ detach()

void Ion::USB::Device::Device::detach ( )

Definition at line 85 of file device.cpp.

◆ getActiveConfiguration()

virtual uint8_t Ion::USB::Device::Device::getActiveConfiguration ( )
protectedpure virtual

◆ isSoftDisconnected()

bool Ion::USB::Device::Device::isSoftDisconnected ( ) const

Definition at line 81 of file device.cpp.

◆ poll()

void Ion::USB::Device::Device::poll ( )

Definition at line 10 of file device.cpp.

◆ processSetupInRequest()

bool Ion::USB::Device::Device::processSetupInRequest ( SetupPacket request,
uint8_t transferBuffer,
uint16_t transferBufferLength,
uint16_t  transferBufferMaxLength 
)
overrideprotectedvirtual

Implements Ion::USB::Device::RequestRecipient.

Definition at line 90 of file device.cpp.

◆ resetOnDisconnect()

bool Ion::USB::Device::Device::resetOnDisconnect ( )
inline

Definition at line 26 of file device.h.

◆ setActiveConfiguration()

virtual void Ion::USB::Device::Device::setActiveConfiguration ( uint8_t  configurationIndex)
protectedpure virtual

◆ setResetOnDisconnect()

void Ion::USB::Device::Device::setResetOnDisconnect ( bool  reset)
inline

Definition at line 27 of file device.h.

Member Data Documentation

◆ m_ep0

Endpoint0 Ion::USB::Device::Device::m_ep0
protected

Definition at line 33 of file device.h.


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