Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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

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(), msd_scsi_process_test_unit_ready(), and msdStart().

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(), msdStart(), and msdStop().

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().

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().

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().

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().

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(), msdStart(), and msdStop().


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