Sha256: 4a0d515a03e8ae08e2ea551438347c06b35d483e26a585f99194d60d7c2275dc
Contents?: true
Size: 1.14 KB
Versions: 62
Compression:
Stored size: 1.14 KB
Contents
# This file was generated by Origen, any hand edits will likely get overwritten # rubocop:disable all module Origen module Export1 module Block1 module X def self.extended(model) # ** Some Control Register ** # Blah, blah, # and some more blah model.add_reg :ctrl, 0x24, size: 16 , str_meta: "a's", str_meta2: "\"works?\"" do |reg| reg.bit 7, :coco, access: :ro reg.bit 6, :aien # **Some Diff Bit** - This is a... # blah, blah # # 0 | It's off # 1 | It's on reg.bit 5, :diff reg.bit 4..0, :adch, reset: 0x1F end # ** A MSB0 Test Case ** # Blah-ba-bi-blah # just following the comment pattern above model.add_reg :msb0_test, 0x28, size: 16 , bit_order: :msb0, some_attr: true, another_attr: :testing, fourth_attr: "string_attr" do |reg| reg.bit 8, :ale reg.bit 9, :xsfg reg.bit 10, :yml reg.bit 11..15, :field, reset: 0x1F end end end end end end # rubocop:enable all
Version data entries
62 entries across 62 versions & 1 rubygems