Class: IntelHex::Record::Data
Instance Attribute Summary
#checksum, #data, #length, #line, #offset
Class Method Summary
collapse
Instance Method Summary
collapse
#calculate_checksum, data, #each_byte_with_address, ela, eof, esa, inherited, #initialize, parse, #recalculate_checksum, register_type, sla, ssa, #to_ascii, #to_h, #to_s, #type_data_length, #type_id, #type_name, #valid?, #validate, #validate_checksum, #validate_data, #validate_length, #validate_offset
Class Method Details
.type_data_length ⇒ Object
14
15
16
|
# File 'lib/intel_hex/record/data.rb', line 14
def self.type_data_length
(1..255)
end
|
.type_id ⇒ Object
6
7
8
|
# File 'lib/intel_hex/record/data.rb', line 6
def self.type_id
0
end
|
.type_name ⇒ Object
10
11
12
|
# File 'lib/intel_hex/record/data.rb', line 10
def self.type_name
:data
end
|
Instance Method Details
#value ⇒ Object
18
19
20
|
# File 'lib/intel_hex/record/data.rb', line 18
def value
data
end
|
#value_s ⇒ Object
22
23
24
25
26
|
# File 'lib/intel_hex/record/data.rb', line 22
def value_s
data_string = data.map { |b| format("%02x", b) }.join(" ")
"[#{data_string}]"
end
|