SAMV71 Xplained Ultra Software Package 1.4

MSDLun Struct Reference
[Usbd_msd]

LUN structure. More...

#include <D:/git/git_canopus_1/softpack/samv7/libraries/libusb/include/MSDLun.h>

Data Fields

SBCInquiryData * inquiryData
MSDIOFifo ioFifo
void * media
void(* dataMonitor )(uint8_t flowDirection, uint32_t dataLength, uint32_t fifoNullCount, uint32_t fifoFullCount)
uint32_t baseAddress
uint32_t size
uint16_t blockSize
uint8_t protected
uint8_t status
SBCRequestSenseData requestSenseData
SBCReadCapacity10Data readCapacityData

Detailed Description

LUN structure.

Definition at line 139 of file MSDLun.h.


Field Documentation

The start position of the media (blocks) allocated to the LUN.

Definition at line 159 of file MSDLun.h.

Sector size of the media in number of media blocks

Definition at line 163 of file MSDLun.h.

void(* MSDLun::dataMonitor)(uint8_t flowDirection, uint32_t dataLength, uint32_t fifoNullCount, uint32_t fifoFullCount)

Pointer to a Monitor Function to analyse the flow of LUN.

Parameters:
flowDirection 1 - device to host (READ10) 0 - host to device (WRITE10)
dataLength Length of data transferred in bytes.
fifoNullCount Times that FIFO is NULL to wait
fifoFullCount Times that FIFO is filled to wait

Definition at line 154 of file MSDLun.h.

SBCInquiryData* MSDLun::inquiryData

Pointer to a SBCInquiryData instance.

Definition at line 142 of file MSDLun.h.

Fifo for USB transfer, must be assigned.

Definition at line 144 of file MSDLun.h.

Pointer to Media instance for the LUN.

Definition at line 146 of file MSDLun.h.

The LUN can be read-only even the media is writeable

Definition at line 165 of file MSDLun.h.

Data for the ReadCapacity command.

Definition at line 172 of file MSDLun.h.

Data for the RequestSense command.

Definition at line 170 of file MSDLun.h.

uint32_t MSDLun::size

The size of the media (blocks) allocated to the LUN.

Definition at line 161 of file MSDLun.h.

uint8_t MSDLun::status

The LUN status (Ejected/Changed/)

Definition at line 167 of file MSDLun.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines