Download UC1394a-3 DCAM Camera Development Kit User's Guide
Transcript
USER’S GUIDE DCAM CAMERA DEVELOPMENT KIT Date : 26 January 2007 Doc. no. : DCAM_Camera_DevKit_UG Iss./Rev : 1.00 Page : 36 synopsis int FpgaLoad(INT32U *pData, INT32U ulLength); parameters pData ulLength pointer to FPGA image in flash memory length of FPGA image in bytes return value (zero) if FPGA image is loaded successfully, otherwise the FPGA has not been loaded. Possible reasons for this are: the flash area for FPGA code is not programmed or contains invalid data the FPGA Code was created for a non-matching device the FPGA Code was created with incorrect programming file options. FPGA_SUCCESS 6.5.7 FlashGetDeviceInfo Reads manufacturer and device ID from the flash and stores them in the specified locations. Default manufacturer ID is 000116 (AMD) or 00C216 (Macronix). Default device ID is 225B16 (29LV800). defined in msl.h synopsis void FlashGetDeviceInfo(INT16U *pManufacturer, INT16U *pDevice, void (*pCallback)(void)); parameters pManufacturer pDevice pointer to location where manufacturer ID is stored pointer to location where device ID is stored return value None 6.5.8 FlashEraseSector Erases the specified sector. During the erase process, a user-specified callback function is executed to allow the application to continue processing or to indicate the progress of the operation. The callback is called whenever the erase status is queried. Since the flash memory is completely used for storing application and FPGA code (see chapter “Flash Memory” in [15]), application software should not modify the flash contents. defined in msl.h synopsis void FlashEraseSector(int iSector, void (*pCallback)(void)); parameters iSector pCallback return value FLASH_OK Sector number to be erased. Allowed values: 0 .. 15. Pointer to a user callback function. Must be set to a valid user callback function or to NULL if no callback is used. Operation was successful