Cypress Semiconductor NoBL CY7C1472V33 Uživatelská příručka Strana 51

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 57
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 50
ZestSC1 User Guide
CONFIDENTIAL Page 51 of 57
ZestSC1WriteData
ZESTSC1_STATUS ZestSC1WriteData( ZESTSC1_HANDLE Handle,
void *Buffer,
unsigned long Length);
Parameters
Handle Handle of open ZestSC1 card. See ZestSC1OpenCard.
Buffer Buffer of data to write.
Length Number of bytes to transfer. Must be a multiple of 512.
Return Value
ZESTSC1_SUCCESS Function succeeded
ZESTSC1_ILLEGAL_HANDLE Attempt to use illegal card handle
ZESTSC1_NULL_PARAMETER NULL was used illegally as one of the
parameter values
ZESTSC1_INTERNAL_ERROR An unspecified internal error occurred while
communicating with the driver
ZESTSC1_TIMEOUT Operation timed out
Description
ZestSC1WriteData transfers data from the Host to the ZestSC1 card streaming
interface. Data transfers over the streaming interface must be a multiple of 512 bytes in
length.
For example:
ZESTSC1_HANDLE Handle;
char Buffer[1024];
/* Open a card with ID of 1 */
ZestSC1OpenCard(1, &Handle);
/* Transfer 1k from host to board */
ZestSC1WriteData(Handle, Buffer, 1024);
/* Close the card */
ZestSC1CloseCard(Handle);
Attempting to transfer data to/from the FPGA without a
suitable slave interface configured may result in the ZestSC1
‘hanging’.
!
Zobrazit stránku 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 57

Komentáře k této Příručce

Žádné komentáře