5.2.6.5 RabbitNet Port
The function calls described in this section are used to configure the RabbitNet port on the
Prototyping Board for use with RabbitNet peripheral cards. The user's manual for the spe-
cific peripheral card you are using contains additional function calls related to the Rabbit-
Net protocol and the individual peripheral card. Appendix F provides additional
information about the RabbitNet.
These RabbitNet peripheral cards are available at the present time.
•
Digital I/O Card (RN1100)
•
A/D Converter Card (RN1200)
•
D/A Converter Card (RN1300)
Before using the RabbitNet port, add the following lines at the start of your program.
#define RN_MAX_DEV 10
#define RN_MAX_DATA 16 // max number of data bytes in any transaction
#define RN_MAX_PORT 2
Set the following bits in
returned. This does not affect the status byte and still can be interpreted. Set any bit com-
bination to abort:
bit 7—device busy is hard-coded into driver
bit 5—identifies router or slave
bits 4,3,2—peripheral-board-specific bits
bit 1—command rejected
bit 0—watchdog timeout
#define RNSTATUSABORT 0x80
// hard-coded driver default to abort if the peripheral board is busy
void rn_sp_info();
Provides rn_init() with the serial port control information needed for RCM3365/RCM3375 modules
RETURN VALUE
None.
50
// max number of devices
// max number of serial ports
to abort transmitting data after the status byte is
RNSTATUSABORT
•
Relay Card (RN1400)
•
Keypad/Display Interface (RN1600)
RabbitCore RCM3365/RCM3375
.