Sha256: a75fb3a6e8bb077432af188bb9abdb9cc7cc4736421b1a77a53e499b8f099dd6
Contents?: true
Size: 743 Bytes
Versions: 12
Compression:
Stored size: 743 Bytes
Contents
% reg = options[:reg] register <%= options[:name].to_s.downcase %> (<%= reg.path(:relative_to => options[:parent]) + options[:reg_path_postfix] %>) @'h<%= reg.offset.to_s(16).upcase %> { bytes <%= reg.size / 8 %>; % reg.named_bits do |name, bits| % if bits.size == 1 field <%= name %> ([<%= bits.position %>]) { % else field <%= name %> ([<%= bits.position + bits.size - 1 %>:<%= bits.position %>]) { % end % if bits.is_readable? && bits.is_writable? access rw; % elsif bits.is_writable? access wo; % else bits.is_writable? access ro; % end bits <%= bits.size %>; reset 'b<%= bits.reset_val.to_s(2) %>; } % end }
Version data entries
12 entries across 12 versions & 1 rubygems