<gpio_set value="value"/>
Set the value of current GPIO outputs.
Parameters
Details
The following table maps the named lines on the Aardvark I2C/SPI output cable to bit positions in the value mask.
If a line is configured as an input or not activated for GPIO, the output value will be cached. The next time the line is an output and activated for GPIO, the output value previously set will automatically take effect.
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.