RabbitCore RCM4500W User Manual page 55

C-programmable zigbee core module
Table of Contents

Advertisement

The pins are configured as analog inputs or as digital I/O using the following macros as exam-
ples before #use XBEE_API.LIB.
#define DIO_00 XBEE_IO_CONF_ANAIN
#define DIO_01 XBEE_IO_CONF_ANAIN
#define DIO_02 XBEE_IO_CONF_ANAIN
#define DIO_03 XBEE_IO_CONF_ANAIN
#define DIO_12 XBEE_IO_CONF_DIGIN
#define DIO_05 XBEE_IO_CONF_DIGOUT_HIGH // bit 8
#define DIO_04 XBEE_IO_CONF_DIGOUT_HIGH // bit 0
#define DIO_10 XBEE_IO_CONF_DIGOUT_LOW
#define DIO_11 XBEE_IO_CONF_DIGIN
NOTE: The mask order is different than for DIO_INPUTS. While all pins can be configured as
either inputs or outputs, only DIO_00 – DIO_03 can be configured as analog inputs.
RETURN VALUE
0 — success.
0 — one of the error codes returned by zb_API_ATCmdResponse()
User's Manual
zb_io_init (cont'd)
// bit 4
// bit 3
// bit 2
// bit 1
// bit 10
// bit 11
// bit 12
50

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RCM4500W and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents