class GBA::Reg::SOUNDCNT_L

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{right_volume, T, 3, false, false}, {not_used_2, Bool, 1, true, false}, {left_volume, T, 3, false, false}, {not_used_1, Bool, 1, true, false}, {channel_1_right, T, 1, false, false}, {channel_2_right, T, 1, false, false}, {channel_3_right, T, 1, false, false}, {channel_4_right, T, 1, false, false}, {channel_1_left, T, 1, false, false}, {channel_2_left, T, 1, false, false}, {channel_3_left, T, 1, false, false}, {channel_4_left, T, 1, false, 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 channel_1_left : UInt16 #

def channel_1_left=(val : UInt16) : Nil #

def channel_1_right : UInt16 #

def channel_1_right=(val : UInt16) : Nil #

def channel_2_left : UInt16 #

def channel_2_left=(val : UInt16) : Nil #

def channel_2_right : UInt16 #

def channel_2_right=(val : UInt16) : Nil #

def channel_3_left : UInt16 #

def channel_3_left=(val : UInt16) : Nil #

def channel_3_right : UInt16 #

def channel_3_right=(val : UInt16) : Nil #

def channel_4_left : UInt16 #

def channel_4_left=(val : UInt16) : Nil #

def channel_4_right : UInt16 #

def channel_4_right=(val : UInt16) : Nil #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def left_volume : UInt16 #

def left_volume=(val : UInt16) : Nil #

def not_used_1 : Bool #

def not_used_1=(val : Bool) : Nil #

def not_used_2 : Bool #

def not_used_2=(val : Bool) : Nil #

def right_volume : UInt16 #

def right_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) #