USBD_MSC_LunAdd

Description

Add a logical unit number to the MSC interface.

Files

usbd_msc.h / usbd_msc.c

Prototype

void  USBD_MSC_LunAdd (CPU_CHAR     *p_store_name,
                       CPU_INT08U    class_nbr,
                       CPU_CHAR     *p_vend_id,
                       CPU_CHAR     *p_prod_id,
                       CPU_INT32U    prod_rev_level,
                       CPU_BOOLEAN   rd_only,
                       USBD_ERR     *p_err);


Arguments

p_store_name

Pointer to logical unit driver.

class_nbr

MSC instance number.

p_vend_id

Pointer to string containing vendor id.

p_prod_id

Pointer to string containing product id.

prod_rev_level

Product revision level.

rd_only

Boolean specifying if logical unit is read only or not.

p_err

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

USBD_ERR_NONE
USBD_ERR_INVALID_ARG
USBD_ERR_MSC_MAX_LUN_EXCEED
USBD_ERR_SCSI_LOG_UNIT_NOTRDY

Returned Value

None.

Callers

Application.

Notes / Warnings

The pointer to logical unit driver specifies the type and volume of the logical unit to add. Valid logical unit driver names follow the pattern: <device_driver_name>:<logical_unit_number>: where <device_driver_name> is the name of the device driver and <logical_unit_number> is the device’s logical unit number. Take special note that the logical unit number starts counting from number 0.