class
Crybus::Bus
- Crybus::Bus
- Reference
- Object
Overview
The Bus
A connector handler.
Controls connectors being connected, disconnected, written to, and read from.
Defined in:
cry-bus/bus.crInstance Method Summary
-
#connect(connector : Connector)
Connects a connector to the bus
-
#disconnect(connector : Connector)
Disconnects a connector from the bus
-
#read(address : UInt32) : UInt8
Reads from an address.
If a connector is at that address, returns the output of that connectors segment,
otherwise return a garbage value. -
#write(address : UInt32, data : UInt8)
Writes to an address.
If a connector is at that address, call the input for that connectors segment.
Instance Method Detail
def read(address : UInt32) : UInt8
#
Reads from an address.
If a connector is at that address, returns the output of that connectors segment,
otherwise return a garbage value.
def write(address : UInt32, data : UInt8)
#
Writes to an address.
If a connector is at that address, call the input for that connectors segment.