Spieler splodiert.
[hackover2013-badge-firmware.git] / core / rom_drivers.h
1 /**************************************************************************/
2 /*!
3 @file rom_drivers.h
4 @author NXP Semiconductor
5 */
6 /**************************************************************************/
7
8 #ifndef ROM_DRIVERS_H_
9 #define ROM_DRIVERS_H_
10
11 #include "sysdefs.h"
12
13 typedef struct _USB_DEVICE_INFO
14 {
15 uint16_t DevType;
16 uint32_t DevDetailPtr;
17 } USB_DEV_INFO;
18
19 typedef struct _USBD
20 {
21 void (*init_clk_pins)(void);
22 void (*isr)(void);
23 void (*init)( USB_DEV_INFO * DevInfoPtr );
24 void (*connect)(uint32_t con);
25 } USBD;
26
27 typedef struct _ROM
28 {
29 const USBD * pUSBD;
30 } ROM;
31
32 typedef struct _MSC_DEVICE_INFO {
33 uint16_t idVendor;
34 uint16_t idProduct;
35 uint16_t bcdDevice;
36 uint32_t StrDescPtr;
37 uint32_t MSCInquiryStr;
38 uint32_t BlockCount;
39 uint32_t BlockSize;
40 uint32_t MemorySize;
41 void (*MSC_Write)( uint32_t offset, uint8_t src[], uint32_t length);
42 void (*MSC_Read)( uint32_t offset, uint8_t dst[], uint32_t length);
43 } MSC_DEVICE_INFO;
44
45 typedef struct _HID_DEVICE_INFO
46 {
47 uint16_t idVendor;
48 uint16_t idProduct;
49 uint16_t bcdDevice;
50 uint32_t StrDescPtr;
51 uint8_t InReportCount;
52 uint8_t OutReportCount;
53 uint8_t SampleInterval;
54 void (*InReport)(uint8_t src[], uint32_t length);
55 void (*OutReport)(uint8_t dst[], uint32_t length);
56 } HID_DEVICE_INFO;
57
58 #endif
This page took 0.054276 seconds and 5 git commands to generate.