## Control Center Serial

#### GPIO Configure Command

    <gpio_config direction="direction"
                 pullups="pullups"/>

Configure the GPIO interface.

Parameters

direction
  each bit corresponds to the physical line as defined below. If a line's bit is 0, the line is configured as an input. Otherwise it will be an output.
pullups
  each bit corresponds to the physical line as defined below. If a line's bit is 1, the line's pullup is active whenever the line is configured as an input. Otherwise the pullup will be deactivated. The Promira Serial Platform doesn't

Details

The following table maps the named lines on the Aardvark I2C/SPI and the Promira Serial Platform output cable to bit positions in the direction and pullups masks. All GPIO API functions will index these lines through a single 8-bit masked value. Thus, each bit position in the mask can be referred back its corresponding line through the mapping described below.

Pin # | Bit Value | Description
Pin 1 | 0x01 | I2C SCL line
Pin 3 | 0x02 | I2C SDA line
Pin 5 | 0x04 | SPI MISO line
Pin 7 | 0x08 | SPI SCLK line
Pin 8 | 0x10 | SPI MOSI line
Pin 9 | 0x20 | SPI SS line

Please see the Aardvark I2C/SPI Adapter User Manual or the Promira Serial Platform User Manual for more information.