USB Mass Storage Class device API

USB Mass Storage Class device API defined in include/zephyr/usb/class/usbd_msc.h.

API Reference

group usbd_msc_device

USB Mass Storage Class device API.

Defines

USBD_DEFINE_MSC_LUN(disk_name, t10_vendor, t10_product, t10_revision)

Define USB Mass Storage Class logical unit.

Use this macro to create Logical Unit mapping in USB MSC for selected disk. Up to CONFIG_USBD_MSC_LUNS_PER_INSTANCE disks can be registered on single USB MSC instance. Currently only one USB MSC instance is supported.

Parameters:
  • disk_name – Disk name as used in Disk Access Interface

  • t10_vendor – T10 Vendor Indetification

  • t10_product – T10 Product Identification

  • t10_revision – T10 Product Revision Level