class GBA::Reg::SOUNDCNT_H

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{sound_volume, T, 2, false, false}, {dma_sound_a_volume, T, 1, false, false}, {dma_sound_b_volume, T, 1, false, false}, {not_used, T, 4, true, false}, {dma_sound_a_right, T, 1, false, false}, {dma_sound_a_left, T, 1, false, false}, {dma_sound_a_timer, T, 1, false, false}, {dma_sound_a_reset, Bool, 1, true, false}, {dma_sound_b_right, T, 1, false, false}, {dma_sound_b_left, T, 1, false, false}, {dma_sound_b_timer, T, 1, false, false}, {dma_sound_b_reset, Bool, 1, 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 dma_sound_a_left : UInt16 #

def dma_sound_a_left=(val : UInt16) : Nil #

def dma_sound_a_reset : Bool #

def dma_sound_a_reset=(val : Bool) : Nil #

def dma_sound_a_right : UInt16 #

def dma_sound_a_right=(val : UInt16) : Nil #

def dma_sound_a_timer : UInt16 #

def dma_sound_a_timer=(val : UInt16) : Nil #

def dma_sound_a_volume : UInt16 #

def dma_sound_a_volume=(val : UInt16) : Nil #

def dma_sound_b_left : UInt16 #

def dma_sound_b_left=(val : UInt16) : Nil #

def dma_sound_b_reset : Bool #

def dma_sound_b_reset=(val : Bool) : Nil #

def dma_sound_b_right : UInt16 #

def dma_sound_b_right=(val : UInt16) : Nil #

def dma_sound_b_timer : UInt16 #

def dma_sound_b_timer=(val : UInt16) : Nil #

def dma_sound_b_volume : UInt16 #

def dma_sound_b_volume=(val : UInt16) : Nil #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def not_used : UInt16 #

def not_used=(val : UInt16) : Nil #

def sound_volume : UInt16 #

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