Crybus::Connector::Segment
An address chunk assigned to this connector.
Each segment takes up a portion of address space
and has an individual output and input proc (function pointer).
Segments can act as either one connection to the bus or a chain of connections which would function similarly to IO registers, with each segment having a seperate output and input proc based of what that register should do when being read/written.
Constructors
Instance methods
seg_in
The function for when the segment is called to input.
Takes an address and the 8 bit data
seg_out
The function for when the segment is called to output.
Takes an address. Returns the 8 bit data