Pepper-computer Modular Computers RS485 Uživatelský manuál Strana 270

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 320
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 269
SMART I/O User’s Manual
October 01, 1996
©1996 PEP Modular Computers GmbH
Page 5 - 114
Chapter 5 Analog Modules
5.5.8.2 SMDAC1Init
Syntax
error_code SMDAC1Init(u_int8 PortNr);
Description
This function initialises the SM-DAC1 Module on port PortNr, and:
- tests the module’s ID
- reads the conversion table held in EEPROM
- allocates space for the fetched resources
Input
u_int8 PortNr Port number of module to initialise
(from 0 to 10)
Output
error_code SUCCESS or
E_BMODE if wrong or no module
E_MEMFUL if no memory resources available
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMDAC1Init(0);
Zobrazit stránku 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 319 320

Komentáře k této Příručce

Žádné komentáře