![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/d/ce/dce2f8bb-c968-4f2f-8f93-450444965621/dce2f8bb-c968-4f2f-8f93-450444965621-bg41.png)
9: GPIO Interface
Command 19h, Set Directions
1 means the direction for GPIO X will be updated with the value in the
second parameter.
0 means the direction for that GPIO will not change.
Bytes 5-8: New Directions
1 means GPIO X will become an output.
0 means it will become an input.
Bytes 1-4: The updated directions
Command 1Ah, Set Active Levels
1 means the direction for GPIO X will be updated with the value in the
second parameter.
0 means the active type for that GPIO will not change.
Bytes 5-8: New Active Levels
1 means GPIO X will become active low.
0 means it will become active high.
Bytes 1-4: Updated active levels
Command 1Bh, Set States
1 means the state for GPIO X will be updated with the value in the
second parameter.
0 means the state for that GPIO will not change.
1 means GPIO X will become active.
0 means it will become inactive.
Bytes 1-4: Updated states
Examples
Example 1: PC sends command 10h to find out which configurable pins are
available as GPIO.
PC -> xPico: 10h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
xPico -> PC: 10h, 03h, 00h, 00h, 00h
Command details:
xPico User Guide 65