class GBA::Reg::DISPSTAT

Included Modules

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{vblank, Bool, 1, true, false}, {hblank, Bool, 1, true, false}, {vcounter, Bool, 1, true, false}, {vblank_irq_enable, Bool, 1, false, false}, {hblank_irq_enable, Bool, 1, false, false}, {vcounter_irq_enable, Bool, 1, false, false}, {not_used, T, 2, false, false}, {vcount_setting, T, 8, false, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
SIZE = 16

Constructors

Instance Method Summary

Instance methods inherited from module GBA::Reg::Base16

read_byte(byte_num : Int) : UInt8 read_byte, write_byte(byte_num : Int, byte : UInt8) : UInt8 write_byte

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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def hblank : Bool #

def hblank=(val : Bool) : Nil #

def hblank_irq_enable : Bool #

def hblank_irq_enable=(val : Bool) : Nil #

def not_used : UInt16 #

def not_used=(val : UInt16) : 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 vblank_irq_enable : Bool #

def vblank_irq_enable=(val : Bool) : Nil #

def vcount_setting : UInt16 #

def vcount_setting=(val : UInt16) : Nil #

def vcounter : Bool #

def vcounter=(val : Bool) : Nil #

def vcounter_irq_enable : Bool #

def vcounter_irq_enable=(val : Bool) : Nil #