Skip to content

karthik-mogilipuram/embedded-ringbuf-i2c-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UART Ring Buffer Logger + I2C Utility Layer (C) — Laptop-only

What this project includes

  • Fixed-size ring buffer with overwrite-oldest behavior (log-friendly)
  • Host-based tests (gcc) for wrap-around, overflow, and edge cases
  • Mock I2C device with fault injection (timeout/NACK) + driver-style read/write APIs
  • Retry logic + simple stats counters

Build (MSYS2 UCRT64 on Windows)

cmake -G Ninja -S . -B build
cmake --build build


Run Tests 

./build/ringbuf_tests.exe
./build/i2c_tests.exe

About

C ring buffer + mocked I2C driver-style utilities with fault injection and host-based unit tests (Windows/MSYS2).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors