- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# include/usb/function.h

Go to the documentation of this file.

    00001
    00044 #ifndef USB_FUNCTION_H_INCLUDED
    00045 #define USB_FUNCTION_H_INCLUDED
    00046
    00047 #include <types.h>
    00048
    00049 struct udc;
    00050 struct usb_setup_req;
    00051
    00060 void usb_func_reset(struct udc *udc);
    00061
    00083 int usb_func_get_descriptor(struct udc *udc, uint16_t value,
    00084                 uint16_t index, uint16_t len);
    00085
    00102 int usb_func_set_configuration(struct udc *udc, uint16_t config_id);
    00103
    00117 int usb_func_get_interface(struct udc *udc, uint16_t iface_id);
    00118
    00131 int usb_func_set_interface(struct udc *udc, uint16_t iface_id,
    00132                 uint16_t alt_setting);
    00133
    00155 int usb_func_process_setup_request(struct udc *udc, struct usb_setup_req *req);
    00156
    00157 #endif /* USB_FUNCTION_H_INCLUDED */