Adlink ACL-8111 Bedienungsanleitung Seite 43

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 61
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 42
C/C++ Library for DOS
37
5.4 _8111_DI
@ Description
This function is used to read data from digital input port. There are 16-bit
digital inputs on the ACL-8111. The bit 0 to bit 7 are defined as low byte
and the bit 8 to bit 15 are defined as the high byte.
@ Syntax
int _8111_DI( int port_number, unsigned char *data )
@ Argument:
port_number: To indicate which port is read,
DI_LO_BYTE
or DI_HI_BYTE.
DI_LO_BYTE: bit 0 ~ bit 7,
DI_HI_BYTE: bit8 ~ bit15
data: return value from digital port.
@ Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_PortError
@ Example:
See Demo program . Demo Program 'DI_DEMO.C'
Seitenansicht 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 60 61

Kommentare zu diesen Handbüchern

Keine Kommentare