class GBA::DMAChannels

Defined in:

crab/gba/apu/dma_channels.cr

Constant Summary

RANGE = 160..167

Constructors

Instance Method Summary

Constructor Detail

def self.new(gba : GBA, control : Reg::SOUNDCNT_H) #

[View source]

Instance Method Detail

def ===(other) : Bool #
Description copied from class Object

Case equality.

The #=== method is used in a case ... when ... end expression.

For example, this code:

case value
when x
  # something when x
when y
  # something when y
end

Is equivalent to this code:

if x === value
  # something when x
elsif y === value
  # something when y
end

Object simply implements #=== by invoking ==, but subclasses (notably Regex) can override it to provide meaningful case-equality semantics.


[View source]
def [](address : UInt32) : UInt8 #

[View source]
def []=(address : UInt32, value : UInt8) : Nil #

[View source]
def get_amplitude : Tuple(Int16, Int16) #

Outputs a value -0x100...0x100


[View source]
def timer_overflow(timer : Int) : Nil #

[View source]