class GBA::Timer

Defined in:

crab/gba/timer.cr

Constant Summary

EVENT_TYPES = Slice[Scheduler::EventType::Timer0, Scheduler::EventType::Timer1, Scheduler::EventType::Timer2, Scheduler::EventType::Timer3]
PERIODS = Slice[1, 64, 256, 1024]

Constructors

Instance Method Summary

Constructor Detail

def self.new(gba : GBA) #

[View source]

Instance Method Detail

def [](io_addr : UInt32) : UInt8 #

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

[View source]
def cycles_until_overflow(num : Int) : Int32 #

[View source]
def get_current_tm(num : Int) : UInt16 #

[View source]
def overflow(num : Int) : Proc(Nil) #

[View source]
def update_tm(num : Int) : Nil #

[View source]