Logo
UNICENS V2.3.0-4567
User Manual and API Reference
Peripheral Bus Interface

Introduction

Peripheral Bus Interfaces of the INIC such as I2C or GPIOs can be controlled using the I2C and GPIO modules. Through the GPIO module the user can write to or read from a GPIO pin or can set a callback function (Ucs_Gpio_CreatePortResCb_t) to get informed if a GPIO trigger event occurs. The I2C module the user gets access to functions needed to send and receive i2c messages form devices connected to the local or remote INIC.

Operation

There are two possibilities to use the I2C and GPIO functionality:

  • Implement and run the API functions like described in the examples chapter.
  • Use the Node Scripting module to use the GPIO and I2C functions dynamically while runtime.

Examples for the GPIO and I2C API