zb_io_init (cont’d)
The pins are configured as analog inputs or as digital I/O using the following macros as
examples before #use XBEE_API.LIB .
#define
#define
#define
#define
#define
#define
#define
#define
#define
DIO_00
DIO_01
DIO_02
DIO_03
DIO_12
DIO_05
DIO_04
DIO_10
DIO_11
XBEE_IO_CONF_ANAIN
XBEE_IO_CONF_ANAIN
XBEE_IO_CONF_ANAIN
XBEE_IO_CONF_ANAIN
XBEE_IO_CONF_DIGIN
XBEE_IO_CONF_DIGOUT_HIGH
XBEE_IO_CONF_DIGOUT_HIGH
XBEE_IO_CONF_DIGOUT_LOW
XBEE_IO_CONF_DIGIN
//
//
//
//
//
//
//
//
//
bit
bit
bit
bit
bit
bit
bit
bit
bit
4
3
2
1
10
8
0
11
12
NOTE: The mask order is different than for DIO_INPUTS . While all pins can be config-
ured 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
53
相关PDF资料
101-8430-09-203 LED BASE SUBMINI PANEL INDICATOR
103-0537-403 CAP PMI OILTIGHT 1" CLEAR
103-1234-403 CAP LG PANEL IND BLUE OIL TIGHT
103-1336-403 CAP PMI TORPEDO 1" LIGHT YELLOW
103-3101-05-103 LED BASE T-3 1/4 PANEL OIL TIGHT
1032DX5 INDICATOR NEON GREEN PANEL MNT
1033QD5 NEON IND GRN LITE PANEL MNT QC
1034 LAMP INCAND S-8 DBL INDEX VOLT
相关代理商/技术参数
101-1294 功能描述:处理器配件 12VDC POWER SUPPLY REPLACES 101-0686 RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
101-1295 功能描述:处理器配件 RCM5600W Antenna Kit RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
10-112989-1 制造商: 功能描述: 制造商:undefined 功能描述:
10112A WAF 制造商:Intersil Corporation 功能描述:
10112-A-0440-2 制造商:Amatom Electronic Hardware 功能描述:
10112-A-0632-2 制造商:Amatom Electronic Hardware 功能描述:
10112-B-0632-6A 制造商:Amatom Electronic Hardware 功能描述:
10-112-BLANK 制造商:Calrad Electronics 功能描述: