![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 815](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827815.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
815 of 1441
NXP Semiconductors
UM10503
Chapter 27: LPC43xx/LPC43Sxx USB API
Table 598. USBD_MSC_INIT_PARAM class structure
Member
Description
mem_base
uint32_t USBD_MSC_INIT_PARAM::mem_base
Base memory location from where the stack can allocate data and buffers.
Remark:
The memory address set in this field should be accessible by USB DMA controller.
Also this value should be aligned on 4 byte boundary.
mem_size
uint32_t USBD_MSC_INIT_PARAM::mem_size
The size of memory buffer which stack can use.
Remark:
The mem_size should be greater than the size returned by
USBD_MSC_API::GetMemSize() routine.
InquiryStr
uint8_t * USBD_MSC_INIT_PARAM::InquiryStr
Pointer to the 28 character string. This string is sent in response to the SCSI Inquiry
command.
Remark:
The data pointed by the pointer should be of global scope.
BlockCount
uint32_t USBD_MSC_INIT_PARAM::BlockCount
Number of blocks present in the mass storage device
BlockSize
uint32_t USBD_MSC_INIT_PARAM::BlockSize
Block size in number of bytes
MemorySize
uint32_t USBD_MSC_INIT_PARAM::MemorySize
Memory size in number of bytes
intf_desc
uint8_t * USBD_MSC_INIT_PARAM::intf_desc
Pointer to the interface descriptor within the descriptor array (
MSC_Write
void(*void(* USBD_MSC_INIT_PARAM::MSC_Write)(uint32_t offset, uint8_t **src, uint32_t length))(uint32_t
offset, uint8_t **src, uint32_t length)
MSC Write callback function.
This function is provided by the application software. This function gets called when host
sends a write command.
Parameters:
1. offset = Destination start address.
2. src = Pointer to a pointer to the source of data. Pointer-to-pointer is used to implement
zero-copy buffers. See Zero-Copy Data Transfer model for more details on zero-copy
concept.
3. length = Number of bytes to be written.
Returns:
Nothing.