Cypress Semiconductor NoBL CY7C1472V33 Guia do Utilizador Página 43

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 57
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 42
ZestSC1 User Guide
CONFIDENTIAL Page 43 of 57
ZestSC1Configure
ZESTSC1_STATUS ZestSC1Configure( ZESTSC1_HANDLE Handle,
ZESTSC1_IMAGE Image);
Parameters
Handle Handle of open ZestSC1 card. See ZestSC1OpenCard.
Image FPGA configuration image to use to configure the FPGA.
Return Value
ZESTSC1_SUCCESS Function succeeded
ZESTSC1_ILLEGAL_HANDLE Attempt to use illegal card handle
ZESTSC1_ILLEGAL_IMAGE_HANDLE Attempt to use illegal configuration image
handle
ZESTSC1_INTERNAL_ERROR An unspecified internal error occurred while
communicating with the driver
ZESTSC1_TIMEOUT Operation timed out
Description
ZestSC1Configure configures the FPGA on the ZestSC1 card from a configuration
image. The configuration image can be created from a .bit file by calling
ZestSC1LoadImage or from data in memory by calling ZestSC1RegisterImage.
Example creating the image from .bit file on disk:
ZESTSC1_IMAGE Image;
ZESTSC1_HANDLE Handle;
/* Load the .bit file */
ZestSC1LoadImage(“test.bit”, &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);
Example creating the image from buffer in memory:
extern void *Buffer;
extern unsigned long Length;
ZESTSC1_IMAGE Image;
ZESTSC1_HANDLE Handle;
Vista de página 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 56 57

Comentários a estes Manuais

Sem comentários