USB Libraries Help > USB Host Libraries > USB MSD Host Client Driver Library > Configuring the Library > USB_HOST_MSD_LUNS_NUMBER Macro
MPLAB Harmony USB Stack
USB_HOST_MSD_LUNS_NUMBER Macro

USB Host MSD Client Driver LUNs Number. 

An MSD device may have mutliple storage units, each addressable through a LUN number. An example is a USB Card reader with multiple card slots. Each card slot has a LUN number. The USB_HOST_MSD_LUNS_NUMBER constant defines the maximum number of such logical units that can be managed by the USB Host application. This number should atleast be equal to USB_HOST_MSD_INSTANCES_NUMBER. To configure this value, consider an example of an application that will support a maximum of 2 USB Storage device. These 2 storage devices are expected to have at the most 3 LUNs each. Then the the USB_HOST_MSD_LUNS_NUMBER constant should be set to 6 (2 devices and 3 LUNs per device)/

C
#define USB_HOST_MSD_LUNS_NUMBER 
Remarks

None