How hyyoxhk/libeeprom works
libeeprom is a C library that reads, decodes, and optionally updates named fields in EEPROM images. An application opens an EEPROM; the library reads and validates its frame, loads the matching JSON layout, and exposes fields by name or index for formatted reads and optional writes. On close after a successful modification, it stamps and writes the image back. The graph follows the sampled calls and README-documented capabilities; Linux device details and some helper implementations were not excerpted.
Main entry points: eeprom.c EEPROM API · hal.c Hardware Access · layout.c Layout Manager · libjson.c JSON Parser
Components 11
Library API
- EEPROM API
eeprom.c - Logging
log.c
EEPROM Image Access
- Hardware Access
hal.c - Frame Validation
frame.c
Layout Loading
- Layout Manager
layout.c - JSON Parser
libjson.c - Layout Definitions
layout
Field Processing
- Field Formatting
field.c - Text Conversion
util.c
Other components
- Application
- EEPROM Device
Connections 12
- Application → EEPROM API: calls API
README.md - EEPROM API → Hardware Access: reads image
eeprom.c - EEPROM API → Frame Validation: validates frame
eeprom.c - EEPROM API → Layout Manager: builds layout
eeprom.c - EEPROM API → Field Formatting: reads or writes
eeprom.c - Layout Manager → JSON Parser: parses layout
layout.c - JSON Parser → Layout Definitions: reads JSON
libjson.c - Field Formatting → Text Conversion: converts input
field.c - EEPROM API → Frame Validation: stamps on close
eeprom.c - EEPROM API → Hardware Access: writes on close
eeprom.c - Hardware Access → EEPROM Device: accesses device
- Application → Logging: sets handler
README.md