Skip to content
HomeDocsAPI Reference
EoS API Reference v2.1

EmbeddedOS API Reference

Complete C API documentation for all EoS modules. 263+ functions across 24 modules — from GPIO to OTA updates.

263+
Functions
24
Modules
v2.1
Version

Hardware Abstraction Layer

Low-level hardware access — GPIO, UART, SPI, I²C, Timer, Interrupts

HAL Initialization

GPIO

struct
eos_gpio_config_t
FieldTypeDescription
pinuint16_tPin number
modeeos_gpio_mode_tINPUT, OUTPUT, INPUT_PULLUP, INPUT_PULLDOWN, ANALOG
pulleos_gpio_pull_tPULL_NONE, PULL_UP, PULL_DOWN
speedeos_gpio_speed_tSPEED_LOW, SPEED_MEDIUM, SPEED_HIGH, SPEED_VERY_HIGH

UART

struct
eos_uart_config_t
FieldTypeDescription
portuint8_tUART port number
baudrateuint32_tBaud rate (9600, 115200, etc.)
data_bitsuint8_tData bits (7 or 8)
parityeos_uart_parity_tNONE, EVEN, ODD
stop_bitseos_uart_stop_tSTOP_1, STOP_2

SPI

struct
eos_spi_config_t
FieldTypeDescription
portuint8_tSPI port number
modeeos_spi_mode_tMODE_0..3 (CPOL/CPHA)
freq_hzuint32_tClock frequency in Hz
cs_pinuint16_tChip select GPIO pin
msb_firstbooltrue=MSB first, false=LSB first

I2C

struct
eos_i2c_config_t
FieldTypeDescription
portuint8_tI2C port number
speedeos_i2c_speed_tSPEED_100K, SPEED_400K, SPEED_1M
scl_pinuint16_tSCL GPIO pin
sda_pinuint16_tSDA GPIO pin

Timer