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