EasyManuals Logo

Cypress EZ-USB CX3 User Manual

Cypress EZ-USB CX3
35 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 #31 background imageLoading...
Page #31 background image
Cypress EZ-USB CX3
EZ-USB® CX3 Technical Reference Manual, Doc. No. 001-91492 Rev. *B 31
1.11.10 CyU3PMipicsiQueryIntfParams()
CyU3PReturnStatus_t CyU3PMipicsiQueryIntfParams (CyU3PMipicsiCfg_t * csiCfg)
This function is used to read back the MIPI-CSI interface parameters from the block. The parameters read
back are provided to the calling function via the pointer of type CyU3PMipicsiCfg_t passed in from the calling
function. The function reads the registers which are written to by CyU3PMipicsiSetIntfParams() the
CyU3PMipicsiCfg_t structure object pointed to by csiCfg should be initialized prior to being passed to this API.
1.11.11 CyU3PMipicsiGetErrors()
CyU3PReturnStatus_t CyU3PMipicsiGetErrors (CyBool_t clrErrCnts,
CyU3PMipicsiErrorCounts_t * errorCounts)
This function is used to get a count of CSI-2 protocol and physical layer errors from the MIPI CSI-2 block.
The function takes a parameter which determines whether or not the error counts on the interface are cleared.
The error counts for each error type are retrieved via a pointer of type CyU3PMipicsiErrorCounts_t passed to
this function. The error count values for each type can reach a maximum count of 0xFF. The count values will
continue to report the existing error value on each call unless the function explicitly clears the counts using
clrErrCnts.
The errorCounts object should be initialized prior to being passed to this function.
1.11.12 CyU3PMipicsiGpifLoad()
CyU3PReturnStatus_t CyU3PMipicsiGpifLoad (CyU3PMipicsiBusWidth_t busWidth,
uint32 t bufferSize)
As described in Section 1.9 , the CX3 has a fixed function GPIF interface designed for Image sensor data
acquisition from the MIPI CSI-2 block.
This function allows selection of the GPIF data bus-width and configuration of the size of the DMA buffer
provided for GPIF transfers. The PIB block should have been initialized prior to calling this function.
The DMA buffer size needs to be a multiple of the bus-width. For example, if the GPIF bus width has been set
up to 24 bit width, then the DMA buffer needs to be a multiple of 24 bits (i.e. 3 bytes).
Additionally, the DMA buffer size needs to be a multiple of 16 bytes to satisfy the requirements of the
CyU3PDmaChannelCreate API.
The bus width and the DMA buffer size being passed to this API should be based on the width of the data
format selected for data transfer.
For example, an RGB 888 data type needs the bus-width to be set to 24 bits, whereas YUV 422 requires that
the bus width be set to 16 bits and RAW 8 format needs the bus width to be set to 8 bits.
If the bus-width configured using this API is smaller than that required for the data format selected, the upper
data bits being transferred from the MIPI CSI-2 block will be lost. If the bus-width configured by this API is
larger than what is required for the data format selected, the unused upper bits will be set to 0 in the data
received.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Cypress EZ-USB CX3 Specifications

General IconGeneral
BrandCypress
ModelEZ-USB CX3
CategoryController
LanguageEnglish

Related product manuals