A Bits object represents a group of one or more bits in an Encodeset. The range
property states how many bits are present and where they are in the Encodeset.
| Properties | Type | Description |
|---|---|---|
| _meta | FieldAbstract |
See
definitions._meta in
FieldAbstract
for more information.
|
| _type |
|
|
| range◊ | FieldAbstract |
See
definitions.range in
FieldAbstract
for more information.
|
| should_be_mask◊ | FieldAbstract |
See
definitions.should_be_mask in
FieldAbstract
for more information.
|
| value◊ | Values.Value |
The bit values the object represents.
See
Values.Value
for more information.
|
|
||
|
||
{
"_type": "Instruction.Encodeset.Bits",
"range": {
"_type": "Range",
"start": 3,
"width": 2
},
"value": {
"_type": "Values.Value",
"value": "'10'",
"meaning": null
},
"should_be_mask": {
"_type": "Values.Value",
"value": "'00'"
}
}
{
"_type": "Instruction.Encodeset.Bits",
"range": {
"_type": "Range",
"start": 0,
"width": 4
},
"value": {
"_type": "Values.Value",
"value": "'1100'",
"meaning": null
},
"should_be_mask": {
"_type": "Values.Value",
"value": "'0000'"
}
}
{
"type": "object",
"info": [
[
"A `Bits` object represents a group of one or more bits in an `Encodeset`. The `range`",
"property states how many bits are present and where they are in the `Encodeset`."
]
],
"examples": [
{
"_type": "Instruction.Encodeset.Bits",
"range": {
"_type": "Range",
"start": 3,
"width": 2
},
"value": {
"_type": "Values.Value",
"value": "'10'",
"meaning": null
},
"should_be_mask": {
"_type": "Values.Value",
"value": "'00'"
}
},
{
"_type": "Instruction.Encodeset.Bits",
"range": {
"_type": "Range",
"start": 0,
"width": 4
},
"value": {
"_type": "Values.Value",
"value": "'1100'",
"meaning": null
},
"should_be_mask": {
"_type": "Values.Value",
"value": "'0000'"
}
}
],
"properties": {
"_meta": {
"$ref": "FieldAbstract.json#/definitions/_meta"
},
"_type": {
"enum": [
"Instruction.Encodeset.Bits"
]
},
"value": {
"$ref": "../../Values/Value.json",
"info": [
"The bit values the object represents."
]
},
"range": {
"$ref": "FieldAbstract.json#/definitions/range"
},
"should_be_mask": {
"$ref": "FieldAbstract.json#/definitions/should_be_mask"
}
},
"additionalProperties": false,
"required": [
"value",
"range",
"should_be_mask"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Instruction.Encodeset.Bits"
}