The source code of ov5640.c is the confidential information so that we could not share with others here. Please contact to FAE of OmniVision to get the source code of OV5647.
On on side, OmniVision will provide you not the whole file but the register address and its value according to your requirment.
On the other side, we could provide you the framework of this source code without the reigster address and its value.
You could just follow the steps below to get the framework.
1. Click the icon
2. Enter project name.
3. Add resolutions which you want.
4. Enter values in CX3 receiver configuration tab. Confirm all the parametes in the range required.
5. Save all the files generated.
6. Under project path, you will find cyimagesensor.c and cyu3imagesensor.h which you want.
7. Fill up cyu3imagesensor.c and modify cyu3imagesensor.h if necessary.
8. Build the project.
One more thing to be added here, the library for OV5640 is available along with SDK.
The path is
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\fw_lib\1_3_3