예제 #1
0
 def __repr__(self):
     # Add some extra information about ChipWhisperer type here
     if self._is_connected:
         ret = "%s Device\n" % self._getCWType()
         return ret + dict_to_str(self._dict_repr())
     else:
         ret = "ChipWhisperer/OpenADC device (disconnected)"
         return ret
예제 #2
0
 def __repr__(self):
     # Add some extra information about ChipWhisperer type here
     if self._is_connected:
         ret = "ChipWhisperer Nano Device\n"
         return ret + dict_to_str(self._dict_repr())
     else:
         ret = "ChipWhisperer Nano device (disconnected)"
         return ret
예제 #3
0
 def __repr__(self):
     return util.dict_to_str(self._dict_repr())
예제 #4
0
 def __repr__(self):
     ret = "SimpleSerial Settings ="
     for line in dict_to_str(self._dict_repr()).split("\n"):
         ret += "\n\t" + line
     return ret
예제 #5
0
 def __str__(self):
     return self.__repr__() + '\n' + dict_to_str(self._dict_repr())
예제 #6
0
 def __repr__(self):
     if self._is_connected:
         ret = "Sakura-G Device\n"
         return ret + dict_to_str(self._dict_repr())
예제 #7
0
 def __repr__(self):
     return dict_to_str(self._dict_repr)