![Rabbit Coyote BL2500 Скачать руководство пользователя страница 63](http://html1.mh-extra.com/html/rabbit/coyote-bl2500/coyote-bl2500_user-manual_3119445063.webp)
User’s Manual
57
4.4.7 RabbitNet Port
The function calls described in this section are used to configure the BL2500 for use with
RabbitNet peripheral cards. The user’s manual for the specific peripheral card you are
using contains additional function calls related to the RabbitNet protocol and the individ-
ual peripheral card.
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 card is busy
Provides
rn_init()
with the serial port control information needed for BL2500 series
controllers.
RETURN VALUE
None.
Deactivates the BL2500 RabbitNet port as a clocked serial port. This call is also used by
rn_init()
.
PARAMETERS
portnum
= 0
RETURN VALUE
None
void rn_sp_info();
void rn_sp_close(int port);
Содержание Coyote BL2500
Страница 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Страница 6: ...Coyote BL2500...
Страница 71: ...User s Manual 65 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the Coyote...
Страница 90: ...84 Coyote BL2500...
Страница 103: ...User s Manual 97 function calls readUserBlock 36 writeUserBlock 36 sample programs USERBLOCK_INFO C 52 55 56...
Страница 104: ...98 Coyote BL2500...
Страница 106: ......