Prosoft-technology MVI69-ADM Instrukcja Użytkownika Strona 135

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 342
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 134
MVI-ADM 'C' Programmable Application Development Function Library - ADM API
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 135 of 342
February 20, 2013
ADM_DBGetBit
Syntax
int ADM_DBGetBit(ADMHANDLE adm_handle, unsigned short offset)
Parameters
adm_handle
Handle returned by previous call to ADM_Open
offset
Bit offset into database
Description
This function reads a bit from the database at a specified bit offset.
adm_handle must be a valid handle returned from ADM_Open.
Return Value
Requested bit
ADM_ERR_NOACCESS
adm_handle does not have access
ADM_ERR_MEMORY
database is not allocated
ADM_ERR_REG_RANGE
offset is out of range
Example
ADMHANDLE adm_handle;
unsigned short offset;
if(ADM_DBGetBit(adm_handle, offset))
printf("bit is set");
else
printf("bit is clear");
Przeglądanie stron 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 341 342

Komentarze do niniejszej Instrukcji

Brak uwag