46 #ifndef __MS_CLASS_HOST_H__
47 #define __MS_CLASS_HOST_H__
50 #include "../../USB.h"
51 #include "../Common/MassStorageClassCommon.h"
54 #if defined(__cplusplus)
59 #if !defined(__INCLUDE_FROM_MS_DRIVER)
60 #error Do not include this file directly. Include LPCUSBlib/Drivers/USB.h instead.
66 #define MS_ERROR_LOGICAL_CMD_FAILED 0x80
142 uint16_t ConfigDescriptorSize,
169 uint8_t* const MaxLUNIndex) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
184 const uint8_t LUNIndex,
186 ATTR_NON_NULL_PTR_ARG(3);
196 const uint8_t LUNIndex) ATTR_NON_NULL_PTR_ARG(1);
210 const uint8_t LUNIndex,
212 ATTR_NON_NULL_PTR_ARG(3);
227 const uint8_t LUNIndex,
229 ATTR_NON_NULL_PTR_ARG(3);
244 const uint8_t LUNIndex,
245 const
bool PreventRemoval) ATTR_NON_NULL_PTR_ARG(1);
262 const uint8_t LUNIndex,
264 const uint8_t Blocks,
265 const uint16_t BlockSize,
266 void* BlockBuffer) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(6);
283 const uint8_t LUNIndex,
285 const uint8_t Blocks,
286 const uint16_t BlockSize,
287 const
void* BlockBuffer) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(6);
300 (void)MSInterfaceInfo;
304 #if !defined(__DOXYGEN__)
306 #define MS_COMMAND_DATA_TIMEOUT_MS 10000
309 #if defined(__INCLUDE_FROM_MASSSTORAGE_HOST_C)
316 void* BufferPtr) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
319 ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
329 #if defined(__cplusplus)