msdd.h
Go to the documentation of this file.00001
00015 #ifndef __MSDD_H
00016 #define __MSDD_H
00017
00018
00023
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031
00032 #define MEDIA_BUFSIZ 4096
00034
00037 typedef struct
00038 {
00039 bool valid;
00040 uint8_t direction;
00041 uint8_t *pData;
00042 uint32_t lba;
00043 uint32_t xferLen;
00044 uint32_t maxBurst;
00045 enum { XFER_MEMORYMAPPED = 0, XFER_INDIRECT } xferType;
00047 } MSDD_CmdStatus_TypeDef;
00048
00049
00050
00051 bool MSDD_Handler(void);
00052 void MSDD_Init(int activityLedPort, uint32_t activityLedPin);
00053 int MSDD_SetupCmd(const USB_Setup_TypeDef *setup);
00054 void MSDD_StateChangeEvent(USBD_State_TypeDef oldState,
00055 USBD_State_TypeDef newState);
00056
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060
00064 #endif