46
RabbitCore RCM3305/RCM3315
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 E provides additional
information about the RabbitNet.
These RabbitNet peripheral cards are available at the present time.
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
Provides
rn_init()
with the serial port control information needed for RCM3305/RCM3315 modules
.
RETURN VALUE
None.
•
Digital I/O Card (RN1100)
•
A/D Converter Card (RN1200)
•
D/A Converter Card (RN1300)
•
Relay Card (RN1400)
•
Keypad/Display Interface (RN1600)
void rn_sp_info();
Содержание RCM3305
Страница 6: ...RabbitCore RCM3305 RCM3315...
Страница 14: ...8 RabbitCore RCM3305 RCM3315...
Страница 22: ...16 RabbitCore RCM3305 RCM3315...
Страница 28: ...22 RabbitCore RCM3305 RCM3315...
Страница 70: ...64 RabbitCore RCM3305 RCM3315...
Страница 106: ...100 RabbitCore RCM3305 RCM3315...
Страница 144: ...138 RabbitCore RCM3305 RCM3315...
Страница 160: ......