# Path: basil/HL/RegisterHardwareLayer.py
# class RegisterHardwareLayer(HardwareLayer):
#     def __init__(self, intf, conf):
#     def init(self):
#     def set_value(self, value, addr, size, offset, **kwargs):
#     def get_value(self, addr, size, offset, **kwargs):
#     def set_bytes(self, data, addr, **kwargs):
#     def get_bytes(self, addr, size, **kwargs):
#     def set_configuration(self, conf):
#     def get_configuration(self):
#     def add_property(self, attribute):
#         def getter(self):
#         def setter(self, value):
#     def set_default(self):
#     def _get(self, reg):
#     def _set(self, reg, value):
#     def __getitem__(self, name):
#     def __setitem__(self, name, value):
#     def __getattr__(self, name):
#         def method(*args, **kwargs):
#     def __setattr__(self, name, value):
# 
# Path: basil/TL/SensirionSensorBridge.py
# class SensirionSensorBridge(TransferLayer):
#     def __init__(self, conf):
#     def init(self):
#     def setup_i2c_device(self, bridge_port=SensorBridgePort.ONE, voltage=3.3, frequency=400e3, **_):
#     def disable_i2c_device(self, device, bridge_port=SensorBridgePort.ONE):
#     def print_i2c_device_information(self, device):
#     def read_i2c(self, device, port, address, command, read_n_bytes=0, timeout_us=100e3):
#     def write_i2c(self, device, port, address, command):
#     def __del__(self):
#     def close(self):


from basil.HL.RegisterHardwareLayer import HardwareLayer
from basil.TL.SensirionSensorBridge import TimeoutError
# ------------------------------------------------------------
# Copyright (c) All rights reserved
# SiLab, Institute of Physics, University of Bonn
# ------------------------------------------------------------
#



class SensirionBridgeI2CDevice(HardwareLayer):
    '''
    Driver for I2C devices connected to a Sensirion Sensor Bridge.
    The device has to be connected to one of the two ports of the Sensirion Sensor Bridge.
    '''

    def __init__(self, intf, conf):
        super(SensirionBridgeI2CDevice, self).__init__(intf, conf)

# Path: basil/HL/RegisterHardwareLayer.py
# class RegisterHardwareLayer(HardwareLayer):
#     def __init__(self, intf, conf):
#     def init(self):
#     def set_value(self, value, addr, size, offset, **kwargs):
#     def get_value(self, addr, size, offset, **kwargs):
#     def set_bytes(self, data, addr, **kwargs):
#     def get_bytes(self, addr, size, **kwargs):
#     def set_configuration(self, conf):
#     def get_configuration(self):
#     def add_property(self, attribute):
#         def getter(self):
#         def setter(self, value):
#     def set_default(self):
#     def _get(self, reg):
#     def _set(self, reg, value):
#     def __getitem__(self, name):
#     def __setitem__(self, name, value):
#     def __getattr__(self, name):
#         def method(*args, **kwargs):
#     def __setattr__(self, name, value):
# 
# Path: basil/TL/SensirionSensorBridge.py
# class SensirionSensorBridge(TransferLayer):
#     def __init__(self, conf):
#     def init(self):
#     def setup_i2c_device(self, bridge_port=SensorBridgePort.ONE, voltage=3.3, frequency=400e3, **_):
#     def disable_i2c_device(self, device, bridge_port=SensorBridgePort.ONE):
#     def print_i2c_device_information(self, device):
#     def read_i2c(self, device, port, address, command, read_n_bytes=0, timeout_us=100e3):
#     def write_i2c(self, device, port, address, command):
#     def __del__(self):
#     def close(self):


# Path: basil/HL/SensirionBridgeDevice.py
from basil.HL.RegisterHardwareLayer import HardwareLayer
from basil.TL.SensirionSensorBridge import TimeoutError

# ------------------------------------------------------------
# Copyright (c) All rights reserved
# SiLab, Institute of Physics, University of Bonn
# ------------------------------------------------------------
#



class SensirionBridgeI2CDevice(HardwareLayer):
    '''
    Driver for I2C devices connected to a Sensirion Sensor Bridge.
    The device has to be connected to one of the two ports of the Sensirion Sensor Bridge.
    '''

    def __init__(self, intf, conf):
        super(SensirionBridgeI2CDevice, self).__init__(intf, conf)

        self.TimeoutError = TimeoutError