示例#1
0
 def str_value(self):
     '''
     Returns a human-readable representation of the value of this
     field. In case of bit fields the representation is an
     hexadecimal value.
     '''
     return hex_string(self.value(), byte_end(self.size()))
示例#2
0
 def str_value(self):
     '''
     Returns a human-readable representation of the value of this
     field. In case of bit fields the representation is an
     hexadecimal value.
     '''
     return hex_string(self.value(), byte_end(self.size()))
示例#3
0
 def str_hex_value(self):
     '''
     Returns a human-readable representation of the hexadecimal
     representation of this field. This internally uses
     *hex_value()*.
     '''
     return hex_string(self.hex_value(), self.size())
示例#4
0
 def str_hex_value(self):
     '''
     Returns a human-readable representation of the hexadecimal
     representation of this field. This internally uses
     *hex_value()*.
     '''
     return hex_string(self.hex_value(), self.size())
示例#5
0
 def str_eng_value(self):
     '''
     Returns a human-readable representation of the engineering
     value. This function will first calculate the engineering value
     (by applying the calibration curve) and will return the string
     representation of it. In case of bit fields the representation
     is an hexadecimal value.
     '''
     return hex_string(self.eng_value(), byte_end(self.size()))
示例#6
0
 def str_eng_value(self):
     '''
     Returns a human-readable representation of the engineering
     value. This function will first calculate the engineering value
     (by applying the calibration curve) and will return the string
     representation of it. In case of bit fields the representation
     is an hexadecimal value.
     '''
     return hex_string(self.eng_value(), byte_end(self.size()))
示例#7
0
 def str_hex_value(self):
     '''
     Returns a human-readable representation of the hexadecimal value
     of this field. This will return the same as *str_value*.
     '''
     return hex_string(self.hex_value(), byte_end(self.size()))
示例#8
0
 def str_hex_value(self):
     '''
     Returns a human-readable representation of the hexadecimal value
     of this field. This will return the same as *str_value*.
     '''
     return hex_string(self.hex_value(), byte_end(self.size()))