18#ifndef USBPHY_EVENTS_H
19#define USBPHY_EVENTS_H
21#include "USBPhyTypes.h"
66 virtual void power(
bool powered) = 0;
84 virtual void sof(
int frame_number) = 0;
92 virtual void out(usb_ep_t endpoint) = 0;
100 virtual void in(usb_ep_t endpoint) = 0;
Event handler for USBPhy.
virtual void suspend(bool suspended)=0
Callback called when entering or leaving suspend mode.
virtual void power(bool powered)=0
Callback called USB power is applied or removed.
virtual void out(usb_ep_t endpoint)=0
Callback called on the reception of an OUT packet.
virtual void reset()=0
Callback called when a bus reset occurs.
virtual void ep0_in()=0
Callback called when an endpoint 0 in packet is received.
virtual void sof(int frame_number)=0
Callback called on start of frame.
virtual void ep0_out()=0
Callback called when an endpoint 0 out packet is received.
virtual void start_process()=0
Callback called to indicate the USB processing needs to be done.
virtual void in(usb_ep_t endpoint)=0
Callback called on the transmission of an IN packet.
virtual void ep0_setup()=0
Callback called when an endpoint 0 setup packet is received.