radiens_core.models.triggers
Trigger control domain models and enums.
Classes
ManualStimTriggerRequest
Bases: BaseModel
Request for manual stimulation trigger.
Attributes:
| Name | Type | Description |
|---|---|---|
trigger |
StimKeypressIndex
|
Keypress trigger (1-8). References StimKeypressIndex. |
trigger_on |
bool
|
Whether to turn the trigger on or off. |
ManualStimTriggerToggleRequest
Bases: BaseModel
Request to toggle manual stimulation trigger.
Attributes:
| Name | Type | Description |
|---|---|---|
trigger |
StimKeypressIndex
|
Keypress trigger (1-8). References StimKeypressIndex. |
SetTriggerStateRequest
Bases: BaseModel
Request to set trigger channel state.
Attributes:
| Name | Type | Description |
|---|---|---|
channel |
TriggerChannel
|
Trigger channel identifier. References TriggerChannel. |
enabled |
bool
|
Whether the channel should be enabled. |
port |
Port
|
Hardware port identifier. References Port. |
TriggerChannel
Bases: IntEnum
Trigger channel identifier. Values match proto allego.TriggerChannel.
TriggerState
Bases: BaseModel
Current trigger channel configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
enabled_channels |
list[TriggerChannel]
|
List of currently enabled trigger channels. |
ports |
list[Port]
|
List of ports with enabled triggers. |