USER MANUAL RC188x-GPR2019 Radiocrafts AS RIIM User Manual (rev.1.2) Page 15 of 238.6. GPIOThe GPIO module is used to control the GPIOs. By default all GPIOs are tri-state inputs with no pullup or pulldown.The following example shows how to configure GPIO 9 as output and setting it to logical ‘1’.Example : ICI codeRIIM_SETUP(){// Set up GPIO 9GPIO.setDirection(GPIO_9, OUTPUT);GPIO.setValue(GPIO_9, HIGH);return UAPI_OK;}Example 6 - GPIO example codeThe following functions are part of the GPIO module.Function DescriptionInit() Initialize the GPIO modulesetDirection(Pin, Direction) Set the GPIO direction to input or outputsetPull(Pin,Pull) Set pullup, pulldown or no pull on an input pinsetHandler(Pin, InterruptEdge,Handler)Register a handler to be called when a specific transition happen on aGPIOsetValue(Pin, Value) Set the value on an output GPIO to logical 0 or 1toggle(Pin) Invert the output value on an GPIOgetValue(Pin) Read the value of a GPIO pinTable 6 - GPIO functions