Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
USB Mass Storage Class device API

USB Mass Storage Class device API . More...

Macros

#define USBD_DEFINE_MSC_LUN(id, disk_name, t10_vendor, t10_product, t10_revision)
 Define USB Mass Storage Class logical unit.
 

Detailed Description

USB Mass Storage Class device API .

Since
3.4
Version
0.1.0

Macro Definition Documentation

◆ USBD_DEFINE_MSC_LUN

#define USBD_DEFINE_MSC_LUN ( id,
disk_name,
t10_vendor,
t10_product,
t10_revision )

#include <zephyr/usb/class/usbd_msc.h>

Value:
static const STRUCT_SECTION_ITERABLE(usbd_msc_lun, usbd_msc_lun_##id) = { \
.disk = disk_name, \
.vendor = t10_vendor, \
.product = t10_product, \
.revision = t10_revision, \
}
#define STRUCT_SECTION_ITERABLE(struct_type, varname)
Defines a new element for an iterable section.
Definition iterable_sections.h:216
Definition usbd_msc.h:19

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
idIdentifier by which the linker sorts registered LUNs
disk_nameDisk name as used in Disk Access Interface
t10_vendorT10 Vendor Indetification
t10_productT10 Product Identification
t10_revisionT10 Product Revision Level