Cypress Semiconductor NoBL CY7C1472V33 Guia do Utilizador Página 30

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 57
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 29
Orange Tree Technologies
Page 30 of 57
ZestSC1OpenCard
ZESTSC1_STATUS ZestSC1OpenCard( unsigned long CardID,
ZESTSC1_HANDLE *Handle);
Parameters
CardId ID of card to open. See ZestSC1CountCards.
Handle Pointer to receive the handle of the open card. This handle is
used to identify the card in future calls to the ZestSC1 library.
Return Value
ZESTSC1_SUCCESS Function succeeded
ZESTSC1_INTERNAL_ERROR An unspecified internal error occurred while
communicating with the driver
ZESTSC1_OUT_OF_MEMORY Not enough memory to complete the
requested operation
ZESTSC1_ILLEGAL_CARD_ID The requested card ID does not correspond
to any devices in the system
Description
ZestSC1OpenCard is used to obtain a handle to a card in the system for future calls to
ZestSC1 library functions. The card is identified by a user-programmable ID. See
ZestSC1CountCards for details of how to find the IDs of cards in the system and
ZestSC1SetCardID for details of how to set this ID.
For example:
ZESTSC1_HANDLE Handle;
/* Open a card with ID of 1 */
ZestSC1OpenCard(1, &Handle);
/* Configure the FPGA on the open card */
ZestSC1ConfigureFromFile(Handle, “test.bit”);
ZestSC1CloseCard should be called to free the card before the program exits.
Vista de página 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 56 57

Comentários a estes Manuais

Sem comentários