Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ophyd_async/fastcs/panda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
PandaCaptureMode,
PandaPcompDirection,
PandaPosMux,
PandaSeqWrite,
PandaTimeUnits,
PcapBlock,
PcompBlock,
Expand Down Expand Up @@ -58,4 +59,5 @@
"ScanSpecInfo",
"ScanSpecSeqTableTriggerLogic",
"PosOutScaleOffset",
"PandaSeqWrite",
]
13 changes: 13 additions & 0 deletions src/ophyd_async/fastcs/panda/_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
DeviceVector,
SignalR,
SignalRW,
SignalW,
SignalX,
StrictEnum,
SubsetEnum,
)
Expand Down Expand Up @@ -86,6 +88,14 @@ class PandaTimeUnits(StrictEnum):
US = "us"


class PandaSeqWrite(StrictEnum):
Comment thread
coretl marked this conversation as resolved.
"""Options for what the next write command will do to the table."""

REPLACE = "Replace"
APPEND = "Append"
APPEND_LAST = "Append Last"


class SeqBlock(Device):
"""Sequencer block in the PandA."""

Expand All @@ -96,6 +106,9 @@ class SeqBlock(Device):
prescale_units: SignalRW[PandaTimeUnits]
enable: SignalRW[PandaBitMux]
posa: SignalRW[PandaPosMux]
table_clear: SignalX | None
table_next_write: SignalW[PandaSeqWrite] | None
table_queued_lines: SignalR[int] | None


class PcapBlock(Device):
Expand Down
Loading