sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
owgeneric_arduino Namespace Reference

Functions

def debug
 
def init
 
def write
 
def read
 
def pack_val
 
def unpack_val
 
def receive_data
 
def read_slave_sensors
 
def get_slaves
 

Variables

string ow_root = "/mnt/1wire/"
 
string owgeneric_root = "/mnt/1wire-generic/"
 
tuple offset = int(time.mktime(time.strptime("Thu Jan 1 00:00:00 1970", "%a %b %d %H:%M:%S %Y")))
 
 __debug = False
 
list slaves = []
 
tuple slaves_old = os.listdir(owgeneric_root)
 
tuple min_mtime = time.time()
 
list process_slaves = []
 
tuple dev = os.path.join(owgeneric_root, slave)
 
tuple fn = os.path.join(dev, "all")
 
tuple f = open(fn, "w")
 
tuple tic = time.time()
 
tuple toc = time.time()
 
tuple err_count = int(f.read())
 
list data = [ (err_count+1,) ]
 
string fn_temp = fn+"-"
 

Function Documentation

def owgeneric_arduino.debug (   switch)
def owgeneric_arduino.get_slaves ( )
def owgeneric_arduino.init (   slave)
def owgeneric_arduino.pack_val (   val)
def owgeneric_arduino.read (   slave)
def owgeneric_arduino.read_slave_sensors (   slave)
def owgeneric_arduino.receive_data (   address)
def owgeneric_arduino.unpack_val (   val)
def owgeneric_arduino.write (   slave,
  val 
)

Variable Documentation

owgeneric_arduino.__debug = False
list owgeneric_arduino.data = [ (err_count+1,) ]
tuple owgeneric_arduino.dev = os.path.join(owgeneric_root, slave)
tuple owgeneric_arduino.err_count = int(f.read())
tuple owgeneric_arduino.f = open(fn, "w")
tuple owgeneric_arduino.fn = os.path.join(dev, "all")
string owgeneric_arduino.fn_temp = fn+"-"
owgeneric_arduino.min_mtime = time.time()
tuple owgeneric_arduino.offset = int(time.mktime(time.strptime("Thu Jan 1 00:00:00 1970", "%a %b %d %H:%M:%S %Y")))
string owgeneric_arduino.ow_root = "/mnt/1wire/"
string owgeneric_arduino.owgeneric_root = "/mnt/1wire-generic/"
list owgeneric_arduino.process_slaves = []
tuple owgeneric_arduino.slaves = []
tuple owgeneric_arduino.slaves_old = os.listdir(owgeneric_root)
tuple owgeneric_arduino.tic = time.time()
tuple owgeneric_arduino.toc = time.time()