class GBA::Reg::InterruptReg

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{vblank, Bool, 1, false, false}, {hblank, Bool, 1, false, false}, {vcounter, Bool, 1, false, false}, {timer0, Bool, 1, false, false}, {timer1, Bool, 1, false, false}, {timer2, Bool, 1, false, false}, {timer3, Bool, 1, false, false}, {serial, Bool, 1, false, false}, {dma0, Bool, 1, false, false}, {dma1, Bool, 1, false, false}, {dma2, Bool, 1, false, false}, {dma3, Bool, 1, false, false}, {keypad, Bool, 1, false, false}, {game_pak, Bool, 1, false, false}, {not_used, T, 2, true, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
SIZE = 16

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : T) #

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def dma0 : Bool #

def dma0=(val : Bool) : Nil #

def dma1 : Bool #

def dma1=(val : Bool) : Nil #

def dma2 : Bool #

def dma2=(val : Bool) : Nil #

def dma3 : Bool #

def dma3=(val : Bool) : Nil #

def game_pak : Bool #

def game_pak=(val : Bool) : Nil #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def hblank : Bool #

def hblank=(val : Bool) : Nil #

def keypad : Bool #

def keypad=(val : Bool) : Nil #

def not_used : UInt16 #

def not_used=(val : UInt16) : Nil #

def serial : Bool #

def serial=(val : Bool) : Nil #

def timer0 : Bool #

def timer0=(val : Bool) : Nil #

def timer1 : Bool #

def timer1=(val : Bool) : Nil #

def timer2 : Bool #

def timer2=(val : Bool) : Nil #

def timer3 : Bool #

def timer3=(val : Bool) : Nil #

def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

def value : T #

def value=(value : T) #

def vblank : Bool #

def vblank=(val : Bool) : Nil #

def vcounter : Bool #

def vcounter=(val : Bool) : Nil #