Pepper Computer RS485, RS232 user manual SMLed Syntax

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 68
Image 68

SMART I/O User’s Manual

Chapter 2 SMART-BASE

 

 

 

 

 

 

 

 

 

 

2.6.10SMLed Syntax

error_code SMLed(u_int8 led, u_int8 value);

Description

This function switches on / off user LED’s.

Input

u_int8 led

u_int8 value

Output

Two options are available. They are: USERL1 Yellow LED on piggyback USERL2 Red LED on piggyback (only if the LED is not jumpered as 68302 HALT.

Indicates the status of the LED.

0Switch LED off

Not 0 Switch LED on

error_code

Example

SUCCESS

E_BMODE LED does not exist

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

RetVal = SMLed(USERL1, 0);

 

 

 

 

Page

2 - 28

©1996 PEP Modular Computers GmbH

March 12, 1996

 

 

 

Page 68
Image 68
Pepper Computer RS485, RS232 user manual SMLed Syntax