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 #205 background imageLoading...
Page #205 background image
EZ-USB FX3 Technical Reference Manual, Document Number: 001-76074 Rev. *F 205
Storage Ports
intfParams.voltageSwGpio = 45; /* Use GPIO_45 for voltage switch on
S0 port. */
intfParams.lvGpioState = CyFalse; /* Driving GPIO low selects 1.8 V on
SxVDDQ. */
intfParams.useDdr = CyTrue; /* DDR clocking enabled. */
intfParams.maxFreq = CY_U3P_SIB_FREQ_104MHZ; /* No S port clock
limitation. */
intfParams.cardInitDelay = 0; /* No delay required between SD card insertion before
initialization. */
status = CyU3PSibSetIntfParams (0, &intfParams);
if (status == CY_U3P_SUCCESS)
{
intfParams.voltageSwGpio = 57;
/* Use GPIO_57 for voltage switch on S1 port. */
status = CyU3PSibSetIntfParams (1, &intfParams);
}
if (status != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (4, "Set SIB interface parameters failed,
code=%d\r\n", status);
CyFxAppErrorHandler (status);
}
status = CyU3PSibStart ();
if (status != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (4, "SIB start failed, code=%d\r\n", status);
CyFxAppErrorHandler (status);
}
The structure passed as a parameter to CyU3PSibSetIntfParams defines the configuration parameters for the storage ports.
These parameter values are used internally by the storage driver to configure the GPIOs (such as resetGPIO,
voltageswGPIO, and so on, if enabled) appropriately. All parameter values, except for the "cardDetType," are used internally
by the storage driver only and do not have a register-level impact. cardDetType enables the appropriate interrupt for card
detection. Refer to Card Insertion and Removal Detection Mechanism on page 220 for more details on card detection.
9.5.1.3 Starting the Storage Driver
The CyU3PSibStart API is called to start the storage driver and initialize any storage devices that are connected on the two
storage ports. Depending on the type of device (SD/MMC/SDIO), the device is initialized appropriately by the driver. The
storage device types supported by FX3S are as follows.
/** \brief List the Storage Device types supported by FX3S.
**Description**\n
This enumeration lists the various storage device types supported by the
storage module in FX3S firmware.
*/
typedef enum CyU3PSibDevType
{
CY_U3P_SIB_DEV_NONE = 0, /**< No device */
CY_U3P_SIB_DEV_MMC, /**< MMC/eMMC device */
CY_U3P_SIB_DEV_SD, /**< SD Memory card */
CY_U3P_SIB_DEV_SDIO, /**< SDIO IO only Device.*/
CY_U3P_SIB_DEV_SDIO_COMBO /**< SDIO Combo Device. Data transfers to the combo
card are not supported. */
} CyU3PSibDevType;

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