
Cypress EZ-USB CX3
EZ-USB® CX3 Technical Reference Manual, Doc. No. 001-91492 Rev. *B
28
1.11 CX3 MIPI CSI-2 APIs
This section details the APIs exposed by the
to configure and utilize the MIPI CSI-2 block
on the CX3. Additional details on the APIs and the enumerations and structure types used by them can be
found in the EZ-USB FX3/FX3S/CX3 SDK Firmware API Guide available as part of the
The MIPI CSI-2 block configuration APIs are available through the cyu3mipicsi.a library file and the function
declarations, enumerations and structure types are available through the header file
cyu3mipicsi.h
.
1.3 provided a BETA level support for the CX3 part. Full support for the CX3 part is available
1.11.1
CyU3PMipicsiInit()
CyU3PReturnStatus_t CyU3PMipicsiInit (void)
This function initializes MIPI CSI-2 block on the CX3 device and is expected to be called prior to any other
calls to the MIPI CSI-2 block. The CX3 GPIO Block, the PIB block and the I
2
C blocks should have been
initialized prior to calling this function.
This call leaves the MIPI CSI-2 block in a low-power mode and
should be called to
enable the clocks on the MIPI CSI-2 block.
This function internally power cycles the MIPI CSI-2 block.
It also enables the output of XRESET and XSHUTDOWN signals by setting
XSHUTDOWN ENABLE
and
XRESET ENABLE
register to 0.
register in its default state (0x0000) thereby setting
the MIPI XRESET and XSHUTDOWN signals to Drive LOW. If either of these signals, needs to be in Drive
HIGH state for sensor operation, it needs to be explicitly set to Drive HIGH state using
CyU3PMipicsiSetSensorControl()
API after calling this function.
On successful execution this function returns CY_U3P_SUCCESS value to the calling function.
1.11.2
CyU3PMipicsiDeInit()
CyU3PReturnStatus_t CyU3PMipicsiDeInit (void)
This function de-initializes MIPI-CSI interface block on the CX3 device and is expected to be called prior to
calling
CyU3PSysEnterStandbyMode()
. This function should be called before the I
2
C block or GPIO blocks
are de-initialized.
The MIPI XRESET and XSHUTDOWN signals shall not be driven by the CX3 after this call.
On successful execution this function returns CY_U3P_SUCCESS value to the calling function.
1.11.3
CyU3PMipicsiReset()
CyU3PReturnStatus_t CyU3PMipicsiReset (CyU3PMipicsiReset_t resetType)
This function is used to reset the MIPI-CSI block on the CX3. The MIPI-CSI block provides two reset modes
–
Hard reset
, which power-cycles the entire block, and
Soft reset
, which does not reset the I
2
C
communication channel used by the block. The reset mode is selected via the parameter of type
CyU3PMipicsiReset_t
passed to this function.
Soft Reset cannot be called on the interface until the block has been initialized. A Hard reset however, can be
called on the interface at any point in time.
call internally performs a Hard reset on the interface before initializing it.
Hard reset enables the output of XRESET and XSHUTDOWN signals by setting
XSHUTDOWN ENABLE
and
XRESET ENABLE
bits of the
register to 0. This function leaves the