EasyManua.ls Logo

PEP Modular Computers Modular Computers RS485 - Smssisetctrlreg

Default Icon
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SMART I/O Users Manual
©1996 PEP Modular Computers GmbHOctober 01, 1996 Page 6 - 33
6
Chapter 6 Communications Modules
6.2.12.5 SMSSISetCtrlReg
Syntax
error_code SMSSISetCtrlReg(u_int8 PortNr, long
CtrlReg1, long CtrlReg2, long CtrlReg3, u_int32
*pData);
Description
This function sets the internal register images of all 3 parts of the 24-bit
control register with values <> -1 and sends them to the SM-SSI. Simultane-
ously, the contents of the data register holding the last value is read back to
the address pointed to by pData.
Input
u_int8 PortNr SM-Port number to send register (0 to 10)
long CntrlReg1 Control register 1 value (0x0 -> 0xFF)
long CntrlReg2 Control register 2 value (0x0 -> 0xFF)
long CntrlReg3 Control register 3 value (0x0 -> 0xFF)
u_int32 *pData Pointer to the value returned from the data
register (0x0 -> 0xFFFFFF)
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 = SMSSISetCtrlReg(0, 0x80, 0x17, 0x1, &Data);

Table of Contents