A powerful web-based tool for working with C structs and hex buffers in IoT applications. This tool allows developers to easily parse and construct hex buffers based on C struct definitions, with support for both little-endian and big-endian byte orders.
- C Struct Definition: Input C struct definitions with support for common data types
- Dual Mode Operation:
- Parse Mode: Convert hex buffers to structured data
- Construct Mode: Build hex buffers from field values
- Endianness Support:
- Little Endian
- Big Endian
- Real-time Processing: Instant updates as you type or modify values
- Supported Data Types:
- Boolean (
bool
) - 8-bit integers (
uint8_t
,int8_t
) - 16-bit integers (
uint16_t
,int16_t
) - 32-bit integers (
uint32_t
,int32_t
) - Floating point (
float
,double
)
- Boolean (
- Copy to Clipboard: One-click copying of generated hex buffers
- Enter your C struct definition in the text area
- Switch to "Parse" mode
- Input a hex buffer string
- View the parsed data in structured format below
Example struct:
struct SensorData {
bool enabled;
uint8_t type;
uint16_t value;
uint32_t timestamp;
};
- Define your C struct
- Switch to "Construct" mode
- Fill in values for each field
- Copy the generated hex buffer using the copy button
- React 18
- TypeScript
- Tailwind CSS
- Lucide React Icons
- Vite
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
npm run build
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License
- Built with Vite
- Icons by Lucide
- Styling with Tailwind CSS
This project is designed to help IoT developers work more efficiently with binary data structures and hex buffers. Feel free to report issues or suggest improvements!