Skip to content

radiens_core.models.dio

DIO (Digital Output) domain models and enums.

Classes

DIOMode

Bases: IntEnum

Digital Output mode. Values match proto allego.DIOMode.

DigitalOutChannelRegister

Bases: BaseModel

Register state for a single digital output channel.

Attributes:

Name Type Description
manual_state bool

Manual state of the digital output channel.

event_threshold float

Event threshold in microvolts.

event_polarity bool

Event polarity of the channel.

ntv_chan_idx int

Native channel index.

pulse_interval_sec float

Pulse interval in seconds.

pulse_duration_sec float

Pulse duration in seconds.

DigitalOutRegister

Bases: BaseModel

Complete DIO (Digital Output) register state.

Attributes:

Name Type Description
mode DIOMode

Digital output mode. References DIOMode.

dout_chan_registers list[DigitalOutChannelRegister]

List of digital output channel registers.

gated_polarity bool

Gated polarity of the register.

req_pulse_interval_sec float

Requested pulse interval in seconds.

req_pulse_duration_sec float

Requested pulse duration in seconds.

req_pulse_ntv_chan_idx int

Requested pulse native channel index.