embeddedtoolkitBETA
BITWISE / REGISTER MODEL

Register DecoderDefine, decode and encode a virtual register.

Decimal or 0x / 0b / 0o. Names use ASCII letters, digits and underscores. All examples are fictional. Editing RO/WO fields here constructs a virtual value; it never writes hardware.

Field definition editor

Register bit map

Numbered buttons toggle bits. Field names and ranges accompany colors; gray means Reserved.

Decode / Virtual Encode
Field / AccessValue / EnumVirtual Encode

Access-aware C macros

RO has no writer; WO has no getter; W1C exposes a clear payload only. General SET macros are emitted only for all-RW models without read side effects. No macro accesses MMIO.

JSON Import / Export

WORKFLOW

From snapshot to fields, and back.

Add fields with a name, zero-based offset, width, description and access. Enum definitions use JSON objects with name, a string value and description. Decode updates immediately. Use a row’s Encode button or enum selection to update only that field while preserving every other bit, including Reserved.

Importing changes the definition only; it does not execute code or access a device. JSON exports contain the definition, not the current register value. No file is uploaded.

ACCESS / SVD EXTENSION

Hardware semantics stay explicit.

RO/RW/WO/W1C describe a model, not permission enforcement on a real device. WO bits shown here are virtual snapshot bits. C payload encoding masks out-of-range input; validate first. Register width, field access, enumerated values, readAction and provenance have dedicated model slots for future CMSIS-SVD adapters. XML/SVD import, inheritance, clusters and arrays are not implemented.

CMSIS-SVD · register semantics

Continue in another tool

Transfers the current unsigned value and width to a new same-origin tab through memory only. SPI sends the first TX frame, zero-extended to 8/16/32 bits, and accepts up to 32 bits. No values are added to URLs or saved.

Related tools (open without a value)