:py:mod:`lager.pcb.net` ======================= .. py:module:: lager.pcb.net Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: lager.pcb.net.PassThroughMapper lager.pcb.net.Net Functions ~~~~~~~~~ .. autoapisummary:: lager.pcb.net.get_state lager.pcb.net.mapper_factory lager.pcb.net.channel_name_to_number lager.pcb.net.setup_vbus lager.pcb.net.teardown_vbus lager.pcb.net.main .. py:function:: get_state() .. py:function:: mapper_factory(net, device_type) .. py:class:: PassThroughMapper(net, device) .. py:method:: __getattr__(attr) .. py:exception:: InvalidNetError Bases: :py:obj:`Exception` Common base class for all non-exit exceptions. .. py:method:: __str__() Return str(self). .. py:method:: __repr__() Return repr(self). .. py:exception:: SetupFunctionRequiredError Bases: :py:obj:`Exception` Common base class for all non-exit exceptions. .. py:method:: __str__() Return str(self). .. py:method:: __repr__() Return repr(self). .. py:function:: channel_name_to_number(name) .. py:class:: Net(name, type, *, setup_function=None, teardown_function=None) .. py:property:: needs_mux .. py:method:: get_all() :classmethod: .. py:method:: get(name, type, *, setup_function=None, teardown_function=None) :classmethod: .. py:method:: __str__() Return str(self). .. py:method:: enable() .. py:method:: disable(teardown=True) .. py:method:: __getattr__(attr) .. py:function:: setup_vbus(net, device) .. py:function:: teardown_vbus(net, device) .. py:function:: main()