Pepper Computer RS232, RS485 user manual SMACI1Get

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 153
Image 153

Digital Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

Example

RetVal = SMACI1DeInit(0);

4.4.8.4 SMACI1Get

Syntax

error_code SMACI1Get(u_int8 PortNr, u_int8 *buffer);

Description

This function fetches the status of ALL 8 input lines of the port PortNr and writes it to the address pointed to by buffer with bit 0 of the buffer representing input 0 of the module.

Input

u_int8 PortNr

SM-Port number to fetch data.

u_int8 *buffer

Pointer to buffer where data is to be stored.

Output

error_code SUCCESS

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

Example

RetVal = SMACI1Get(0, buffer);

08 Jan. 98

Manual ID 09901, Rev. Index 0500

Page 4 - 67

Page 153
Image 153
Pepper Computer RS232, RS485 user manual SMACI1Get