USB Libraries Help > USB Device Libraries > USB MSD Device Library > Configuring the Library > USB_DEVICE_MSD_LUNS_NUMBER Macro
MPLAB Harmony USB Stack
USB_DEVICE_MSD_LUNS_NUMBER Macro

Number of LUNs 

This constant sets maximum possible number of Logical Unit (LUN) an instance of MSD can support. This value should be atleast 1. In cases where multiple MSD Function Driver instances are required, this constant should be set to the maximum number of LUNs required by any MSD Function Driver instanceThe following figure shows a pictorial representation of the MSD function driver initialization data structure.

C
#define USB_DEVICE_MSD_LUNS_NUMBER 1
Remarks

None.