AARCHMRS Schema 2.7.4

↚ Home

Accessors.ReadOffsetAccessor object

A ReadOffsetAccess for a given RegisterBlock describes read accessor for a single child Register or RegisterBlock.

object

Properties Type Description
_meta Meta
See Meta for more information.
_type
Enum
Accessors.ReadOffsetAccessor
access ..Permission.SystemAccess

Provides accessibility information for the access.

See ..Permission.SystemAccess for more information.
condition Traits.HasCondition

The condition which must be true for this accessor to be used.

See definitions.condition in Traits.HasCondition for more information.
offset
array [
AST.BinaryOp
]

Specifies the memory offset (or offsets) at which the referenced Register or RegisterBlock exists.

Additional Properties
Not Allowed
◊ Required
Properties marked with ◊ are required properties.
Examples
{
    "_type": "Accessors.ReadOffsetAccessor", 
    "condition": {
        "_type": "AST.Function", 
        "arguments": [
            {
                "_type": "AST.Identifier", 
                "value": "FEAT_X"
            }
        ], 
        "name": "IsFeatureImplemented"
    }, 
    "offset": [
        {
            "_type": "AST.Integer", 
            "value": 252
        }
    ], 
    "access": {
        "_type": "Accessors.Permission.SystemAccess", 
        "access": {
            "_type": "AST.Assignment", 
            "val": {
                "_type": "AST.Identifier", 
                "value": "REG_AT_OFFSET"
            }, 
            "var": {
                "_type": "AST.SquareOp", 
                "arguments": [
                    {
                        "_type": "AST.Identifier", 
                        "value": "t"
                    }
                ], 
                "var": {
                    "_type": "AST.Identifier", 
                    "value": "R"
                }
            }
        }, 
        "condition": {
            "_type": "AST.Bool", 
            "value": true
        }
    }
}

Schema http://json-schema.org/draft-04/schema#

{
  "additionalProperties": false,
  "info": [
    "A `ReadOffsetAccess` for a given `RegisterBlock` describes read accessor for a single child `Register` or `RegisterBlock`."
  ],
  "properties": {
    "_meta": {
      "$ref": "../Meta.json"
    },
    "_type": {
      "enum": [
        "Accessors.ReadOffsetAccessor"
      ]
    },
    "condition": {
      "$ref": "../Traits/HasCondition.json#/definitions/condition",
      "info": [
        "The condition which must be true for this accessor to be used."
      ]
    },
    "offset": {
      "info": [
        "Specifies the memory offset (or offsets) at which the referenced `Register` or `RegisterBlock` exists."
      ],
      "type": "array",
      "items": {
        "$ref": "../AST/BinaryOp.json#/definitions/expression"
      },
      "minItems": 1
    },
    "access": {
      "info": [
        "Provides accessibility information for the access."
      ],
      "$ref": "./Permission/SystemAccess.json"
    }
  },
  "examples": [
    {
      "_type": "Accessors.ReadOffsetAccessor",
      "condition": {
        "_type": "AST.Function",
        "arguments": [
          {
            "_type": "AST.Identifier",
            "value": "FEAT_X"
          }
        ],
        "name": "IsFeatureImplemented"
      },
      "offset": [
        {
          "_type": "AST.Integer",
          "value": 252
        }
      ],
      "access": {
        "_type": "Accessors.Permission.SystemAccess",
        "access": {
          "_type": "AST.Assignment",
          "val": {
            "_type": "AST.Identifier",
            "value": "REG_AT_OFFSET"
          },
          "var": {
            "_type": "AST.SquareOp",
            "arguments": [
              {
                "_type": "AST.Identifier",
                "value": "t"
              }
            ],
            "var": {
              "_type": "AST.Identifier",
              "value": "R"
            }
          }
        },
        "condition": {
          "_type": "AST.Bool",
          "value": true
        }
      }
    }
  ],
  "required": [
    "offset",
    "access"
  ],
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "ReadOffsetAccessor"
}