C API
A list of built-in C code functions (APIs) providess full control over the Red Pitaya board (signal generation and acquisition, digital I/O control, communication: I2C, SPI, UART, and others).
For those who would like to develop own software that is running on Red Pitaya device, but would not like to spent time developing things from scratch and do FPGA programming, a list of built-in functions (APIs) is available providing full control over Red Pitaya board (signal generation and acquisition, digital I/O control, communication: I2C, SPI, UART and other).
To make it super easy to start using C APIs we prepared a nice set of examples that showcase how C APIs can be used. Since C compiler is already part of Red Pitaya OS, user can start by copying code from repository and directly compile and run them on Red Pitaya device.
Set of instructions include:
- control of user LEDs
- control GPIOs on extension connectors
- read slow analog inputs and control slow analog outputs
- control of acquisition from fast RF inputs with ability to adjust gain, sampling rate, trigger source and conditions and also trigger position
- control of generation at fast RF inputs with ability to select voltage level, offset, freq. and waveform that will be generated
- control of digital communication interfaces (I2C, SPI, UART)