00001 00041 #ifndef USB_FUNCTION_H_INCLUDED 00042 #define USB_FUNCTION_H_INCLUDED 00043 00044 #include <types.h> 00045 00046 struct udc; 00047 struct usb_setup_req; 00048 00070 void usb_dev_reset(struct udc *udc); 00071 00093 status_t usb_dev_get_descriptor(struct udc *udc, uint16_t value, 00094 uint16_t index, uint16_t len); 00095 00112 status_t usb_dev_set_configuration(struct udc *udc, uint16_t config_id); 00113 00128 status_t usb_dev_get_interface(struct udc *udc, uint16_t iface_id); 00129 00142 status_t usb_dev_set_interface(struct udc *udc, uint16_t iface_id, 00143 uint16_t alt_setting); 00144 00166 status_t usb_dev_process_setup_request(struct udc *udc, 00167 struct usb_setup_req *setup); 00168 00170 00171 #endif /* USB_FUNCTION_H_INCLUDED */
1.6.3