
ZestSC1 User Guide
CONFIDENTIAL Page 47 of 57
ZestSC1FreeImage
ZESTSC1_STATUS ZestSC1FreeImage(ZESTSC1_IMAGE Image);
Parameters
Image FPGA configuration image to free.
Return Value
ZESTSC1_SUCCESS Function succeeded
ZESTSC1_ILLEGAL_IMAGE_HANDLE Attempt to use illegal configuration image
handle
Description
ZestSC1FreeImage should be called when a configuration image handle is no longer
needed. It is used to free resources allocated during ZestSC1LoadImage and
ZestSC1RegisterImage functions.
For example:
extern void *Buffer;
extern unsigned long Length;
ZESTSC1_IMAGE Image;
ZESTSC1_HANDLE Handle;
/* Register the FPGA configuration image */
ZestSC1RegisterImage(Buffer, Length, &Image);
/* Other initialization operations here */
/* Open a card with ID of 1 */
ZestSC1OpenCard(1, &Handle);
/* Other execution operations here */
/* Configure the FPGA from the image */
ZestSC1Configure(Handle, Image);
/* Free resources associated with the handle */
ZestSC1FreeImage(Image);
Kommentare zu diesen Handbüchern