Skip to main content

Defaults

The defaults block defines properties that apply to all registers unless explicitly overridden at the register or field level. This reduces repetition.

FieldRequiredTypeDescription
register_widthYesIntegerThe standard width of a register in bits.
byte_orderYesEnumbig (MSB first) or little (LSB first).
accessRecommendedList[AccessCode]Default read/write permissions (e.g., [r, w]).

Example:

defaults:
register_width: 16
byte_order: big
access: [ r, w ]
Other Fields

Any other field that would typically go in the fields: section can be included. For example, if a device's registers all reset to the same value, the reset: field could be included in the defaults:.