USB-BDI
|
headerfile for usb_common.c. More...
#include "fx2regs.h"
Go to the source code of this file.
Defines | |
#define | bRequestType SETUPDAT[0] |
#define | bRequest SETUPDAT[1] |
#define | wValueL SETUPDAT[2] |
#define | wValueH SETUPDAT[3] |
#define | wIndexL SETUPDAT[4] |
#define | wIndexH SETUPDAT[5] |
#define | wLengthL SETUPDAT[6] |
#define | wLengthH SETUPDAT[7] |
#define | usb_setup_packet_avail() _usb_got_SUDAV |
Functions | |
void | handelSetupPackages (void) |
checks if setup packets are available and calls the method to handle them. | |
void | usb_install_handlers (void) |
sets up the descriptors and hooks different isrs | |
Variables | |
volatile __bit | _usb_got_SUDAV |
volatile __bit | _usb_highspeed_granted |
1=highspeed granted, 0= highspeed not granted |
#define bRequest SETUPDAT[1] |
setup package request
Definition at line 34 of file usb_common.h.
#define bRequestType SETUPDAT[0] |
setup package request type
Definition at line 32 of file usb_common.h.
#define usb_setup_packet_avail | ( | ) | _usb_got_SUDAV |
tests if a packet is available
Definition at line 54 of file usb_common.h.
#define wIndexH SETUPDAT[5] |
setup package upper byte of index
Definition at line 42 of file usb_common.h.
#define wIndexL SETUPDAT[4] |
setup package lower byte of index
Definition at line 40 of file usb_common.h.
#define wLengthH SETUPDAT[7] |
setup package upper byte of length
Definition at line 46 of file usb_common.h.
#define wLengthL SETUPDAT[6] |
setup package lower byte of length
Definition at line 44 of file usb_common.h.
#define wValueH SETUPDAT[3] |
setup package upper byte of value
Definition at line 38 of file usb_common.h.
#define wValueL SETUPDAT[2] |
setup package lower byte of value
Definition at line 36 of file usb_common.h.
volatile __bit _usb_got_SUDAV |
contains if a SUDAV interrupt occured
Definition at line 41 of file usb_common.c.
volatile __bit _usb_highspeed_granted |
1=highspeed granted, 0= highspeed not granted
highspeed is only not granted if USB1.1 or lower is used. USB 1.1 and lower is not supported anymore.
Definition at line 39 of file usb_common.c.