class GBA::Reg::WAITCNT
- GBA::Reg::WAITCNT
- BitField(UInt16)
- Reference
- Object
Included Modules
Defined in:
crab/gba/reg.crConstant Summary
-
FIELDS =
[{sram_wait_control, T, 2, false, false}, {wait_state_0_first_access, T, 2, false, false}, {wait_state_0_second_access, T, 1, false, false}, {wait_state_1_first_access, T, 2, false, false}, {wait_state_1_second_access, T, 1, false, false}, {wait_state_2_first_access, T, 2, false, false}, {wait_state_2_second_access, T, 1, false, false}, {phi_terminal_output, T, 2, false, false}, {not_used, Bool, 1, true, false}, {gamepack_prefetch_buffer, Bool, 1, false, false}, {gamepak_type, Bool, 1, true, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
-
SIZE =
16
Constructors
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #gamepack_prefetch_buffer : Bool
- #gamepack_prefetch_buffer=(val : Bool) : Nil
- #gamepak_type : Bool
- #gamepak_type=(val : Bool) : Nil
-
#hash(hasher)
See
Object#hash(hasher)
- #not_used : Bool
- #not_used=(val : Bool) : Nil
- #phi_terminal_output : UInt16
- #phi_terminal_output=(val : UInt16) : Nil
- #sram_wait_control : UInt16
- #sram_wait_control=(val : UInt16) : Nil
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #value : T
- #value=(value : T)
- #wait_state_0_first_access : UInt16
- #wait_state_0_first_access=(val : UInt16) : Nil
- #wait_state_0_second_access : UInt16
- #wait_state_0_second_access=(val : UInt16) : Nil
- #wait_state_1_first_access : UInt16
- #wait_state_1_first_access=(val : UInt16) : Nil
- #wait_state_1_second_access : UInt16
- #wait_state_1_second_access=(val : UInt16) : Nil
- #wait_state_2_first_access : UInt16
- #wait_state_2_first_access=(val : UInt16) : Nil
- #wait_state_2_second_access : UInt16
- #wait_state_2_second_access=(val : UInt16) : Nil
Instance methods inherited from module GBA::Reg::Base16
read_byte(byte_num : Int) : UInt8
read_byte,
write_byte(byte_num : Int, byte : UInt8) : UInt8
write_byte
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
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>