Pepper Computer RS232, RS485 user manual SMDIN1Init Syntax, Description

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 101
Image 101

Chapter 4 Digital Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

 

 

4.1.8.2 SMDIN1Init

Syntax

error_code SMDIN1Init(u_int8 PortNr);

Description

This function initialises the SM-DIN1 Module on port PortNr by allocating space in memory for resources and resetting all inputs.

Input

SM-Port number to initialise

u_int8 PortNr

 

(from 0 to 10)

Output

If the module is unknown

error_code SUCCESS

E_BMODE

or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

Example

RetVal = SMDIN1Init(0);

4

 

 

 

 

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 4 - 13

 

 

Page 101
Image 101
Pepper Computer RS232, RS485 user manual SMDIN1Init Syntax, Description