Pepper Computer RS485 SMTrd Syntax, Input Pointer to a variable in which to place the read, Value

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 64
Image 64

SMART I/O User’s Manual

Chapter 2 SMART-BASE

 

 

 

 

 

 

 

 

 

 

2.6.6SMTrd

Syntax

error_code SMTrd(u_int32 *value);

Description

This function reads the actual timer count value.

NOTE !

A stable read value can only be achieved if the timer is not running. There- fore, a read request to the running timer terminates with E_DEVBSY.

Input

Pointer to a variable in which to place the read

u_int32 *value

 

value.

Output

 

error_code

Example

SUCCESS

E_DEVBSY Timer is currently running or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

RetVal = SMTrd(buffer);

 

 

 

 

Page

2 - 24

©1996 PEP Modular Computers GmbH

March 12, 1996

 

 

 

Page 64
Image 64
Pepper Computer RS485, RS232 user manual SMTrd Syntax, Input Pointer to a variable in which to place the read, Value