Pepper Computer Modular Computers RS232 User Manual

Page of 320
SMART I/O User’s Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 2 - 24
Chapter 2  SMART-BASE
2.6.6 SMTrd
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
u_int32 *value
Pointer to a variable in which to place the read
value.
Output
error_code
SUCCESS
E_DEVBSY
Timer is currently running
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMTrd(buffer);