ADC 100 Betriebsanweisung Seite 11

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 25
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 10
Technical reference
9
© Copyright 2004-2007 Pico Technology Limited. All rights reserved. adc100.en
3.3
Driver routines
3.3.1
adc100_get_driver_version
PREF1 short PREF2 adc100_get_driver_version (void);
This routine returns the version number of the ADC100/101 driver. You can use it to
check that your application is used only with the driver version that it was designed
for use with.
Generally speaking, new driver versions will be fully backward compatible with earlier
versions, though the converse is not always true, so it should be safe to check that
the driver version is greater than or equal to the version that it was designed for use
with.
The version is a two-byte value, of which the upper byte is the major version and the
lower byte is the minor version.
Arguments:
Returns:
3.3.2
adc100_open_unit
PREF1 short PREF2 adc100_open_unit (
short port);
This routine opens the ADC-100 driver.
With the Windows 32-bit driver, the routine assumes that the printer ports 1..3 are at
0x378, 0x278 and 0x3BC.
It then calibrates the timing functions for the computer. It returns TRUE if successful.
If it is not successful, you can call adc100_get_unit_info to find out why it failed.
Arguments:
port
- the number of the parallel or USB port to which the ADC-100
is connected:
1 - LPT1
2 - LPT2 etc
101 - USB-PP1
102 - USB-PP2 etc
Returns:
TRUE if successful
3.3.3
adc100_close_unit
PREF 1 short PREF2 adc100_close_unit (
short port);
This routine closes the ADC-100 driver.
Arguments:
port
- the number identifying the port
Returns:
Seitenansicht 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 24 25

Kommentare zu diesen Handbüchern

Keine Kommentare