DELIB API reference |
Seite
34
4. DELIB API reference
4.1. Management functions
4.1.1. DapiOpenModule
Description
This function opens a particular module.
Definition
ULONG DapiOpenModule(ULONG moduleID, ULONG nr);
Parameters
moduleID=Specifies the module, which is to be opened (see delib.h)
nr=Indicates No of module which is to be opened.
nr=0 -> 1. module
nr=1 -> 2. module
Return value
handle=handle to the corresponding module
handle=0 -> Module was not found
Remarks
The handle returned by this function is needed to identify the module for all
other functions.
Example program
// USB-Modul öffnen
handle = DapiOpenModule(RO_USB1, 0);
printf("handle = %x\n", handle);
if (handle==0)
{
// USB Modul wurde nicht gefunden
printf("Modul konnte nicht geöffnet werden\n");
return;
}
Summary of Contents for RO-INTERFACE-ETH
Page 1: ...Hardware Description Oktober RO INTERFACE ETH 2010 ...
Page 4: ...I Introduction Seite 4 Introduction ...
Page 6: ...II Hardware description Seite 6 Hardware description ...
Page 12: ...III Configuring the module Seite 12 Configuring the module ...
Page 19: ...IV Firmware Update Seite 19 Firmware Update ...
Page 23: ...V Restore basic configuration Seite 23 Restore basic configuration ...
Page 25: ...VI Software Seite 25 Software ...
Page 37: ...VII Appendix Seite 37 Appendix ...
Page 38: ...Appendix Seite 38 7 Appendix 7 1 Revisions Rev 1 00 First issue Rev 2 00 Design change ...
Page 40: ...Hardware Description Oktober RO DIGITAL IN OUT 2010 ...
Page 44: ...I Introduction Seite 5 Introduction ...
Page 46: ...II Hardware description Seite 7 Hardware description ...
Page 62: ...III Software Seite 23 Software ...
Page 72: ...IV DELIB API reference Seite 33 DELIB API reference ...
Page 96: ...V Appendix Seite 57 Appendix ...
Page 97: ...Appendix Seite 58 5 Appendix 5 1 Revisions Rev 1 00 First issue Rev 2 00 Design change ...
Page 99: ...Hardware Description November RO STEPPER2 2010 ...
Page 103: ...I Introduction Seite 5 Introduction ...
Page 105: ...II Hardware description Seite 7 Hardware description ...
Page 109: ...III Software Seite 11 Software ...
Page 120: ...IV DELIB API reference Seite 22 DELIB API reference ...
Page 159: ...V Appendix Seite 61 Appendix ...
Page 162: ...Hardware Description November RO Series 2010 ...
Page 170: ...I Introduction Seite 9 Introduction ...
Page 172: ...II Hardware description Seite 11 Hardware description ...
Page 251: ...III Software Seite 90 Software ...
Page 263: ...IV DELIB API reference Seite 102 DELIB API reference ...
Page 333: ...V Appendix Seite 172 Appendix ...
Page 336: ...DEDITEC Driver Library Dezember DELIB 2010 ...
Page 341: ...I Welcome Seite 6 Welcome ...
Page 342: ...Welcome Seite 7 1 Welcome Manual DELIB ...
Page 343: ...II Introduction Seite 8 Introduction ...
Page 345: ...III Software Seite 10 Software ...
Page 357: ...IV Directory structure of the DELIB Seite 22 Directory structure of the DELIB ...
Page 360: ...V DELIB API reference Seite 25 DELIB API reference ...
Page 440: ...VI Appendix Seite 105 Appendix ...