Logic
- class Nets.Logic
Signals that can be insepected with a logic analyzer
- start_capture()
Start capturing logic of net's waveform.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Logic, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.start_capture()
- stop_capture()
Stop capturing logic of net's waveform.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Logic, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.stop_capture()
- start_single_capture()
Start capture logic of net's waveform, but then stop after first capture.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Analog, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.start_single_capture()
- trigger_force()
Force a trigger to capture the net's waveform.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Analog, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.trigger_force()
- size_large()
Set the size of the waveform on logic analyzer screen to largest.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Analog, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.size_large()
- size_medium()
Set the size of the waveform on logic analyzer screen to medium.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Analog, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.size_medium()
- size_small()
Set the size of the waveform on logic analyzer screen to small.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Analog, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.size_small()
- set_signal_threshold(voltage)
Set minimum signal voltage threshold for logic analyzer to capture in volts.
from lager import Net, NetType sda_net = Net.get('I2C.SDA', type=NetType.Analog, setup_function=setup_net, teardown_function=teardown_net) sda_net.enable() sda_net.set_signal_threshold(1.5)
- Parameters:
voltage (float) -- threshold voltage