Package ckbot :: Module hitec :: Class EEPROM
[hide private]
[frames] | no frames]

Class EEPROM

source code


Concrete class representing the EEPROM in a servo

Instance Methods [hide private]
 
__init__(self, bus)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
readAll(self) source code
 
_bus_put(self, addr, data)
(private) Write a value to servo EEPROM location.
source code
 
_bus_get(self, addr, **kw)
(private) Read a value from servo EEPROM location.
source code
 
__setitem__(self, addr, value) source code
 
__getitem__(self, addr) source code
 
writeAll(self)
Write EEPROM out into servo, validating as we go
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, bus)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_bus_put(self, addr, data)

source code 
(private)
Write a value to servo EEPROM location.

WARNING: does not update checksum!!! 
INPUT:
  addr -- EEPROM address
  data -- Desired EEPROM value

_bus_get(self, addr, **kw)

source code 
(private)
Read a value from servo EEPROM location.

WARNING: this is a synchronous operation that may take many 
  milliseconds to complete
  
INPUT:
  addr -- EEPROM address
  **kw -- passed on to Bus.send_cmd_sync