class

Crybus::Connector

Inherits Reference < Object

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

Constructors

new(bus : Bus)

Creates a new connector and auto connects a bus

Source
new

Creates a new connector with no bus

Source

Instance methods

bus

The bus this connector is attached to

Source
bus=(bus : Bus | Nil)

The bus this connector is attached to

Source
read(address : UInt32) : UInt8

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

Source
segments

An array of segments (address spaces this connector uses)

Source
write(address : UInt32, data : UInt8)

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

Source

Nested types