class Crybus::Bus

Overview

The Bus

A connector handler.
Controls connectors being connected, disconnected, written to, and read from.

Defined in:

cry-bus/bus.cr

Instance Method Summary

Instance Method Detail

def connect(connector : Connector) #

Connects a connector to the bus


[View source]
def disconnect(connector : Connector) #

Disconnects a connector from the bus


[View source]
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.


[View source]
def write(address : UInt32, data : UInt8) #

Writes to an address.
If a connector is at that address, call the input for that connectors segment.


[View source]