EasyManuals Logo

Cypress EZ-USB FX3 User Manual

Cypress EZ-USB FX3
660 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #210 background imageLoading...
Page #210 background image
EZ-USB FX3 Technical Reference Manual, Document Number: 001-76074 Rev. *F 210
Storage Ports
CyFxMscApplnQueryDevStatus ();
for (i = 0; i < CY_FX_SIB_PARTITIONS; i++)
{
glSensePtr[portId * CY_FX_SIB_PARTITIONS + i] = CY_FX_MSC_SENSE_MEDIA_CHANGED;
}
}
if (evt == CY_U3P_SIB_EVENT_REMOVE)
{
uint8_t i = 0, lun = 0;
CyU3PDebugPrint (2, "Remove event on port %d\r\n", portId);
for (i = 0; i < CY_FX_SIB_PARTITIONS; i++)
{
lun = portId * CY_FX_SIB_PARTITIONS + i;
glLunState[lun] = CyFalse;
glLunUnit[lun] = 10;
glLunBlkSize[lun] = 0;
glLunNumBlks[lun] = 0;
glLunWriteable[lun] = CyTrue;
glSensePtr[lun] = CY_FX_MSC_SENSE_MEDIA_CHANGED;
}
}
if ((evt == CY_U3P_SIB_EVENT_DATA_ERROR) || (evt == CY_U3P_SIB_EVENT_ABORT))
{
/* Transfer has failed. Reset the DMA channel. */
if (glCmdDirection)
{
CyU3PDmaChannelReset ((CyU3PDmaChannel *) &glChHandleMscOut);
}
else
{
CyU3PDmaChannelReset ((CyU3PDmaChannel *) &glChHandleMscIn);
}
/* Make sure the request is aborted and that the controller is reset. */
CyU3PSibAbortRequest (portId);
}
}
9.5.2 Reads and Writes to SD/ MMC Using DMA Transfers
A DMA channel (out) is created to transfer data to the SD/ MMC device connected to any of the S-ports, and another DMA
channel (in) is created to read data from the SD/MMC device. Refer to FX3 DMA Subsystem chapter on page 58 for more
details on the DMA channels and sockets. Any of the six available S-port sockets can be used for these channels. The socket
is defined as follows inside the FX3 SDK library:
CY_U3P_SIB_SOCKET_0 = 0x0200, /**< S-port socket number 0. */
CY_U3P_SIB_SOCKET_1, /**< S-port socket number 1. */
CY_U3P_SIB_SOCKET_2, /**< S-port socket number 2. */
CY_U3P_SIB_SOCKET_3, /**< S-port socket number 3. */
CY_U3P_SIB_SOCKET_4, /**< S-port socket number 4. */
CY_U3P_SIB_SOCKET_5, /**< S-port socket number 5. */

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cypress EZ-USB FX3 and is the answer not in the manual?

Cypress EZ-USB FX3 Specifications

General IconGeneral
BrandCypress
ModelEZ-USB FX3
CategoryController
LanguageEnglish

Related product manuals