![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "UsbHostMassStorage.h"
Go to the source code of this file.
Variables | |
| static stc_host_endpoint_t * | EndpointOUT |
| static stc_host_endpoint_t * | EndpointIN |
| static uint8_t | u8EndpointIN |
| static uint8_t | u8EndpointOUT |
| static uint16_t | u16MaxPackageSizeIN |
| static uint16_t | u16MaxPackageSizeOUT |
| static volatile uint8_t | u8Status = 0 |
| static volatile boolean_t | bSetupComplete = FALSE |
| StorageInfo_t | stcGlobalStorageInfo |
| static StorageInfo_t * | pstcStorageInfo |
| static stc_usb_request_t | setup |
| static stc_usbn_t * | pstcUsbHandle = NULL |
| read_capacity_t | ReadCapacity |
| csw_t | csw |
| cbw_t | cbw |
| uint8_t | CswBuffer [13] |
| uint8_t | CbwBuffer [31] |
A detailed description is available at USB Host Mass Storage Module description
History:
Definition in file UsbHostMassStorage.c.
|
static |
Definition at line 527 of file UsbHostMassStorage.c.
References csw::CSWDataResidue, csw::CSWSignatur, csw::CSWStatus, csw::CSWTag, and LENDIAN_BUFFER_TO_U32.
Referenced by UsbHostMassStorage_GetCSW().

|
static |
Definition at line 492 of file UsbHostMassStorage.c.
References InquiryResponse::AdditionalLength, InquiryResponse::Bqueetc, InquiryResponse::CmdQue, InquiryResponse::Peripheral, InquiryResponse::ProductID, InquiryResponse::Removable, InquiryResponse::ResponseDataFormat, InquiryResponse::Sccstp, InquiryResponse::VendorID, and InquiryResponse::Version.
Referenced by UsbHostMassStorage_StorageApiInit().

|
static |
Definition at line 483 of file UsbHostMassStorage.c.
References ModeSenseResponse::BlockDescriptorLength, ModeSenseResponse::DPOFUA, ModeSenseResponse::MediumType, ModeSenseResponse::ModeDataLength, ModeSenseResponse::Reserved1, ModeSenseResponse::Reserved2, and ModeSenseResponse::WriteProtect.
Referenced by UsbHostMassStorage_StorageApiModeSense().

|
static |
Definition at line 464 of file UsbHostMassStorage.c.
References RequestSenseResponse::AddSenseLen, RequestSenseResponse::ASC, RequestSenseResponse::ASCQ, RequestSenseResponse::CmdSpecificInfo, RequestSenseResponse::EOM, RequestSenseResponse::FILEMARK, RequestSenseResponse::FRUC, RequestSenseResponse::ILI, RequestSenseResponse::Information, LENDIAN_BUFFER_TO_U32, RequestSenseResponse::Obsolete, RequestSenseResponse::ResponseCode, RequestSenseResponse::SenseKey, RequestSenseResponse::SenseKeySpecific, and RequestSenseResponse::VALID.
Referenced by UsbHostMassStorage_StorageApiInit(), UsbHostMassStorage_StorageApiRead(), UsbHostMassStorage_StorageApiReadCapacity(), and UsbHostMassStorage_StorageApiWrite().

|
static |
Definition at line 511 of file UsbHostMassStorage.c.
References cbw::bCBWCBLength, cbw::bCBWFlags, cbw::bCBWLUN, cbw::CBWCB, cbw::dCBWDataTransferLength, cbw::dCBWSignature, cbw::dCBWTag, and U32_TO_LENDIAN_BUFFER.
Referenced by UsbHostMassStorage_SendCBW().

|
static |
Definition at line 545 of file UsbHostMassStorage.c.
References bSetupComplete, EndpointIN, EndpointOUT, FALSE, UsbHostMassStorage_ClearInEndpoint(), UsbHostMassStorage_ClearOutEndpoint(), and UsbHostMassStorage_ResetRecovery().
Referenced by UsbHostMassStorage_CheckCSW(), and UsbHostMassStorage_StorageCommandSend().


|
static |
Definition at line 410 of file UsbHostMassStorage.c.
References bSetupComplete, and TRUE.
Referenced by UsbHostMassStorage_BulkOnlyMSReset().

|
static |
Definition at line 415 of file UsbHostMassStorage.c.
References bSetupComplete, and FALSE.
Referenced by UsbHostMassStorage_BulkOnlyMSReset().

Definition at line 86 of file UsbHostMassStorage.c.
Referenced by ErrorHandler(), SetupComplete(), and WaitForSetupComplete().
Definition at line 460 of file UsbHostMassStorage.c.
| uint8_t CbwBuffer[31] |
Definition at line 462 of file UsbHostMassStorage.c.
Definition at line 459 of file UsbHostMassStorage.c.
| uint8_t CswBuffer[13] |
Definition at line 461 of file UsbHostMassStorage.c.
|
static |
Definition at line 82 of file UsbHostMassStorage.c.
Referenced by ErrorHandler(), UsbHostMassStorage_BulkInCompletion(), UsbHostMassStorage_CheckForCompletion(), UsbHostMassStorage_ClearInEndpoint(), UsbHostMassStorage_InitHandler(), and UsbHostMassStorage_Transmit_MSDC_Data().
|
static |
Definition at line 81 of file UsbHostMassStorage.c.
Referenced by ErrorHandler(), UsbHostMassStorage_BulkOutCompletion(), UsbHostMassStorage_CheckForCompletion(), UsbHostMassStorage_ClearOutEndpoint(), UsbHostMassStorage_InitHandler(), and UsbHostMassStorage_Transmit_MSDC_Data().
|
static |
Definition at line 88 of file UsbHostMassStorage.c.
|
static |
Definition at line 90 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_BulkOnlyMSReset(), UsbHostMassStorage_CheckForCompletion(), UsbHostMassStorage_ClearInEndpoint(), UsbHostMassStorage_ClearOutEndpoint(), UsbHostMassStorage_DeinitHandler(), UsbHostMassStorage_DriverActive(), UsbHostMassStorage_InitHandler(), UsbHostMassStorage_StorageStatus(), and UsbHostMassStorage_Transmit_MSDC_Data().
| read_capacity_t ReadCapacity |
Definition at line 458 of file UsbHostMassStorage.c.
|
static |
Definition at line 89 of file UsbHostMassStorage.c.
| StorageInfo_t stcGlobalStorageInfo |
Definition at line 87 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_GetGlobalStorageInfo().
|
static |
Definition at line 84 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_InitHandler().
|
static |
Definition at line 84 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_InitHandler().
|
static |
Definition at line 83 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_InitHandler().
|
static |
Definition at line 83 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_InitHandler().
|
static |
Definition at line 85 of file UsbHostMassStorage.c.
Referenced by UsbHostMassStorage_CheckForCompletion(), UsbHostMassStorage_InTransferDone(), UsbHostMassStorage_OutTransferDone(), and UsbHostMassStorage_StorageCommandSend().