
Cypress EZ-USB CX3
EZ-USB® CX3 Technical Reference Manual, Doc. No. 001-91492 Rev. *B
29
register in its default state (0x0000) thereby setting the MIPI XRESET and
XSHUTDOWN signals as Drive 0. If either of these signals, needs to be in Drive 1 state for sensor operation,
it needs to be explicitly set to Drive 1 state using
CyU3PMipicsiSetSensorControl()
after calling
(CY_U3P_CSI_HARD_RST)
.
A Soft reset does not change the state of the XRESET and XSHUTDOWN signals. A soft reset sets the
RESET
bit of the
register to 1, waits for 5 timer ticks on the CX3 and then clears the
RESET
bit
to 0 to resume normal operation.
On successful execution this function returns CY_U3P_SUCCESS value to the calling function.
1.11.4
CyU3PCx3DeviceReset()
void CyU3PCx3DeviceReset (CyBool_t isWarmReset,
CyBool_t sensorResetHigh)
This function is similar to the
CyU3PDeviceReset ()
API used for FX3/FX3S devices. It uses the
isWarmReset
parameter to determine if the device is going in for a warm reset or a cold reset.
In addition to resetting the CX3 device, this function also drives the MIPI XRESET signal to reset the Image
Sensor before the CX3 device is reset, by internally calling
CyU3PMipicsiSetSensorControl()
and setting the
CY_U3P_CSI_IO_XRES
signal to high or low based on the value provided in
sensorResetHigh
.
This function does not return.
1.11.5
CyU3PMipicsiSleep()
CyU3PReturnStatus_t CyU3PMipicsiSleep (void)
This function is used to disable the PLL clocks on the MIPI CSI-2 block and place it in low-power sleep. No
data transfers from the Image Sensor to the CX3 will occur while the block is in low power sleep mode.
This API sets the
SLEEP
register of the MIPI CSI-2 block to 1.
On successfully placing the block to sleep this function returns CY_U3P_SUCCESS.
1.11.6
CyU3PMipicsiWakeup()
CyU3PReturnStatus_t CyU3PMipicsiWakeup (void)
This function is used enable the clocks on the MIPI CSI-2 block to take it from Low power sleep to Active.
This API clears the
SLEEP
bit of the
register of the MIPI CSI-2 block to 0.
On successful execution this function returns CY_U3P_SUCCESS.
1.11.7
CyU3PMipicsiSetSensorControl()
CyU3PReturnStatus_t CyU3PMipicsiSetSensorControl (CyU3PMipicsiSensorIo_t io,
CyBool_t value)
This function is used to drive the XRES and XSHUTDOWN signals from the CX3 to Image sensor. The function
allows for the signals to be driven high or low.
The function can drive either one of the two signals or both signals (both driven to the same value)
simultaneously. To set both signals to the same value use the mask
(CY_U3P_CSI_IO_XRES |
CY_U3P_CSI_IO_XSHUTDOWN)
as value for
io
. To set the two signals to separate values multiple calls to
this function are required (once for each signal).
This API sets the appropriate bits of the
to 1 or 0 to drive the corresponding
MIPI signal to the sensor high or low.