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.9.5 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.9.4 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.9.3 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.9.2 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.9.1 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.9.0 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.13 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.11 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.8 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.7 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.6 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.5 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.4 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.3 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.2 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.1 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.0 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.8.0.pre1 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.7.13 lib/origen_testers/igxl_based_tester/base/levels.rb
origen_testers-0.7.12 lib/origen_testers/igxl_based_tester/base/levels.rb