usbdriver.h File Reference

This file contains the interfaces to the usb driver. More...

#include "typedefs.h"
#include "dev.h"
#include "usb.h"

Go to the source code of this file.

Classes

union  BDSTAT
struct  BD
 The buffer descrptor. More...
union  t_transaction

Defines

#define MAX_EP   8
#define BUFFER(n)   (byte __near*)(0x500+((n)*EP0_BUFF_SIZE))
#define EP0_BUFF_SIZE   16

Typedefs

typedef byte t_ep
typedef byte t_bid

Enumerations

enum  t_dts { DATA0, DATA1, DATAX }

Functions

void USB_Activate (void)
 Start the USB interface.
void USB_Shutdown (void)
 shutdown the interface.
void USB_Initialize (void)
 Wait for a transaction.
unsigned USB_Wait (t_ep ep, t_bid buffer, t_dts next)
unsigned USB_Send (t_ep ep, t_bid buffer, unsigned length, t_dts first)

Variables

t_dev usb_handler


Detailed Description

This file contains the interfaces to the usb driver.

The usb driver provides access the the functionality of sending/receiving packages. All other things will be implemented on a higher level.

Definition in file usbdriver.h.


Function Documentation

void USB_Initialize void   ) 
 

Wait for a transaction.

Return the endpoint identifier.


Generated on Mon Sep 29 19:56:48 2008 for mKernel by  doxygen 1.4.6