Cypress Semiconductor NoBL CY7C1472V33 Podręcznik Użytkownika Strona 38

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 57
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
}
Przeglądanie stron 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 56 57

Komentarze do niniejszej Instrukcji

Brak uwag