include/usb/request.h File Reference

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_requestusb_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 bufferusb_req_get_first_buffer (struct usb_request *req)
 Return the first buffer associated with req.

Detailed Description

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.

Generated on Thu Apr 29 14:10:34 2010 for xplain-bc by  doxygen 1.6.3