User’s Manual
49
5.2.8 Auxiliary I/O Pins Function Calls
The function calls described in this section are for use with the pins on the auxiliary I/O header at
J4. The source code is in the Dynamic C
LIB\Rabbit4000\XBee\XBEE_API.LIB
library if
you need to modify it for your own board design.
The sample programs in the Dynamic C
SAMPLES\XBee
folder illustrate the use of the function
calls.
zb_io_init
int zb_io_init(void);
DESCRIPTION
Initializes the I/O on the XBee RF module. The default behavior for each pin is predefined, but
may be overridden before the
#use XBEE_API.LIB
statement or by calling the appropriate
macro.
J4 Pin
Dynamic C
Name
Functionality
Default
Configuration
State
Pull-Up Mask
Bit
1
DIO_00
Analog Input or
Digital I/O
Analog Input
Not Applicable
4
2
DIO_01
Analog Input or
Digital I/O
Analog Input
Not Applicable
3
3
DIO_02
Analog Input or
Digital I/O
Analog Input
Not Applicable
2
4
DIO_03
Analog Input or
Digital I/O
Analog Input
Not Applicable
1
6
DIO_12
Digital I/O
Digital Input
Pulled Up 30 k
10
10
DIO_05
Digital I/O
Digital Output
Default High
8
11
DIO_04
Digital I/O
Digital Output
Default High
0
13
DIO_10
Digital I/O
Digital Output
Default Low
11
14
DIO_11
Digital I/O
Digital Input
Pulled Up 30 k
12