From c041f10aadd9480feff253980de930b7943be46a Mon Sep 17 00:00:00 2001 From: Rahix Date: Sat, 18 May 2019 10:18:38 +0200 Subject: [PATCH] Add _write_constraint to README Signed-off-by: Rahix --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 015ea78..9b74d68 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,20 @@ If patches need to be applied, create a `.yaml` in `patch/`. The patch ```yaml PERIPHERIAL: REGISTER: + _modify: + FIELD: + # If a field already contains a write-constraint, you can + # change it using the _write_constraint modifier. The + # following values are allowed: + + # "enum": Only allow enumerated values () + _write_constraint: "enum" + + # Remove any existing writeConstraint tag + _write_constraint: "none" + + # Constrain to a range of values () + _write_constraint: [min, max] FIELD: # Replaces the enumeratedValues definition for this field. # If it does not exist yet, it is created. -- 2.49.0