USBD_StorageWr

Description

Write data to the storage medium.

Files

usbd_storage.h / usbd_storage.c

Prototype

void  USBD_StorageWr (USBD_STORAGE_LUN  *p_storage_lun,
                      CPU_INT32U         blk_addr,
                      CPU_INT32U         nbr_blks,
                      CPU_INT08U        *p_data_buf,
                      USBD_ERR          *p_err);


Arguments

p_storage_lun

Pointer to logical unit storage structure

blk_addr

Logical Block Address (LBA) of write block start.

nbr_blks

Number of logical blocks to write.

p_data_buf

Pointer to buffer in which data is stored.

p_err

Pointer to variable that receives the return error code from this function.

USBD_ERR_NONE
USBD_ERR_SCSI_MEDIUM_NOTPRESENT

Returned Value

None.

Callers

Mass Storage Class.

Notes / Warnings

None.