src.services.interface_chain.chips package

Submodules

src.services.interface_chain.chips.ADD module

class src.services.interface_chain.chips.ADD.ADD(hi: HardwareInterface, chip_config: List[ChannelData], name: str, chip_num: int)

Bases: InterfaceChip

pin_masks = [1, 2, 4, 8, 16, 32, 64, 128]
read_gpio_parallel() int
read_voltage(identifier: str) float
setup()
update()

Update the interface chip, this is called periodically to update the chip state

write_dac(identifier: str, value: float)
write_gpio(identifier: str, value: int)
write_gpio_parallel(value: int)

src.services.interface_chain.chips.LTC module

class src.services.interface_chain.chips.LTC.LTC(hi: HardwareInterface, chip_config: List[ChannelData], name: str, chip_num: int)

Bases: InterfaceChip

channels = {0: 128, 1: 192, 2: 144, 3: 208, 4: 160, 5: 224, 6: 176, 7: 240}
read_gpio_parallel() int
read_voltage(identifier: str) float
setup()
update()

Update the interface chip, this is called periodically to update the chip state

write_dac(identifier: str, value: float)
write_gpio(identifier: str, value: int)
write_gpio_parallel(value: int)

src.services.interface_chain.chips.MCP module

class src.services.interface_chain.chips.MCP.MCP(hi: HardwareInterface, chip_config: List[ChannelData], name: str, chip_num: int, address: int)

Bases: InterfaceChip

read_gpio_parallel() int
read_voltage(identifier: str) float
setup()
update()

Update the interface chip, this is called periodically to update the chip state

write_dac(identifier: str, value: float)
write_gpio(identifier: str, value: int)
write_gpio_parallel(value: int)

src.services.interface_chain.chips.base module

class src.services.interface_chain.chips.base.InterfaceChip(hi: HardwareInterface, chip_config: List[ChannelData], name: str, chip_num: int)

Bases: ABC

get_name() str
abstractmethod read_gpio_parallel() int
abstractmethod read_voltage(identifier: str) float
abstractmethod setup()
abstractmethod update()

Update the interface chip, this is called periodically to update the chip state

abstractmethod write_dac(identifier: str, value: float)
abstractmethod write_gpio(identifier: str, value: int)
abstractmethod write_gpio_parallel(value: int)

Module contents