Sha256: 4220c82f4ce842a6e5cc4a4d404fe8e8d40bf31f919719d79b198f663d78cd54

Contents?: true

Size: 1.03 KB

Versions: 96

Compression:

Stored size: 1.03 KB

Contents

module OrigenTesters
  module IGXLBasedTester
    class Base
      class Levels
        include ::OrigenTesters::Generator

        # If levels are defined for a power group then this will return the level object
        attr_accessor :pwr_group
        # If levels are defined for a pin group then this will return the level object
        attr_accessor :pin_group

        def initialize(options = {}) # :nodoc:
          @pwr_group = Hash.new { |h, k| h[k] = {} }
          @pin_group = Hash.new { |h, k| h[k] = {} }
        end

        # Defines a new Power Level category for the given pin/group
        def add_power_level(cat, options = {})
          cat = cat.to_sym unless cat.is_a? Symbol
          pwr_group[cat] = platform::SupplyLevel.new(options)
        end

        # Defines a new Single-Ended Pin Level category for the given pin/group
        def add_se_pin_level(cat, options = {})
          cat = cat.to_sym unless cat.is_a? Symbol
          pin_group[cat] = platform::PinLevelSingle.new(options)
        end
      end
    end
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
origen_testers-0.52.8 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.7 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.6 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.5 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.4 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.3 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.1 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.52.0 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.51.5 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.51.4 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.51.3 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.51.2 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.51.1 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.51.0 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.50.0 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.49.4 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.49.3 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.49.2 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.49.1 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.49.0 lib/origen_testers/igxl_based_tester/base/levels.rb