params.py (11228:021524c21cbc) params.py (11498:e0cbca57e1e9)
1# Copyright (c) 2012-2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 1573 unchanged lines hidden (view full) ---

1582 return self.period.config_value()
1583
1584 def ini_str(self):
1585 return self.period.ini_str()
1586
1587class Voltage(float,ParamValue):
1588 cxx_type = 'double'
1589 ex_str = "1V"
1# Copyright (c) 2012-2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 1573 unchanged lines hidden (view full) ---

1582 return self.period.config_value()
1583
1584 def ini_str(self):
1585 return self.period.ini_str()
1586
1587class Voltage(float,ParamValue):
1588 cxx_type = 'double'
1589 ex_str = "1V"
1590 cmd_line_settable = False
1590 cmd_line_settable = True
1591
1592 def __new__(cls, value):
1593 # convert to voltage
1594 val = convert.toVoltage(value)
1595 return super(cls, Voltage).__new__(cls, val)
1596
1597 def __call__(self, value):
1598 val = convert.toVoltage(value)

--- 519 unchanged lines hidden ---
1591
1592 def __new__(cls, value):
1593 # convert to voltage
1594 val = convert.toVoltage(value)
1595 return super(cls, Voltage).__new__(cls, val)
1596
1597 def __call__(self, value):
1598 val = convert.toVoltage(value)

--- 519 unchanged lines hidden ---