![Bluegiga IWIP3G - IWRAP - IPHONE 3G User Manual Download Page 67](http://html1.mh-extra.com/html/bluegiga/iwip3g-iwrap-iphone-3g/iwip3g-iwrap-iphone-3g_user-manual_2777547067.webp)
67
5.27
PIO
Command
PIO
is used to get and set PIO states and directions. There are 6 usable IO pins
(PIO2-PIO7) on the WT11/12 module, 11 (PIO0-PIO10) on the WT32; thus the range for
the mask and state parameters for the WT11/12 is 4-FF (excluding values that have bits 0
or 1 set), for the WT32 it is 0-07FF.
5.27.1
Syntax
Synopsis:
PIO {cmd} [mask] [states]
Description:
cmd
GET
Read the contents of the PIO data register. Bits that are set denote
pins that are pulled up.
GETDIR
Read the contents of the PIO direction register. Bits that are set
denote output pins; others are input pins, i.e. controlled
externally, such as the PIO buttons on the WT32 evaluation board.
GETBIAS
Read the contents of the PIO bias register. Bits that are set denote
pins that are pulled up/down strongly, others are pulled up/down
weakly.
SET {mask} {states}
Set the contents of the PIO data register; the first parameter is the
bit mask for deciding which PIOs are affected, the second
parameter is the bits to set/unset.
SETDIR {mask} {states}
Set the contents of the PIO direction register. By default, only bit 8
(PIO7) is set, thus only it can be controlled locally with PIO SET,
and all others are input pins.
SETBIAS {mask} {states}
Set the contents of the PIO bias register. By default, all pins are
pulled up/down weakly.
RESET
Set the registers to iWRAP defaults.
Summary of Contents for IWIP3G - IWRAP - IPHONE 3G
Page 1: ...iWRAP3 U s e r G u i d e V e r s i o n 1 3 F r i d a y S e p t e m b e r 2 6 2 0 0 8...
Page 169: ...169 9 7 RS232 Connections Diagram Figure 7 RS232 connections...
Page 187: ...187 Example trace of file reception via OPP Figure 12 Receiving a vCard over OPP...