class

GBA::Timer

Inherits Reference < Object

Constants

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

Constructors

new(gba : GBA)
Source

Instance methods

[](io_addr : UInt32) : UInt8
Source
[]=(io_addr : UInt32, value : UInt8) : Nil
Source
cycles_until_overflow(num : Int) : Int32
Source
get_current_tm(num : Int) : UInt16
Source
overflow(num : Int) : Proc(Nil)
Source
update_tm(num : Int) : Nil
Source