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

  • 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 37
Orange Tree Technologies
Page 38 of 57
ZestSC1GetErrorMessage
ZESTSC1_STATUS ZestSC1GetErrorMessage(ZESTSC1_STATUS Status,
char **Buffer);
Parameters
Status ZestSC1 error code for which description is required.
Buffer Pointer to location to receive error code description string.
Return Value
ZESTSC1_SUCCESS Function succeeded
ZESTSC1_ILLEGAL_STATUS_CODE Status code is out of range
Description
ZestSC1GetErrorMessage can be called to obtain a descriptive message for a return
status from a ZestSC1 library function. On return, the string pointed to by Buffer will be
a description of the Status return code. This is a static string and so does not need to be
freed.
For example:
ZESTSC1_HANDLE Handle;
ZESTSC1_STATUS Status;
/* Open a card with ID of 1 */
Status = ZestSC1OpenCard(1, &Handle);
if (Status!=ZESTSC1_SUCCESS)
{
char *Buffer;
ZestSC1GetErrorMessage(Status, &Buffer);
printf(“Error : %s\n”, Buffer);
}
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 56 57

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

Žádné komentáře