ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
wasatch.WasatchBus.WasatchBus Class Reference

The different bus classes don't use inheritance and don't follow a common ABC or interface, but each should have an update() method, and each should have a 'device_ids' array. More...

Public Member Functions

 __init__ (self, use_sim=False, monitor_dir=None)
 
 dump (self)
 called by Controller.update_connections
 
 is_empty (self)
 
 update (self, poll=False)
 called by enlighten.Controller.tick_bus_listener()
 

Public Attributes

list device_ids = []
 
 tcp_bus = TCPBus()
 
 usb_bus = USBBus()
 

Detailed Description

The different bus classes don't use inheritance and don't follow a common ABC or interface, but each should have an update() method, and each should have a 'device_ids' array.

Parameters
use_simnot used, left to avoid breaking old code
monitor_dirnot used, left to avoid breaking old code

Constructor & Destructor Documentation

◆ __init__()

wasatch.WasatchBus.WasatchBus.__init__ ( self,
use_sim = False,
monitor_dir = None )

Member Function Documentation

◆ dump()

wasatch.WasatchBus.WasatchBus.dump ( self)

called by Controller.update_connections

◆ is_empty()

wasatch.WasatchBus.WasatchBus.is_empty ( self)

◆ update()

wasatch.WasatchBus.WasatchBus.update ( self,
poll = False )

called by enlighten.Controller.tick_bus_listener()

Member Data Documentation

◆ device_ids

list wasatch.WasatchBus.WasatchBus.device_ids = []

◆ tcp_bus

wasatch.WasatchBus.WasatchBus.tcp_bus = TCPBus()

◆ usb_bus

wasatch.WasatchBus.WasatchBus.usb_bus = USBBus()

The documentation for this class was generated from the following file: