class GBA::Reg::BGCNT

Included Modules

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{priority, T, 2, false, false}, {character_base_block, T, 2, false, false}, {not_used, T, 2, false, false}, {mosaic, Bool, 1, false, false}, {color_mode_8bpp, Bool, 1, false, false}, {screen_base_block, T, 5, false, false}, {affine_wrap, Bool, 1, false, true}, {screen_size, T, 2, 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 affine_wrap : Bool #

def affine_wrap=(val : Bool) : Nil #

def character_base_block : UInt16 #

def character_base_block=(val : UInt16) : Nil #

def color_mode_8bpp : Bool #

def color_mode_8bpp=(val : Bool) : Nil #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def mosaic : Bool #

def mosaic=(val : Bool) : Nil #

def not_used : UInt16 #

def not_used=(val : UInt16) : Nil #

def priority : UInt16 #

def priority=(val : UInt16) : Nil #

def screen_base_block : UInt16 #

def screen_base_block=(val : UInt16) : Nil #

def screen_size : UInt16 #

def screen_size=(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) #