Module zio :: Class I2CNoAckError

Class I2CNoAckError

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              I2CNoAckError

Exception raised when an acknowledgement is not received, during an I2C transaction.
Instance Methods
 
__init__(self, msg, code)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables
  DATA = 0
Constant indicates device did not ack.
  ADDR = 1
Constant indicates device was not present.
Properties
  code
The code indicates whether the device...

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, msg, code)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Property Details

code

The code indicates whether the device was not present (ADDR) or the device did not ack (DATA)
Get Method:
_get_code(self)