4 smssisetsetpoint, 4 smssisetsetpoint -32, Smart i/o user’s manual – Pepper Computer Modular Computers RS485 User Manual

Page 314: Chapter 6 communications modules

Advertising
background image

SMART I/O User’s Manual

October 01, 1996

©1996 PEP Modular Computers GmbH

Page 6- 32

Chapter 6 Communications Modules

6.2.12.4 SMSSISetSetPoint

Syntax

error_code SMSSISetSetPoint(u_int8 PortNr,

u_int32 Setpoint);

Description

This function copies the setpoint to an internal register which will only be

sent to the SM-SSI when the function SMSSISetCtrlReg() is called. This

function is used to set the preset value for the comparator if testing for a

match.

Input

u_int8 PortNr

Number of the SM port to set

u_int32 Setpoint

Value of the comparator register

(0x0 -> 0xFFFFFF) 24-bit

Output

error_code

SUCCESS

E_BMODE

if the module is unknown

or standard OS-9 error code (refer to the OS-9

Technical Manual Error Codes Section).

Example

RetVal = SMSSISetSetPoint(0, 0xFF00FF);

Advertising
This manual is related to the following products: