class GBA::Reg::DMACNT

Included Modules

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{not_used, T, 5, true, false}, {dest_control, T, 2, false, false}, {source_control, T, 2, false, false}, {repeat, Bool, 1, false, false}, {type, T, 1, false, false}, {game_pak, Bool, 1, false, true}, {start_timing, T, 2, false, false}, {irq_enable, Bool, 1, false, false}, {enable, Bool, 1, 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 dest_control : UInt16 #

def dest_control=(val : UInt16) : Nil #

def enable : Bool #

def enable=(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 irq_enable : Bool #

def irq_enable=(val : Bool) : Nil #

def not_used : UInt16 #

def not_used=(val : UInt16) : Nil #

def repeat : Bool #

def repeat=(val : Bool) : Nil #

def source_control : UInt16 #

def source_control=(val : UInt16) : Nil #

def start_timing : UInt16 #

def start_timing=(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 type : UInt16 #

def type=(val : UInt16) : Nil #

def value : T #

def value=(value : T) #