background image

16

5. Appendix

5.1. Predefined Symbols

The following symbols are predefined in the the include file

tip815.h.

t815_cntrl function codes

SS_MAP

202

Build a map of nodes contained on the network

SS_ONLINE

203

Initialize the ARCNET controller and entering the

network

SS_OFFLINE

204

Shutdown the node hardware and remove the

node from the network

SS_DIAG

205

Get number of node reconfigurations

SS_FLUSH

206

Flush the read ring buffer

I/O flags

T815_FLUSH

(1<<3)

Flush t815_read ring buffer

T815_BROADCAST

(1<<4)

Configure the controller to accept broadcast

messages from the network

T815_LONGPACKET

(1<<6)

Configure the controller to receive both short and

long packets. If not set only short packets can be

received

T815_NODE_ID

(1<<7)

Use node ID specified in T815_CONFIG. If not set,

determine the node ID by reading the hardware

DIP switch

T815_NOWAIT

(1<<8)

Return immediately after starting transmission

Summary of Contents for TIP815-SW-12

Page 1: ...river for TIP815 ARCNET Interface IP Version 1 4 Revision 1 1 22 June 1999 TEWS DATENTECHNIK GmbH Am Bahnhof 7 D 25469 Halstenbek Germany Tel 49 0 4101 4058 0 Fax 49 0 4101 4058 19 EMail Support tews...

Page 2: ...mplete However TEWS DATENTECHNIK GmbH reserves the right to change the product described in this document at any time without notice This product has been designed to operate with TEWS DATENTECHNIK Gm...

Page 3: ...Installation 4 3 I O interface functions 5 3 1 t815_open 5 3 2 t815_close 6 3 3 t815_read 7 3 4 t815_write 9 3 5 t815_cntrl 11 4 Device Descriptor 15 5 Appendix 16 5 1 Predefined Symbols 16 5 2 Status...

Page 4: ...messages can be transmitted to and received from the ARCNET Interface by calling the t815_write or t815_read functions Special I O operation that do not fit to the standard I O calls will be performed...

Page 5: ...e to build the driver The distribution contains predefined device descriptors for the four IP slots of the MVME162 Descriptor Address Vector Level t815A 0xfff58000 0x80 1 t815B 0xfff58100 0x81 1 t815C...

Page 6: ...open int PathNr path number returned by this call DESCRIPTION Before I O can be performed to the TIP815 device it must be opened by invoking the I O function t815_open The path number is used to iden...

Page 7: ...a TIP815 device SYNOPSIS int t815_close PathNr int PathNr path number DESCRIPTION Terminates the I O path specified by PathNr RETURNS returns E_NOERR 0 if the device was successful closed or an approp...

Page 8: ...age length and message data typedef struct unsigned char SID Source ID unsignedchar DID Destination ID or 0 for broadcasts unsigned short len Message data length unsigned char data MAX_LONG_MSG Messag...

Page 9: ...d TIP815 device o flush the input ring buffer before reading o return immediately if there is no message available status t815_read path T815_FLUSH T815_NOWAIT rcvbuf if status E_NOERR process message...

Page 10: ...0 for broadcasts unsigned short len Message data length unsigned char data MAX_LONG_MSG Message data 253 bytes for short packets 508 bytes for long packets T815_MSG The parameter SID is not used The p...

Page 11: ...th status t815_open t815A path t815_write a message to a TIP815 device sndbuf DID 123 sndbuf len 14 memcpy sndbuf data HELLO 14 status t815_write path 0 sndbuf if result E_NOERR handle device error RE...

Page 12: ...The I O control function SS_ONLINE setup the ARCNET controller using informations specified in the T815_CONFIG A pointer to the configuration data T815_CONFIG is passed to the driver by the function d...

Page 13: ...de from the network No arguments are required for this call To enter the network again use the t815_cntrl command SS_ONLINE SS_DIAG Get number of node reconfigurations The number of node reconfigurati...

Page 14: ...o use node ID specified in node_id o setup network speed to 2 5 Mbps o response time 1130 s o idle time 1237 s o reconfig time 1680 ms conf node_id 9 conf network_timeout 0 conf speed 0 status t815_cn...

Page 15: ...available n Flush the t815_read ring buffer status t815_cntrl path 0 SS_FLUSH 0 Shutdown the node hardware and remove the node from the network status t815_cntrl path 0 SS_OFFLINE 0 RETURNS E_NOERR if...

Page 16: ...mounted in slot A dc l FFF58000 Address of port dc b 80 Vector trap assignment dc b 1 IRQ hardware interrupt level dc b 0 IRQ polling priority dc b Mode Device mode capabilities dc w FileMgr File man...

Page 17: ..._DIAG 205 Get number of node reconfigurations SS_FLUSH 206 Flush the read ring buffer I O flags T815_FLUSH 1 3 Flush t815_read ring buffer T815_BROADCAST 1 4 Configure the controller to accept broadca...

Page 18: ...for incoming messages is full E_BAD_PACKET_SIZE 0x107 Illegal number of bytes to transfer E_DUPID 0x108 Illegal duplicate node ID E_NETWORK_DOWN 0x109 No activity on network E_NODATA 0x10A No message...

Reviews: