![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 817](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827817.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
817 of 1441
NXP Semiconductors
UM10503
Chapter 27: LPC43xx/LPC43Sxx USB API
MSC_Verify
ErrorCode_t(* USBD_MSC_INIT_PARAM::MSC_Verify)(uint32_t offset, uint8_t buf[], uint32_t length)
MSC Verify callback function.
This function is provided by the application software. This function gets called when host
sends a verify command. The callback function should compare the buffer with the
destination memory at the requested offset and
Parameters:
1. offset = Destination start address.
2. buf = Buffer containing the data sent by the host.
3. length = Number of bytes to verify.
Returns:
Returns ErrorCode_t type to indicate success or error condition.
Return values:
1. LPC_OK = If data in the buffer matches the data at destination
2. ERR_FAILED = At least one byte is different.
MSC_GetWriteBuf
void(*void(* USBD_MSC_INIT_PARAM::MSC_GetWriteBuf)(uint32_t offset, uint8_t **buff_adr, uint32_t
length))(uint32_t offset, uint8_t **buff_adr, uint32_t length)
Optional callback function to optimize MSC_Write buffer transfer.
This function is provided by the application software. This function gets called when host
sends SCSI_WRITE10/SCSI_WRITE12 command. The callback function should update the
Parameters:
1. offset = Destination start address.
2. buf = Buffer containing the data sent by the host.
3. length = Number of bytes to write.
Returns:
Nothing.
Table 598. USBD_MSC_INIT_PARAM class structure
Member
Description