Eurotech ZEUS Bedienungsanleitung Seite 50

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 72
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 49
Arcom Embedded Linux Technical Manual Developing software for AEL
AIM104-RELAY8/IN8
The library libaim104 provides several functions on AIM104-RELAY8/IN8:
int aim104_relay8_enable_relays(int fd, int enable);
int aim104_relay8_set_all(int fd, unsigned char set);
int aim104_relay8_set_masked(int fd, unsigned char mask,
unsigned char set);
int aim104_relay8_inputs(int fd);
int aim104_relay8_relay_status(int fd);
The libaim104 functions on AIM104-RELAY8/IN8 are explained below:
Function Explanation
aim104_relay8_enable_relays
Enables all relays if the enable parameter is true.
aim104_relay8_set_all
Sets all 8 relays to the state given by set.
aim104_relay8_set_masked
Sets all relays selected by the mask parameter to the
state given by the set parameter. A relay is selected if
there is a 1 in the corresponding bit position within
mask.
aim104_relay8_inputs
Returns the state of the 8 digital I/O lines as a bit
mask.
aim104_relay8_relay_status
Returns the current state of the 8 relays as a bit
mask.
AIM104-IN16
The function provided by the library libaim104 on AIM104-IN16 is:
int aim104_in16_inputs(int fd, int channel);
The function aim104_in16_inputs returns the state of digital I/O lines 0-7 as a bit mask
if channel is 0, or lines 8-15 if channel is 1.
AIM104-OUT16
The functions provided by the library libaim104 on AIM104-OUT16 are:
int aim104_out16_enable_outputs(int fd, int enable);
int aim104_out16_set_all(int fd, int channel,
unsigned char set);
int aim104_out16_set_masked(int fd, int channel,
unsigned char mask,
unsigned char set);
int aim104_out16_output_status(int fd, int channel);
When the parameter channel is zero, it selects I/O lines 0-7. When channel is one, it
selects I/O lines 8-15.
© 2006 Arcom Issue G 50
Seitenansicht 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 71 72

Kommentare zu diesen Handbüchern

Keine Kommentare