Constructor
new IOBus()
Properties:
| Name | Type | Description | 
|---|---|---|
| data | Array.<Tri> | the array of Tris that make up the IOBus | 
- Source:
Classes
Methods
readBus() → {Array.<Tri>}
    Reads the entire bus
- Source:
Returns:
    - the array of Tris stored in the bus
- Type
- Array.<Tri>
readTri(i) → {number}
    Reads the state of the ith Tri in the bus
    Parameters:
| Name | Type | Description | 
|---|---|---|
| i | number | 
- Source:
Returns:
    - the state of the ith Tri in the bus
- Type
- number
setTri(i, v)
    Set the state of the ith tri in the bus to the state v, which must be a
valid state for a Tri.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| i | number | the index of the Tri to set | 
| v | number | the state to set the Tri to | 
- Source:
Throws:
- 
        - if v is not a valid state for a Tri
- Type
- Error
writeBus(v)
    Write the entire bus to the given array of Tris. The array must be of
size WORD_SIZE.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| v | Array.<Tri> | the array of Tris to write to the bus | 
- Source: