class Crybus::Connector

Overview

A handler for data being sent to and received from the bus

Defined in:

cry-bus/connector.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bus : Bus) #

Creates a new connector and auto connects a bus


[View source]
def self.new #

Creates a new connector with no bus


[View source]

Instance Method Detail

def bus : Bus | Nil #

The bus this connector is attached to


[View source]
def bus=(bus : Bus | Nil) #

The bus this connector is attached to


[View source]
def read(address : UInt32) : UInt8 #

Read from the bus this connector is connected to.
If not connected, returns a garbage value.


[View source]
def segments : Array(Segment) #

An array of segments (address spaces this connector uses)


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

Writes to the buss this connector is connected to.
If not connected, does nothing.


[View source]