Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
USBMassStorageConfig Struct Reference

Driver configuration structure. More...

#include <usb_msd.h>

Data Fields

USBDriver * usbp
 USB driver to use for communication. More...
 
BaseBlockDevice * bbdp
 Block device to use for storage. More...
 
usbep_t bulk_ep
 Index of the USB endpoint to use for transfers. More...
 
void(* rw_activity_callback )(bool)
 Optional callback that will be called whenever there is read/write activity. More...
 
uint8_t short_vendor_id [8]
 Short vendor identification. More...
 
uint8_t short_product_id [16]
 Short product identification. More...
 
uint8_t short_product_version [4]
 Short product revision. More...
 

Detailed Description

Driver configuration structure.

Definition at line 123 of file usb_msd.h.

Field Documentation

◆ bbdp

BaseBlockDevice* USBMassStorageConfig::bbdp

Block device to use for storage.

Definition at line 132 of file usb_msd.h.

Referenced by msd_scsi_process_start_read_write_10(), and msd_scsi_process_test_unit_ready().

◆ bulk_ep

usbep_t USBMassStorageConfig::bulk_ep

Index of the USB endpoint to use for transfers.

Definition at line 137 of file usb_msd.h.

Referenced by msd_read_command_block(), msd_start_receive(), msd_start_transmit(), msdConfigureHookI(), msdRequestsHook(), and msdStop().

◆ rw_activity_callback

void(* USBMassStorageConfig::rw_activity_callback) (bool)

Optional callback that will be called whenever there is read/write activity.

Note
The callback is called with argument true when activity starts, and false when activity stops.

Definition at line 145 of file usb_msd.h.

Referenced by msd_read_command_block().

◆ short_product_id

uint8_t USBMassStorageConfig::short_product_id[16]

Short product identification.

Note
ASCII characters only, maximum 16 characters (pad with zeroes).

Definition at line 157 of file usb_msd.h.

Referenced by msdStart().

◆ short_product_version

uint8_t USBMassStorageConfig::short_product_version[4]

Short product revision.

Note
ASCII characters only, maximum 4 characters (pad with zeroes).

Definition at line 163 of file usb_msd.h.

Referenced by msdStart().

◆ short_vendor_id

uint8_t USBMassStorageConfig::short_vendor_id[8]

Short vendor identification.

Note
ASCII characters only, maximum 8 characters (pad with zeroes).

Definition at line 151 of file usb_msd.h.

Referenced by msdStart().

◆ usbp

USBDriver* USBMassStorageConfig::usbp

USB driver to use for communication.

Definition at line 127 of file usb_msd.h.

Referenced by mass_storage_thread(), msd_read_command_block(), msd_start_receive(), msd_start_transmit(), msdConfigureHookI(), msdRequestsHook(), and msdStop().


The documentation for this struct was generated from the following file: