SPIMonkey 🐵

Lightweight, type-safe SPI abstraction layer for Linux spidev

SPIMonkey provides a clean, structured C API for controlling SPI devices on Linux via the spidev kernel driver. It wraps the low-level ioctl() interface with safe, well-tested functions for configuration management, data transfers, and error handling.


Features

  • Simple Device Management — Open, configure, and close /dev/spidevX.Y with minimal boilerplate
  • Type-Safe Configuration — Structured spm_cfg_t for clock mode, speed, bits-per-word, and more
  • Batch Transfers — Execute multiple SPI transactions in a single syscall for improved performance
  • Automatic Validation — Configurations are sanitized and clamped to valid ranges before driver application
  • **Config Sy…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help