English
Language : 

20-101-1051 Datasheet, PDF (56/165 Pages) List of Unclassifed Manufacturers – C-Programmable Core Module with NAND Flash Mass Storage and Ethernet
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)
• Relay Card (RN1400)
• Keypad/Display Interface (RN1600)
Before using the RabbitNet port, add the following lines at the start of your program.
#define RN_MAX_DEV 10 // max number of devices
#define RN_MAX_DATA 16 // max number of data bytes in any transaction
#define RN_MAX_PORT 2 // max number of serial ports
Set the following bits in RNSTATUSABORT to abort transmitting data after the status byte is
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
RabbitCore RCM3365/RCM3375