QlightRead Project  1.23

/home/ron/Desktop/Downloads/project/QlightRead_hw/at90usbxx2_driver.h

Go to the documentation of this file.
00001 
00038 #ifndef _AT90USBXX2_DRIVER_H_
00039 #define _AT90USBXX2_DRIVER_H_ 
00040 
00041 #include "global_dep.h"
00042 #include "libat90usbxx2.h"
00043         
00044 #define BRATE 103       //set Baudrate to 9600@16Mhz
00045 
00046 //Init functions
00047 SINT8 SPI_init(void);
00048 SINT8 uC_init(void);
00049 SINT8 USART_init(void);
00050 
00051 //SPI specific Functions
00052 SINT8 SPIclkenable(void);
00053 UINT8 getSPIvalue(void);
00054 void SET_CS(void);
00055 void _SET_CS(void);
00056 
00057 //USB specific Function 
00058 void USB_re_fresh(void);
00059 SINT8 USB_init(void);
00060 void EVENT_USB_Device_Connect(void);
00061 void EVENT_USB_Device_Disconnect(void);
00062 void EVENT_USB_Device_ConfigurationChanged(void);
00063 void EVENT_USB_Device_ControlRequest(void);
00064 SINT8 write_EndPoint(UINT16 value);
00065 void usb_control(void);
00066 
00067 #endif
00068 
00069 
00070 
 All Data Structures Files Functions Variables Defines