Pepper-computer Modular Computers RS485 Manuel d'utilisateur Page 251

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 320
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 250
SMART I/O Users Manual
©1996 PEP Modular Computers GmbHOctober 01, 1996 Page 5 - 95
5
Chapter 5 Analog Modules
5.4.8.2 SMADC1Init
Syntax
error_code SMADC1Init(u_int8 PortNr);
Description
This function initialises the SM-ADC1 Module on port PortNr, and:
- tests the module’s ID
- test the module’s sub-ID for the determination of bipolar or unipolar
operation (voltage/current input)
- 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 = SMADC1Init(0);
Vue de la page 250
1 2 ... 246 247 248 249 250 251 252 253 254 255 256 ... 319 320

Commentaires sur ces manuels

Pas de commentaire