Programming Manual

i480e&i480e-MD2 Programming Manual
31 / 139
4.27
PIOGETPIN
This command is used to get the contents of PIO data register.
Command
AT+B PIOGETPIN
Response
AT-B PIOGETPIN [result]
Parameters
result
A 32 bit value. Each bit in the result value corresponds
to a PIO line:
1, high
0, low
Note
N/A
4.28
PIOSETDIR
This command is used to set PIOs as inputs or outputs.
Command
AT+B PIOSETDIR [mask],[dir]
Response
AT-B PIOSETDIR [result]
Parameters
result
A 32 bit mask. If any bit in this mask is high then that
PIO could not be set to the direction specified.
mask
Each bit in the mask corresponds to a PIO line. Bits set
to 1 in this mask will be modified. Bits set to 0 in this
mask will not be modified.
dir
Each bit in the dir value corresponds to a PIO line. Bits
set to 1 in this value will result in that PIO line being
configured as an output. Bits set to 0 in this value will
result in that PIO line being configured as an input.
Note
1 The upper 16 PIOs must be mapped in before they can be used
through AT+B PIOSETMAP.
2 The upper 16 PIOs must be mapped in before they can be used
through AT+B PIOSETMAP.
Barrot Confidential