rtd_acquire.transports
SpiBitOrder
Introduced in: rtd-acquire 0.1.0a1
SpiBitOrder.MSB_FIRST("msb_first")SpiBitOrder.LSB_FIRST("lsb_first")
SpiSettings
Introduced in: rtd-acquire 0.1.0a1
SpiSettings(
clock_polarity: Literal[0, 1],
clock_phase: Literal[0, 1],
clock_frequency_hz: int,
bit_order: SpiBitOrder = SpiBitOrder.MSB_FIRST,
bits_per_word: int = 8,
chip_select_active_low: bool = True,
)
Represents the observable settings of one configured SPI connection.
SpiDevice
Introduced in: rtd-acquire 0.1.0a1
A structural protocol with:
One transfer call represents one contiguous full-duplex transaction. The
transport owns chip-select assertion/deassertion for that transaction.
LinuxSpidevDevice
Introduced in: rtd-acquire 0.1.0a1
The normal public constructor takes the device path and SPI settings. The
adapter requires the optional spidev backend at runtime.
Public interface:
settingsdevice_pathtransfer(tx)close()- context-manager support
Repeated close() calls are harmless. Transfers after close raise
AcquisitionError.