Modbus Slave Library
github.com·15h·
Discuss: r/embedded
Flag this post

C Modbus Slave

Lightweight Modbus slave implementation for embedded C applications

Features

  • Zero dynamic allocations - Can be used without any dynamic allocations
  • Transport agnostic - Works with RS485/RS232 serial and Ethernet
  • Flexible data access - Direct pointers, callbacks, or constant values
  • Compact footprint - Minimal RAM and flash usage for embedded systems
  • Fast CRC calculation - Uses lookup table for efficient CRC-16 computation (512 bytes ROM)
  • Standards compliant - Implements Modbus specification accurately
  • Thread-safe - No global state, multiple instances supported

Getting Started

Prerequisites

  • C11 compatible compiler
  • Basic knowledge of Modbus protocol ([Wikipedia](https://e…

Similar Posts

Loading similar posts...