USB request structure and associated helper functions. More...
#include <bitops.h>#include <buffer.h>#include <types.h>#include <status_codes.h>Go to the source code of this file.
Data Structures | |
| struct | usb_request |
| A USB request. More... | |
Enumerations | |
| enum | usb_request_flag { USB_REQ_SHORT_PKT } |
Flag bits for indicating that a request needs special treatment. More... | |
Functions | |
| void | usb_req_init (struct usb_request *req) |
| Initialize a USB request. | |
| static void | usb_req_add_buffer (struct usb_request *req, struct buffer *buf) |
| Add a buffer to a USB request. | |
| struct usb_request * | usb_req_alloc (void) |
| Allocate and initialize a USB request structure. | |
| void | usb_req_free (struct usb_request *req) |
| Free a USB request structure. | |
| void | usb_init (void) |
| Initialize the USB core subsystem. | |
| static struct buffer * | usb_req_get_first_buffer (struct usb_request *req) |
| Return the first buffer associated with req. | |
USB request structure and associated helper functions.
A USB request contains one or more data buffers which are used to send and receive data over USB pipes and endpoints.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file request.h.
1.6.3