Event handler for USBPhy. More...
#include <USBPhyEvents.h>
Public Member Functions | |
virtual void | reset ()=0 |
Callback called when a bus reset occurs. More... | |
virtual void | ep0_setup ()=0 |
Callback called when an endpoint 0 setup packet is received. More... | |
virtual void | ep0_out ()=0 |
Callback called when an endpoint 0 out packet is received. More... | |
virtual void | ep0_in ()=0 |
Callback called when an endpoint 0 in packet is received. More... | |
virtual void | power (bool powered)=0 |
Callback called USB power is applied or removed. More... | |
virtual void | suspend (bool suspended)=0 |
Callback called when entering or leaving suspend mode. More... | |
virtual void | sof (int frame_number)=0 |
Callback called on start of frame. More... | |
virtual void | out (usb_ep_t endpoint)=0 |
Callback called on the reception of an OUT packet. More... | |
virtual void | in (usb_ep_t endpoint)=0 |
Callback called on the transmission of an IN packet. More... | |
virtual void | start_process ()=0 |
Callback called to indicate the USB processing needs to be done. More... | |
Event handler for USBPhy.
This class is the event handler for the USBPhy class. Any events generated by USBPhy are passed to this class via the virtual functions.
Definition at line 31 of file USBPhyEvents.h.
|
pure virtual |
Callback called when an endpoint 0 in packet is received.
|
pure virtual |
Callback called when an endpoint 0 out packet is received.
|
pure virtual |
Callback called when an endpoint 0 setup packet is received.
|
pure virtual |
Callback called on the transmission of an IN packet.
endpoint | Endpoint which sent the IN packet |
|
pure virtual |
Callback called on the reception of an OUT packet.
endpoint | Endpoint which received the OUT packet |
|
pure virtual |
Callback called USB power is applied or removed.
powered | true if USB power is present, false otherwise |
|
pure virtual |
Callback called when a bus reset occurs.
|
pure virtual |
Callback called on start of frame.
frame_number | The current frame number |
|
pure virtual |
Callback called to indicate the USB processing needs to be done.
Implemented in USBDevice.
|
pure virtual |
Callback called when entering or leaving suspend mode.
suspended | true if entering suspend mode false otherwise |