Pepper Computer Modular Computers RS485 User Manual

Page 153

Advertising
background image

Digital Modules

08 Jan. 98

SMART I/O User’s Manual

Page 4 - 67

Manual ID 09901, Rev. Index 0500

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);

Advertising
This manual is related to the following products: