Aardvark Control Center

GPIO Configure Command

<gpio_get/>

Get the value of current GPIO inputs.

Parameters

None

Details

The following table maps the named lines on the Aardvark I2C/SPI output cable to bit positions in the value mask that is returned. If the line is logic low the bit will not be active in the bit mask.

A line's bit position in the mask will be 0 if it is configured as an output or if it corresponds to a subsystem that is still active.

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 Embedded Systems Interface Datasheet for more information.